[2025-03-08 00:00:05] Production.INFO: next invoice date [2025-03-08 00:00:05] Production.INFO: 2025-04-08 [2025-03-08 00:00:05] Production.INFO: getdaysdiff [2025-03-08 00:00:05] Production.INFO: +31 [2025-03-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (144,20,2,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:05] Production.INFO: next invoice date [2025-03-08 00:00:05] Production.INFO: 2025-04-08 [2025-03-08 00:00:05] Production.INFO: getdaysdiff [2025-03-08 00:00:05] Production.INFO: +31 [2025-03-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (211,11,1,31,31,'RMScheduler',2025-03-08 00:00:05,0,0,,,0) [2025-03-08 00:00:05] Production.INFO: next invoice date [2025-03-08 00:00:05] Production.INFO: 2025-04-08 [2025-03-08 00:00:05] Production.INFO: getdaysdiff [2025-03-08 00:00:05] Production.INFO: +31 [2025-03-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (211,13,2,31,31,'RMScheduler',2025-03-08 00:00:05,0,0,,,0) [2025-03-08 00:00:05] Production.INFO: next invoice date [2025-03-08 00:00:05] Production.INFO: 2025-04-08 [2025-03-08 00:00:05] Production.INFO: getdaysdiff [2025-03-08 00:00:05] Production.INFO: +31 [2025-03-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (219,11,1,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:05] Production.INFO: next invoice date [2025-03-08 00:00:05] Production.INFO: 2025-04-08 [2025-03-08 00:00:05] Production.INFO: getdaysdiff [2025-03-08 00:00:05] Production.INFO: +31 [2025-03-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (219,13,2,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:05] Production.INFO: next invoice date [2025-03-08 00:00:05] Production.INFO: 2025-04-08 [2025-03-08 00:00:05] Production.INFO: getdaysdiff [2025-03-08 00:00:05] Production.INFO: +31 [2025-03-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (220,11,1,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:05] Production.INFO: next invoice date [2025-03-08 00:00:05] Production.INFO: 2025-04-08 [2025-03-08 00:00:05] Production.INFO: getdaysdiff [2025-03-08 00:00:05] Production.INFO: +31 [2025-03-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (220,13,2,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:05] Production.INFO: next invoice date [2025-03-08 00:00:05] Production.INFO: 2025-04-08 [2025-03-08 00:00:05] Production.INFO: getdaysdiff [2025-03-08 00:00:05] Production.INFO: +31 [2025-03-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (221,11,1,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:05] Production.INFO: next invoice date [2025-03-08 00:00:05] Production.INFO: 2025-04-08 [2025-03-08 00:00:05] Production.INFO: getdaysdiff [2025-03-08 00:00:05] Production.INFO: +31 [2025-03-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (221,13,2,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:06] Production.INFO: next invoice date [2025-03-08 00:00:06] Production.INFO: 2025-04-08 [2025-03-08 00:00:06] Production.INFO: getdaysdiff [2025-03-08 00:00:06] Production.INFO: +31 [2025-03-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (222,11,1,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:06] Production.INFO: next invoice date [2025-03-08 00:00:06] Production.INFO: 2025-04-08 [2025-03-08 00:00:06] Production.INFO: getdaysdiff [2025-03-08 00:00:06] Production.INFO: +31 [2025-03-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (222,13,2,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:06] Production.INFO: next invoice date [2025-03-08 00:00:06] Production.INFO: 2025-04-08 [2025-03-08 00:00:06] Production.INFO: getdaysdiff [2025-03-08 00:00:06] Production.INFO: +31 [2025-03-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (223,11,1,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:06] Production.INFO: next invoice date [2025-03-08 00:00:06] Production.INFO: 2025-04-08 [2025-03-08 00:00:06] Production.INFO: getdaysdiff [2025-03-08 00:00:06] Production.INFO: +31 [2025-03-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (223,13,2,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:06] Production.INFO: next invoice date [2025-03-08 00:00:06] Production.INFO: 2025-04-08 [2025-03-08 00:00:06] Production.INFO: getdaysdiff [2025-03-08 00:00:06] Production.INFO: +31 [2025-03-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (224,11,1,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:06] Production.INFO: next invoice date [2025-03-08 00:00:06] Production.INFO: 2025-04-08 [2025-03-08 00:00:06] Production.INFO: getdaysdiff [2025-03-08 00:00:06] Production.INFO: +31 [2025-03-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (224,13,2,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:06] Production.INFO: next invoice date [2025-03-08 00:00:06] Production.INFO: 2025-04-08 [2025-03-08 00:00:06] Production.INFO: getdaysdiff [2025-03-08 00:00:06] Production.INFO: +31 [2025-03-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (227,11,1,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:06] Production.INFO: next invoice date [2025-03-08 00:00:06] Production.INFO: 2025-04-08 [2025-03-08 00:00:06] Production.INFO: getdaysdiff [2025-03-08 00:00:06] Production.INFO: +31 [2025-03-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:07] Production.INFO: next invoice date [2025-03-08 00:00:07] Production.INFO: 2025-04-08 [2025-03-08 00:00:07] Production.INFO: getdaysdiff [2025-03-08 00:00:07] Production.INFO: +31 [2025-03-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (233,16,1,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:07] Production.INFO: next invoice date [2025-03-08 00:00:07] Production.INFO: 2025-04-08 [2025-03-08 00:00:07] Production.INFO: getdaysdiff [2025-03-08 00:00:07] Production.INFO: +31 [2025-03-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (233,13,2,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:07] Production.INFO: next invoice date [2025-03-08 00:00:07] Production.INFO: 2025-04-08 [2025-03-08 00:00:07] Production.INFO: getdaysdiff [2025-03-08 00:00:07] Production.INFO: +31 [2025-03-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (238,16,1,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:07] Production.INFO: next invoice date [2025-03-08 00:00:07] Production.INFO: 2025-04-08 [2025-03-08 00:00:07] Production.INFO: getdaysdiff [2025-03-08 00:00:07] Production.INFO: +31 [2025-03-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (238,13,2,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:07] Production.INFO: next invoice date [2025-03-08 00:00:07] Production.INFO: 2025-04-08 [2025-03-08 00:00:07] Production.INFO: getdaysdiff [2025-03-08 00:00:07] Production.INFO: +31 [2025-03-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (227,16,1,31,31,'RMScheduler',2025-03-08 00:00:05,0,0,,,0) [2025-03-08 00:00:07] Production.INFO: next invoice date [2025-03-08 00:00:07] Production.INFO: 2025-04-08 [2025-03-08 00:00:07] Production.INFO: getdaysdiff [2025-03-08 00:00:07] Production.INFO: +31 [2025-03-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,31,31,'RMScheduler',2025-03-08 00:00:05,0,0,,,0) [2025-03-08 00:00:07] Production.INFO: next invoice date [2025-03-08 00:00:07] Production.INFO: 2025-04-08 [2025-03-08 00:00:07] Production.INFO: getdaysdiff [2025-03-08 00:00:07] Production.INFO: +31 [2025-03-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (242,16,1,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:08] Production.INFO: next invoice date [2025-03-08 00:00:08] Production.INFO: 2025-04-08 [2025-03-08 00:00:08] Production.INFO: getdaysdiff [2025-03-08 00:00:08] Production.INFO: +31 [2025-03-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (242,13,2,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:08] Production.INFO: next invoice date [2025-03-08 00:00:08] Production.INFO: 2025-04-08 [2025-03-08 00:00:08] Production.INFO: getdaysdiff [2025-03-08 00:00:08] Production.INFO: +31 [2025-03-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (243,16,1,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:08] Production.INFO: next invoice date [2025-03-08 00:00:08] Production.INFO: 2025-04-08 [2025-03-08 00:00:08] Production.INFO: getdaysdiff [2025-03-08 00:00:08] Production.INFO: +31 [2025-03-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (243,13,2,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:08] Production.INFO: next invoice date [2025-03-08 00:00:08] Production.INFO: 2025-04-08 [2025-03-08 00:00:08] Production.INFO: getdaysdiff [2025-03-08 00:00:08] Production.INFO: +31 [2025-03-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (245,16,1,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:08] Production.INFO: next invoice date [2025-03-08 00:00:08] Production.INFO: 2025-04-08 [2025-03-08 00:00:08] Production.INFO: getdaysdiff [2025-03-08 00:00:08] Production.INFO: +31 [2025-03-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (245,13,2,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:08] Production.INFO: next invoice date [2025-03-08 00:00:08] Production.INFO: 2025-04-08 [2025-03-08 00:00:08] Production.INFO: getdaysdiff [2025-03-08 00:00:08] Production.INFO: +31 [2025-03-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (231,16,1,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:08] Production.INFO: next invoice date [2025-03-08 00:00:08] Production.INFO: 2025-04-08 [2025-03-08 00:00:08] Production.INFO: getdaysdiff [2025-03-08 00:00:08] Production.INFO: +31 [2025-03-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (231,13,2,31,31,'RMScheduler',2025-03-08 00:00:05,1,0,,,0) [2025-03-08 00:00:10] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:00:10 [end_date_ymd] => 2025-03-08 00:00:10 [RateCDR] => 1 ) [2025-03-08 00:00:10] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:00:10' and `end` < '2025-03-08 00:00:10' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:00:22] Production.INFO: count ==1989 [2025-03-08 00:00:23] Production.ERROR: pbx CDR StartTime 2025-03-07 21:00:10 - End Time 2025-03-08 00:00:10 [2025-03-08 00:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631337', 'tblTempUsageDetail_20' ) start [2025-03-08 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631337', 'tblTempUsageDetail_20' ) end [2025-03-08 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631337', 'tblTempVendorCDR_20' ) start [2025-03-08 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631337', 'tblTempVendorCDR_20' ) end [2025-03-08 00:00:23] Production.INFO: ProcessCDR(1,14631337,1,1,2) [2025-03-08 00:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631337', 'tblTempUsageDetail_20' ) start [2025-03-08 00:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631337', 'tblTempUsageDetail_20' ) end [2025-03-08 00:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:00:28] Production.INFO: ==3674== Releasing lock... [2025-03-08 00:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:00:28] Production.INFO: 44.75 MB #Memory Used# [2025-03-08 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:01:06 [end_date_ymd] => 2025-03-08 00:01:06 [RateCDR] => 1 ) [2025-03-08 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:01:06' and `end` < '2025-03-08 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:01:19] Production.INFO: count ==1955 [2025-03-08 00:01:19] Production.ERROR: pbx CDR StartTime 2025-03-07 21:01:06 - End Time 2025-03-08 00:01:06 [2025-03-08 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631342', 'tblTempUsageDetail_20' ) start [2025-03-08 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631342', 'tblTempUsageDetail_20' ) end [2025-03-08 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631342', 'tblTempVendorCDR_20' ) start [2025-03-08 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631342', 'tblTempVendorCDR_20' ) end [2025-03-08 00:01:19] Production.INFO: ProcessCDR(1,14631342,1,1,2) [2025-03-08 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631342', 'tblTempUsageDetail_20' ) start [2025-03-08 00:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631342', 'tblTempUsageDetail_20' ) end [2025-03-08 00:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:01:23] Production.INFO: ==3765== Releasing lock... [2025-03-08 00:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:01:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-08 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:02:06 [end_date_ymd] => 2025-03-08 00:02:06 [RateCDR] => 1 ) [2025-03-08 00:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:02:06' and `end` < '2025-03-08 00:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:02:19] Production.INFO: count ==1414 [2025-03-08 00:02:20] Production.ERROR: pbx CDR StartTime 2025-03-07 21:02:06 - End Time 2025-03-08 00:02:06 [2025-03-08 00:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631347', 'tblTempUsageDetail_20' ) start [2025-03-08 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631347', 'tblTempUsageDetail_20' ) end [2025-03-08 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631347', 'tblTempVendorCDR_20' ) start [2025-03-08 00:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631347', 'tblTempVendorCDR_20' ) end [2025-03-08 00:02:20] Production.INFO: ProcessCDR(1,14631347,1,1,2) [2025-03-08 00:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631347', 'tblTempUsageDetail_20' ) start [2025-03-08 00:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631347', 'tblTempUsageDetail_20' ) end [2025-03-08 00:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:02:23] Production.INFO: ==3837== Releasing lock... [2025-03-08 00:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:02:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:03:05 [end_date_ymd] => 2025-03-08 00:03:05 [RateCDR] => 1 ) [2025-03-08 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:03:05' and `end` < '2025-03-08 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:03:21] Production.INFO: count ==1412 [2025-03-08 00:03:22] Production.ERROR: pbx CDR StartTime 2025-03-07 21:03:05 - End Time 2025-03-08 00:03:05 [2025-03-08 00:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631352', 'tblTempUsageDetail_20' ) start [2025-03-08 00:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631352', 'tblTempUsageDetail_20' ) end [2025-03-08 00:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631352', 'tblTempVendorCDR_20' ) start [2025-03-08 00:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631352', 'tblTempVendorCDR_20' ) end [2025-03-08 00:03:22] Production.INFO: ProcessCDR(1,14631352,1,1,2) [2025-03-08 00:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631352', 'tblTempUsageDetail_20' ) start [2025-03-08 00:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631352', 'tblTempUsageDetail_20' ) end [2025-03-08 00:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:03:27] Production.INFO: ==3909== Releasing lock... [2025-03-08 00:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:03:27] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:04:06 [end_date_ymd] => 2025-03-08 00:04:06 [RateCDR] => 1 ) [2025-03-08 00:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:04:06' and `end` < '2025-03-08 00:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:04:18] Production.INFO: count ==1407 [2025-03-08 00:04:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:04:06 - End Time 2025-03-08 00:04:06 [2025-03-08 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631357', 'tblTempUsageDetail_20' ) start [2025-03-08 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631357', 'tblTempUsageDetail_20' ) end [2025-03-08 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631357', 'tblTempVendorCDR_20' ) start [2025-03-08 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631357', 'tblTempVendorCDR_20' ) end [2025-03-08 00:04:18] Production.INFO: ProcessCDR(1,14631357,1,1,2) [2025-03-08 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631357', 'tblTempUsageDetail_20' ) start [2025-03-08 00:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631357', 'tblTempUsageDetail_20' ) end [2025-03-08 00:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:04:23] Production.INFO: ==3983== Releasing lock... [2025-03-08 00:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:04:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:05:05 [end_date_ymd] => 2025-03-08 00:05:05 [RateCDR] => 1 ) [2025-03-08 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:05:05' and `end` < '2025-03-08 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:05:18] Production.INFO: count ==1416 [2025-03-08 00:05:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:05:05 - End Time 2025-03-08 00:05:05 [2025-03-08 00:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631362', 'tblTempUsageDetail_20' ) start [2025-03-08 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631362', 'tblTempUsageDetail_20' ) end [2025-03-08 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631362', 'tblTempVendorCDR_20' ) start [2025-03-08 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631362', 'tblTempVendorCDR_20' ) end [2025-03-08 00:05:18] Production.INFO: ProcessCDR(1,14631362,1,1,2) [2025-03-08 00:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631362', 'tblTempUsageDetail_20' ) start [2025-03-08 00:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631362', 'tblTempUsageDetail_20' ) end [2025-03-08 00:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:05:22] Production.INFO: ==4055== Releasing lock... [2025-03-08 00:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:05:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:06:06 [end_date_ymd] => 2025-03-08 00:06:06 [RateCDR] => 1 ) [2025-03-08 00:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:06:06' and `end` < '2025-03-08 00:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:06:18] Production.INFO: count ==1418 [2025-03-08 00:06:19] Production.ERROR: pbx CDR StartTime 2025-03-07 21:06:06 - End Time 2025-03-08 00:06:06 [2025-03-08 00:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631367', 'tblTempUsageDetail_20' ) start [2025-03-08 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631367', 'tblTempUsageDetail_20' ) end [2025-03-08 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631367', 'tblTempVendorCDR_20' ) start [2025-03-08 00:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631367', 'tblTempVendorCDR_20' ) end [2025-03-08 00:06:19] Production.INFO: ProcessCDR(1,14631367,1,1,2) [2025-03-08 00:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631367', 'tblTempUsageDetail_20' ) start [2025-03-08 00:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631367', 'tblTempUsageDetail_20' ) end [2025-03-08 00:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:06:22] Production.INFO: ==4127== Releasing lock... [2025-03-08 00:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:06:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:07:05 [end_date_ymd] => 2025-03-08 00:07:05 [RateCDR] => 1 ) [2025-03-08 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:07:05' and `end` < '2025-03-08 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:07:18] Production.INFO: count ==1415 [2025-03-08 00:07:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:07:05 - End Time 2025-03-08 00:07:05 [2025-03-08 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631372', 'tblTempUsageDetail_20' ) start [2025-03-08 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631372', 'tblTempUsageDetail_20' ) end [2025-03-08 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631372', 'tblTempVendorCDR_20' ) start [2025-03-08 00:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631372', 'tblTempVendorCDR_20' ) end [2025-03-08 00:07:19] Production.INFO: ProcessCDR(1,14631372,1,1,2) [2025-03-08 00:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631372', 'tblTempUsageDetail_20' ) start [2025-03-08 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631372', 'tblTempUsageDetail_20' ) end [2025-03-08 00:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:07:22] Production.INFO: ==4202== Releasing lock... [2025-03-08 00:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:07:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:08:06 [end_date_ymd] => 2025-03-08 00:08:06 [RateCDR] => 1 ) [2025-03-08 00:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:08:06' and `end` < '2025-03-08 00:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:08:18] Production.INFO: count ==1415 [2025-03-08 00:08:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:08:06 - End Time 2025-03-08 00:08:06 [2025-03-08 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631377', 'tblTempUsageDetail_20' ) start [2025-03-08 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631377', 'tblTempUsageDetail_20' ) end [2025-03-08 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631377', 'tblTempVendorCDR_20' ) start [2025-03-08 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631377', 'tblTempVendorCDR_20' ) end [2025-03-08 00:08:18] Production.INFO: ProcessCDR(1,14631377,1,1,2) [2025-03-08 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631377', 'tblTempUsageDetail_20' ) start [2025-03-08 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631377', 'tblTempUsageDetail_20' ) end [2025-03-08 00:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:08:23] Production.INFO: ==4276== Releasing lock... [2025-03-08 00:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:08:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:09:05 [end_date_ymd] => 2025-03-08 00:09:05 [RateCDR] => 1 ) [2025-03-08 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:09:05' and `end` < '2025-03-08 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:09:18] Production.INFO: count ==1446 [2025-03-08 00:09:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:09:05 - End Time 2025-03-08 00:09:05 [2025-03-08 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631382', 'tblTempUsageDetail_20' ) start [2025-03-08 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631382', 'tblTempUsageDetail_20' ) end [2025-03-08 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631382', 'tblTempVendorCDR_20' ) start [2025-03-08 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631382', 'tblTempVendorCDR_20' ) end [2025-03-08 00:09:18] Production.INFO: ProcessCDR(1,14631382,1,1,2) [2025-03-08 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631382', 'tblTempUsageDetail_20' ) start [2025-03-08 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631382', 'tblTempUsageDetail_20' ) end [2025-03-08 00:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:09:23] Production.INFO: ==4351== Releasing lock... [2025-03-08 00:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:09:23] Production.INFO: 39 MB #Memory Used# [2025-03-08 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:10:06 [end_date_ymd] => 2025-03-08 00:10:06 [RateCDR] => 1 ) [2025-03-08 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:10:06' and `end` < '2025-03-08 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:10:18] Production.INFO: count ==1463 [2025-03-08 00:10:19] Production.ERROR: pbx CDR StartTime 2025-03-07 21:10:06 - End Time 2025-03-08 00:10:06 [2025-03-08 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631388', 'tblTempUsageDetail_20' ) start [2025-03-08 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631388', 'tblTempUsageDetail_20' ) end [2025-03-08 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631388', 'tblTempVendorCDR_20' ) start [2025-03-08 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631388', 'tblTempVendorCDR_20' ) end [2025-03-08 00:10:19] Production.INFO: ProcessCDR(1,14631388,1,1,2) [2025-03-08 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631388', 'tblTempUsageDetail_20' ) start [2025-03-08 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631388', 'tblTempUsageDetail_20' ) end [2025-03-08 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:10:22] Production.INFO: ==4423== Releasing lock... [2025-03-08 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:10:22] Production.INFO: 39 MB #Memory Used# [2025-03-08 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:11:05 [end_date_ymd] => 2025-03-08 00:11:05 [RateCDR] => 1 ) [2025-03-08 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:11:05' and `end` < '2025-03-08 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:11:17] Production.INFO: count ==1461 [2025-03-08 00:11:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:11:05 - End Time 2025-03-08 00:11:05 [2025-03-08 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631393', 'tblTempUsageDetail_20' ) start [2025-03-08 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631393', 'tblTempUsageDetail_20' ) end [2025-03-08 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631393', 'tblTempVendorCDR_20' ) start [2025-03-08 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631393', 'tblTempVendorCDR_20' ) end [2025-03-08 00:11:18] Production.INFO: ProcessCDR(1,14631393,1,1,2) [2025-03-08 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631393', 'tblTempUsageDetail_20' ) start [2025-03-08 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631393', 'tblTempUsageDetail_20' ) end [2025-03-08 00:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:11:23] Production.INFO: ==4497== Releasing lock... [2025-03-08 00:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:11:23] Production.INFO: 39 MB #Memory Used# [2025-03-08 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:12:05 [end_date_ymd] => 2025-03-08 00:12:05 [RateCDR] => 1 ) [2025-03-08 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:12:05' and `end` < '2025-03-08 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:12:17] Production.INFO: count ==1450 [2025-03-08 00:12:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:12:05 - End Time 2025-03-08 00:12:05 [2025-03-08 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631398', 'tblTempUsageDetail_20' ) start [2025-03-08 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631398', 'tblTempUsageDetail_20' ) end [2025-03-08 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631398', 'tblTempVendorCDR_20' ) start [2025-03-08 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631398', 'tblTempVendorCDR_20' ) end [2025-03-08 00:12:18] Production.INFO: ProcessCDR(1,14631398,1,1,2) [2025-03-08 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631398', 'tblTempUsageDetail_20' ) start [2025-03-08 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631398', 'tblTempUsageDetail_20' ) end [2025-03-08 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:12:22] Production.INFO: ==4568== Releasing lock... [2025-03-08 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:12:22] Production.INFO: 39 MB #Memory Used# [2025-03-08 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:13:05 [end_date_ymd] => 2025-03-08 00:13:05 [RateCDR] => 1 ) [2025-03-08 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:13:05' and `end` < '2025-03-08 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:13:17] Production.INFO: count ==1421 [2025-03-08 00:13:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:13:05 - End Time 2025-03-08 00:13:05 [2025-03-08 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631403', 'tblTempUsageDetail_20' ) start [2025-03-08 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631403', 'tblTempUsageDetail_20' ) end [2025-03-08 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631403', 'tblTempVendorCDR_20' ) start [2025-03-08 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631403', 'tblTempVendorCDR_20' ) end [2025-03-08 00:13:18] Production.INFO: ProcessCDR(1,14631403,1,1,2) [2025-03-08 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631403', 'tblTempUsageDetail_20' ) start [2025-03-08 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631403', 'tblTempUsageDetail_20' ) end [2025-03-08 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:13:21] Production.INFO: ==4686== Releasing lock... [2025-03-08 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:13:21] Production.INFO: 39 MB #Memory Used# [2025-03-08 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:14:05 [end_date_ymd] => 2025-03-08 00:14:05 [RateCDR] => 1 ) [2025-03-08 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:14:05' and `end` < '2025-03-08 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:14:17] Production.INFO: count ==1393 [2025-03-08 00:14:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:14:05 - End Time 2025-03-08 00:14:05 [2025-03-08 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631408', 'tblTempUsageDetail_20' ) start [2025-03-08 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631408', 'tblTempUsageDetail_20' ) end [2025-03-08 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631408', 'tblTempVendorCDR_20' ) start [2025-03-08 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631408', 'tblTempVendorCDR_20' ) end [2025-03-08 00:14:18] Production.INFO: ProcessCDR(1,14631408,1,1,2) [2025-03-08 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631408', 'tblTempUsageDetail_20' ) start [2025-03-08 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631408', 'tblTempUsageDetail_20' ) end [2025-03-08 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:14:21] Production.INFO: ==4758== Releasing lock... [2025-03-08 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:14:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:15:05 [end_date_ymd] => 2025-03-08 00:15:05 [RateCDR] => 1 ) [2025-03-08 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:15:05' and `end` < '2025-03-08 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:15:18] Production.INFO: count ==1378 [2025-03-08 00:15:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:15:05 - End Time 2025-03-08 00:15:05 [2025-03-08 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631413', 'tblTempUsageDetail_20' ) start [2025-03-08 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631413', 'tblTempUsageDetail_20' ) end [2025-03-08 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631413', 'tblTempVendorCDR_20' ) start [2025-03-08 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631413', 'tblTempVendorCDR_20' ) end [2025-03-08 00:15:18] Production.INFO: ProcessCDR(1,14631413,1,1,2) [2025-03-08 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631413', 'tblTempUsageDetail_20' ) start [2025-03-08 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631413', 'tblTempUsageDetail_20' ) end [2025-03-08 00:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:15:23] Production.INFO: ==4829== Releasing lock... [2025-03-08 00:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:15:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:16:06 [end_date_ymd] => 2025-03-08 00:16:06 [RateCDR] => 1 ) [2025-03-08 00:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:16:06' and `end` < '2025-03-08 00:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:16:43] Production.INFO: count ==1345 [2025-03-08 00:16:44] Production.ERROR: pbx CDR StartTime 2025-03-07 21:16:06 - End Time 2025-03-08 00:16:06 [2025-03-08 00:16:44] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:16:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631418', 'tblTempUsageDetail_20' ) start [2025-03-08 00:16:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631418', 'tblTempUsageDetail_20' ) end [2025-03-08 00:16:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631418', 'tblTempVendorCDR_20' ) start [2025-03-08 00:16:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631418', 'tblTempVendorCDR_20' ) end [2025-03-08 00:16:44] Production.INFO: ProcessCDR(1,14631418,1,1,2) [2025-03-08 00:16:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:16:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:16:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:16:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:16:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631418', 'tblTempUsageDetail_20' ) start [2025-03-08 00:16:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631418', 'tblTempUsageDetail_20' ) end [2025-03-08 00:16:47] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:16:47] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:16:47] Production.INFO: ==4905== Releasing lock... [2025-03-08 00:16:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:16:47] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 00:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:17:06 [end_date_ymd] => 2025-03-08 00:17:06 [RateCDR] => 1 ) [2025-03-08 00:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:17:06' and `end` < '2025-03-08 00:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:17:22] Production.INFO: count ==1314 [2025-03-08 00:17:23] Production.ERROR: pbx CDR StartTime 2025-03-07 21:17:06 - End Time 2025-03-08 00:17:06 [2025-03-08 00:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631423', 'tblTempUsageDetail_20' ) start [2025-03-08 00:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631423', 'tblTempUsageDetail_20' ) end [2025-03-08 00:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631423', 'tblTempVendorCDR_20' ) start [2025-03-08 00:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631423', 'tblTempVendorCDR_20' ) end [2025-03-08 00:17:23] Production.INFO: ProcessCDR(1,14631423,1,1,2) [2025-03-08 00:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631423', 'tblTempUsageDetail_20' ) start [2025-03-08 00:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631423', 'tblTempUsageDetail_20' ) end [2025-03-08 00:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:17:26] Production.INFO: ==4976== Releasing lock... [2025-03-08 00:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:17:26] Production.INFO: 38 MB #Memory Used# [2025-03-08 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:18:06 [end_date_ymd] => 2025-03-08 00:18:06 [RateCDR] => 1 ) [2025-03-08 00:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:18:06' and `end` < '2025-03-08 00:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:18:21] Production.INFO: count ==1290 [2025-03-08 00:18:22] Production.ERROR: pbx CDR StartTime 2025-03-07 21:18:06 - End Time 2025-03-08 00:18:06 [2025-03-08 00:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631428', 'tblTempUsageDetail_20' ) start [2025-03-08 00:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631428', 'tblTempUsageDetail_20' ) end [2025-03-08 00:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631428', 'tblTempVendorCDR_20' ) start [2025-03-08 00:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631428', 'tblTempVendorCDR_20' ) end [2025-03-08 00:18:22] Production.INFO: ProcessCDR(1,14631428,1,1,2) [2025-03-08 00:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631428', 'tblTempUsageDetail_20' ) start [2025-03-08 00:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631428', 'tblTempUsageDetail_20' ) end [2025-03-08 00:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:18:25] Production.INFO: ==5060== Releasing lock... [2025-03-08 00:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:18:25] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 00:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:19:06 [end_date_ymd] => 2025-03-08 00:19:06 [RateCDR] => 1 ) [2025-03-08 00:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:19:06' and `end` < '2025-03-08 00:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:19:19] Production.INFO: count ==1268 [2025-03-08 00:19:20] Production.ERROR: pbx CDR StartTime 2025-03-07 21:19:06 - End Time 2025-03-08 00:19:06 [2025-03-08 00:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631433', 'tblTempUsageDetail_20' ) start [2025-03-08 00:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631433', 'tblTempUsageDetail_20' ) end [2025-03-08 00:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631433', 'tblTempVendorCDR_20' ) start [2025-03-08 00:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631433', 'tblTempVendorCDR_20' ) end [2025-03-08 00:19:20] Production.INFO: ProcessCDR(1,14631433,1,1,2) [2025-03-08 00:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631433', 'tblTempUsageDetail_20' ) start [2025-03-08 00:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631433', 'tblTempUsageDetail_20' ) end [2025-03-08 00:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:19:23] Production.INFO: ==5133== Releasing lock... [2025-03-08 00:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:19:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:20:06 [end_date_ymd] => 2025-03-08 00:20:06 [RateCDR] => 1 ) [2025-03-08 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:20:06' and `end` < '2025-03-08 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:20:20] Production.INFO: count ==1250 [2025-03-08 00:20:20] Production.ERROR: pbx CDR StartTime 2025-03-07 21:20:06 - End Time 2025-03-08 00:20:06 [2025-03-08 00:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631438', 'tblTempUsageDetail_20' ) start [2025-03-08 00:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631438', 'tblTempUsageDetail_20' ) end [2025-03-08 00:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631438', 'tblTempVendorCDR_20' ) start [2025-03-08 00:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631438', 'tblTempVendorCDR_20' ) end [2025-03-08 00:20:21] Production.INFO: ProcessCDR(1,14631438,1,1,2) [2025-03-08 00:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631438', 'tblTempUsageDetail_20' ) start [2025-03-08 00:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631438', 'tblTempUsageDetail_20' ) end [2025-03-08 00:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:20:24] Production.INFO: ==5221== Releasing lock... [2025-03-08 00:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:20:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:21:05 [end_date_ymd] => 2025-03-08 00:21:05 [RateCDR] => 1 ) [2025-03-08 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:21:05' and `end` < '2025-03-08 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:21:19] Production.INFO: count ==1249 [2025-03-08 00:21:20] Production.ERROR: pbx CDR StartTime 2025-03-07 21:21:05 - End Time 2025-03-08 00:21:05 [2025-03-08 00:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631444', 'tblTempUsageDetail_20' ) start [2025-03-08 00:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631444', 'tblTempUsageDetail_20' ) end [2025-03-08 00:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631444', 'tblTempVendorCDR_20' ) start [2025-03-08 00:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631444', 'tblTempVendorCDR_20' ) end [2025-03-08 00:21:20] Production.INFO: ProcessCDR(1,14631444,1,1,2) [2025-03-08 00:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631444', 'tblTempUsageDetail_20' ) start [2025-03-08 00:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631444', 'tblTempUsageDetail_20' ) end [2025-03-08 00:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:21:24] Production.INFO: ==5292== Releasing lock... [2025-03-08 00:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:21:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 00:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:22:06 [end_date_ymd] => 2025-03-08 00:22:06 [RateCDR] => 1 ) [2025-03-08 00:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:22:06' and `end` < '2025-03-08 00:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:22:18] Production.INFO: count ==1227 [2025-03-08 00:22:19] Production.ERROR: pbx CDR StartTime 2025-03-07 21:22:06 - End Time 2025-03-08 00:22:06 [2025-03-08 00:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631449', 'tblTempUsageDetail_20' ) start [2025-03-08 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631449', 'tblTempUsageDetail_20' ) end [2025-03-08 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631449', 'tblTempVendorCDR_20' ) start [2025-03-08 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631449', 'tblTempVendorCDR_20' ) end [2025-03-08 00:22:19] Production.INFO: ProcessCDR(1,14631449,1,1,2) [2025-03-08 00:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631449', 'tblTempUsageDetail_20' ) start [2025-03-08 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631449', 'tblTempUsageDetail_20' ) end [2025-03-08 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:22:22] Production.INFO: ==5366== Releasing lock... [2025-03-08 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:22:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:23:05 [end_date_ymd] => 2025-03-08 00:23:05 [RateCDR] => 1 ) [2025-03-08 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:23:05' and `end` < '2025-03-08 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:23:17] Production.INFO: count ==1205 [2025-03-08 00:23:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:23:05 - End Time 2025-03-08 00:23:05 [2025-03-08 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631454', 'tblTempUsageDetail_20' ) start [2025-03-08 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631454', 'tblTempUsageDetail_20' ) end [2025-03-08 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631454', 'tblTempVendorCDR_20' ) start [2025-03-08 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631454', 'tblTempVendorCDR_20' ) end [2025-03-08 00:23:18] Production.INFO: ProcessCDR(1,14631454,1,1,2) [2025-03-08 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631454', 'tblTempUsageDetail_20' ) start [2025-03-08 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631454', 'tblTempUsageDetail_20' ) end [2025-03-08 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:23:21] Production.INFO: ==5436== Releasing lock... [2025-03-08 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:23:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:24:05 [end_date_ymd] => 2025-03-08 00:24:05 [RateCDR] => 1 ) [2025-03-08 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:24:05' and `end` < '2025-03-08 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:24:18] Production.INFO: count ==1182 [2025-03-08 00:24:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:24:05 - End Time 2025-03-08 00:24:05 [2025-03-08 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631459', 'tblTempUsageDetail_20' ) start [2025-03-08 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631459', 'tblTempUsageDetail_20' ) end [2025-03-08 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631459', 'tblTempVendorCDR_20' ) start [2025-03-08 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631459', 'tblTempVendorCDR_20' ) end [2025-03-08 00:24:18] Production.INFO: ProcessCDR(1,14631459,1,1,2) [2025-03-08 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631459', 'tblTempUsageDetail_20' ) start [2025-03-08 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631459', 'tblTempUsageDetail_20' ) end [2025-03-08 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:24:21] Production.INFO: ==5506== Releasing lock... [2025-03-08 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:24:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:25:05 [end_date_ymd] => 2025-03-08 00:25:05 [RateCDR] => 1 ) [2025-03-08 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:25:05' and `end` < '2025-03-08 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:25:17] Production.INFO: count ==1175 [2025-03-08 00:25:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:25:05 - End Time 2025-03-08 00:25:05 [2025-03-08 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631464', 'tblTempUsageDetail_20' ) start [2025-03-08 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631464', 'tblTempUsageDetail_20' ) end [2025-03-08 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631464', 'tblTempVendorCDR_20' ) start [2025-03-08 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631464', 'tblTempVendorCDR_20' ) end [2025-03-08 00:25:18] Production.INFO: ProcessCDR(1,14631464,1,1,2) [2025-03-08 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631464', 'tblTempUsageDetail_20' ) start [2025-03-08 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631464', 'tblTempUsageDetail_20' ) end [2025-03-08 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:25:21] Production.INFO: ==5581== Releasing lock... [2025-03-08 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:25:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 00:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:26:06 [end_date_ymd] => 2025-03-08 00:26:06 [RateCDR] => 1 ) [2025-03-08 00:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:26:06' and `end` < '2025-03-08 00:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:26:18] Production.INFO: count ==1171 [2025-03-08 00:26:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:26:06 - End Time 2025-03-08 00:26:06 [2025-03-08 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631469', 'tblTempUsageDetail_20' ) start [2025-03-08 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631469', 'tblTempUsageDetail_20' ) end [2025-03-08 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631469', 'tblTempVendorCDR_20' ) start [2025-03-08 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631469', 'tblTempVendorCDR_20' ) end [2025-03-08 00:26:18] Production.INFO: ProcessCDR(1,14631469,1,1,2) [2025-03-08 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631469', 'tblTempUsageDetail_20' ) start [2025-03-08 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631469', 'tblTempUsageDetail_20' ) end [2025-03-08 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:26:22] Production.INFO: ==5656== Releasing lock... [2025-03-08 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:26:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:27:05 [end_date_ymd] => 2025-03-08 00:27:05 [RateCDR] => 1 ) [2025-03-08 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:27:05' and `end` < '2025-03-08 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:27:19] Production.INFO: count ==1166 [2025-03-08 00:27:19] Production.ERROR: pbx CDR StartTime 2025-03-07 21:27:05 - End Time 2025-03-08 00:27:05 [2025-03-08 00:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631474', 'tblTempUsageDetail_20' ) start [2025-03-08 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631474', 'tblTempUsageDetail_20' ) end [2025-03-08 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631474', 'tblTempVendorCDR_20' ) start [2025-03-08 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631474', 'tblTempVendorCDR_20' ) end [2025-03-08 00:27:19] Production.INFO: ProcessCDR(1,14631474,1,1,2) [2025-03-08 00:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631474', 'tblTempUsageDetail_20' ) start [2025-03-08 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631474', 'tblTempUsageDetail_20' ) end [2025-03-08 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:27:22] Production.INFO: ==5727== Releasing lock... [2025-03-08 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:27:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:28:06 [end_date_ymd] => 2025-03-08 00:28:06 [RateCDR] => 1 ) [2025-03-08 00:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:28:06' and `end` < '2025-03-08 00:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:28:18] Production.INFO: count ==1153 [2025-03-08 00:28:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:28:06 - End Time 2025-03-08 00:28:06 [2025-03-08 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631479', 'tblTempUsageDetail_20' ) start [2025-03-08 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631479', 'tblTempUsageDetail_20' ) end [2025-03-08 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631479', 'tblTempVendorCDR_20' ) start [2025-03-08 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631479', 'tblTempVendorCDR_20' ) end [2025-03-08 00:28:19] Production.INFO: ProcessCDR(1,14631479,1,1,2) [2025-03-08 00:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631479', 'tblTempUsageDetail_20' ) start [2025-03-08 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631479', 'tblTempUsageDetail_20' ) end [2025-03-08 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:28:22] Production.INFO: ==5842== Releasing lock... [2025-03-08 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:28:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:29:05 [end_date_ymd] => 2025-03-08 00:29:05 [RateCDR] => 1 ) [2025-03-08 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:29:05' and `end` < '2025-03-08 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:29:17] Production.INFO: count ==1154 [2025-03-08 00:29:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:29:05 - End Time 2025-03-08 00:29:05 [2025-03-08 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631484', 'tblTempUsageDetail_20' ) start [2025-03-08 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631484', 'tblTempUsageDetail_20' ) end [2025-03-08 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631484', 'tblTempVendorCDR_20' ) start [2025-03-08 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631484', 'tblTempVendorCDR_20' ) end [2025-03-08 00:29:18] Production.INFO: ProcessCDR(1,14631484,1,1,2) [2025-03-08 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631484', 'tblTempUsageDetail_20' ) start [2025-03-08 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631484', 'tblTempUsageDetail_20' ) end [2025-03-08 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:29:22] Production.INFO: ==5917== Releasing lock... [2025-03-08 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:29:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:30:06 [end_date_ymd] => 2025-03-08 00:30:06 [RateCDR] => 1 ) [2025-03-08 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:30:06' and `end` < '2025-03-08 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:30:18] Production.INFO: count ==1155 [2025-03-08 00:30:19] Production.ERROR: pbx CDR StartTime 2025-03-07 21:30:06 - End Time 2025-03-08 00:30:06 [2025-03-08 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631490', 'tblTempUsageDetail_20' ) start [2025-03-08 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631490', 'tblTempUsageDetail_20' ) end [2025-03-08 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631490', 'tblTempVendorCDR_20' ) start [2025-03-08 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631490', 'tblTempVendorCDR_20' ) end [2025-03-08 00:30:19] Production.INFO: ProcessCDR(1,14631490,1,1,2) [2025-03-08 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631490', 'tblTempUsageDetail_20' ) start [2025-03-08 00:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631490', 'tblTempUsageDetail_20' ) end [2025-03-08 00:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:30:24] Production.INFO: ==5989== Releasing lock... [2025-03-08 00:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:30:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:31:06 [end_date_ymd] => 2025-03-08 00:31:06 [RateCDR] => 1 ) [2025-03-08 00:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:31:06' and `end` < '2025-03-08 00:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:31:18] Production.INFO: count ==1154 [2025-03-08 00:31:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:31:06 - End Time 2025-03-08 00:31:06 [2025-03-08 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631495', 'tblTempUsageDetail_20' ) start [2025-03-08 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631495', 'tblTempUsageDetail_20' ) end [2025-03-08 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631495', 'tblTempVendorCDR_20' ) start [2025-03-08 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631495', 'tblTempVendorCDR_20' ) end [2025-03-08 00:31:18] Production.INFO: ProcessCDR(1,14631495,1,1,2) [2025-03-08 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631495', 'tblTempUsageDetail_20' ) start [2025-03-08 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631495', 'tblTempUsageDetail_20' ) end [2025-03-08 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:31:22] Production.INFO: ==6068== Releasing lock... [2025-03-08 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:31:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:32:05 [end_date_ymd] => 2025-03-08 00:32:05 [RateCDR] => 1 ) [2025-03-08 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:32:05' and `end` < '2025-03-08 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:32:17] Production.INFO: count ==1153 [2025-03-08 00:32:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:32:05 - End Time 2025-03-08 00:32:05 [2025-03-08 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631500', 'tblTempUsageDetail_20' ) start [2025-03-08 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631500', 'tblTempUsageDetail_20' ) end [2025-03-08 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631500', 'tblTempVendorCDR_20' ) start [2025-03-08 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631500', 'tblTempVendorCDR_20' ) end [2025-03-08 00:32:18] Production.INFO: ProcessCDR(1,14631500,1,1,2) [2025-03-08 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631500', 'tblTempUsageDetail_20' ) start [2025-03-08 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631500', 'tblTempUsageDetail_20' ) end [2025-03-08 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:32:22] Production.INFO: ==6137== Releasing lock... [2025-03-08 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:32:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 00:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:33:06 [end_date_ymd] => 2025-03-08 00:33:06 [RateCDR] => 1 ) [2025-03-08 00:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:33:06' and `end` < '2025-03-08 00:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:33:18] Production.INFO: count ==1127 [2025-03-08 00:33:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:33:06 - End Time 2025-03-08 00:33:06 [2025-03-08 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631505', 'tblTempUsageDetail_20' ) start [2025-03-08 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631505', 'tblTempUsageDetail_20' ) end [2025-03-08 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631505', 'tblTempVendorCDR_20' ) start [2025-03-08 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631505', 'tblTempVendorCDR_20' ) end [2025-03-08 00:33:18] Production.INFO: ProcessCDR(1,14631505,1,1,2) [2025-03-08 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631505', 'tblTempUsageDetail_20' ) start [2025-03-08 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631505', 'tblTempUsageDetail_20' ) end [2025-03-08 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:33:21] Production.INFO: ==6210== Releasing lock... [2025-03-08 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:33:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:34:05 [end_date_ymd] => 2025-03-08 00:34:05 [RateCDR] => 1 ) [2025-03-08 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:34:05' and `end` < '2025-03-08 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:34:17] Production.INFO: count ==1108 [2025-03-08 00:34:17] Production.ERROR: pbx CDR StartTime 2025-03-07 21:34:05 - End Time 2025-03-08 00:34:05 [2025-03-08 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631510', 'tblTempUsageDetail_20' ) start [2025-03-08 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631510', 'tblTempUsageDetail_20' ) end [2025-03-08 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631510', 'tblTempVendorCDR_20' ) start [2025-03-08 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631510', 'tblTempVendorCDR_20' ) end [2025-03-08 00:34:17] Production.INFO: ProcessCDR(1,14631510,1,1,2) [2025-03-08 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631510', 'tblTempUsageDetail_20' ) start [2025-03-08 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631510', 'tblTempUsageDetail_20' ) end [2025-03-08 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:34:21] Production.INFO: ==6281== Releasing lock... [2025-03-08 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:34:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:35:05 [end_date_ymd] => 2025-03-08 00:35:05 [RateCDR] => 1 ) [2025-03-08 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:35:05' and `end` < '2025-03-08 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:35:17] Production.INFO: count ==1098 [2025-03-08 00:35:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:35:05 - End Time 2025-03-08 00:35:05 [2025-03-08 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631515', 'tblTempUsageDetail_20' ) start [2025-03-08 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631515', 'tblTempUsageDetail_20' ) end [2025-03-08 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631515', 'tblTempVendorCDR_20' ) start [2025-03-08 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631515', 'tblTempVendorCDR_20' ) end [2025-03-08 00:35:18] Production.INFO: ProcessCDR(1,14631515,1,1,2) [2025-03-08 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631515', 'tblTempUsageDetail_20' ) start [2025-03-08 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631515', 'tblTempUsageDetail_20' ) end [2025-03-08 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:35:22] Production.INFO: ==6353== Releasing lock... [2025-03-08 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:35:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:36:05 [end_date_ymd] => 2025-03-08 00:36:05 [RateCDR] => 1 ) [2025-03-08 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:36:05' and `end` < '2025-03-08 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:36:17] Production.INFO: count ==1087 [2025-03-08 00:36:17] Production.ERROR: pbx CDR StartTime 2025-03-07 21:36:05 - End Time 2025-03-08 00:36:05 [2025-03-08 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631520', 'tblTempUsageDetail_20' ) start [2025-03-08 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631520', 'tblTempUsageDetail_20' ) end [2025-03-08 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631520', 'tblTempVendorCDR_20' ) start [2025-03-08 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631520', 'tblTempVendorCDR_20' ) end [2025-03-08 00:36:18] Production.INFO: ProcessCDR(1,14631520,1,1,2) [2025-03-08 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631520', 'tblTempUsageDetail_20' ) start [2025-03-08 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631520', 'tblTempUsageDetail_20' ) end [2025-03-08 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:36:21] Production.INFO: ==6425== Releasing lock... [2025-03-08 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:36:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 00:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:37:06 [end_date_ymd] => 2025-03-08 00:37:06 [RateCDR] => 1 ) [2025-03-08 00:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:37:06' and `end` < '2025-03-08 00:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:37:18] Production.INFO: count ==1090 [2025-03-08 00:37:19] Production.ERROR: pbx CDR StartTime 2025-03-07 21:37:06 - End Time 2025-03-08 00:37:06 [2025-03-08 00:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631525', 'tblTempUsageDetail_20' ) start [2025-03-08 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631525', 'tblTempUsageDetail_20' ) end [2025-03-08 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631525', 'tblTempVendorCDR_20' ) start [2025-03-08 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631525', 'tblTempVendorCDR_20' ) end [2025-03-08 00:37:19] Production.INFO: ProcessCDR(1,14631525,1,1,2) [2025-03-08 00:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631525', 'tblTempUsageDetail_20' ) start [2025-03-08 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631525', 'tblTempUsageDetail_20' ) end [2025-03-08 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:37:22] Production.INFO: ==6496== Releasing lock... [2025-03-08 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:37:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:38:05 [end_date_ymd] => 2025-03-08 00:38:05 [RateCDR] => 1 ) [2025-03-08 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:38:05' and `end` < '2025-03-08 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:38:17] Production.INFO: count ==1093 [2025-03-08 00:38:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:38:05 - End Time 2025-03-08 00:38:05 [2025-03-08 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631530', 'tblTempUsageDetail_20' ) start [2025-03-08 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631530', 'tblTempUsageDetail_20' ) end [2025-03-08 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631530', 'tblTempVendorCDR_20' ) start [2025-03-08 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631530', 'tblTempVendorCDR_20' ) end [2025-03-08 00:38:18] Production.INFO: ProcessCDR(1,14631530,1,1,2) [2025-03-08 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631530', 'tblTempUsageDetail_20' ) start [2025-03-08 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631530', 'tblTempUsageDetail_20' ) end [2025-03-08 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:38:21] Production.INFO: ==6567== Releasing lock... [2025-03-08 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:38:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:39:05 [end_date_ymd] => 2025-03-08 00:39:05 [RateCDR] => 1 ) [2025-03-08 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:39:05' and `end` < '2025-03-08 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:39:18] Production.INFO: count ==1093 [2025-03-08 00:39:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:39:05 - End Time 2025-03-08 00:39:05 [2025-03-08 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631535', 'tblTempUsageDetail_20' ) start [2025-03-08 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631535', 'tblTempUsageDetail_20' ) end [2025-03-08 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631535', 'tblTempVendorCDR_20' ) start [2025-03-08 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631535', 'tblTempVendorCDR_20' ) end [2025-03-08 00:39:18] Production.INFO: ProcessCDR(1,14631535,1,1,2) [2025-03-08 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631535', 'tblTempUsageDetail_20' ) start [2025-03-08 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631535', 'tblTempUsageDetail_20' ) end [2025-03-08 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:39:22] Production.INFO: ==6643== Releasing lock... [2025-03-08 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:39:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:40:06 [end_date_ymd] => 2025-03-08 00:40:06 [RateCDR] => 1 ) [2025-03-08 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:40:06' and `end` < '2025-03-08 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:40:18] Production.INFO: count ==1098 [2025-03-08 00:40:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:40:06 - End Time 2025-03-08 00:40:06 [2025-03-08 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631541', 'tblTempUsageDetail_20' ) start [2025-03-08 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631541', 'tblTempUsageDetail_20' ) end [2025-03-08 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631541', 'tblTempVendorCDR_20' ) start [2025-03-08 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631541', 'tblTempVendorCDR_20' ) end [2025-03-08 00:40:18] Production.INFO: ProcessCDR(1,14631541,1,1,2) [2025-03-08 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631541', 'tblTempUsageDetail_20' ) start [2025-03-08 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631541', 'tblTempUsageDetail_20' ) end [2025-03-08 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:40:22] Production.INFO: ==6715== Releasing lock... [2025-03-08 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:40:22] Production.INFO: 37 MB #Memory Used# [2025-03-08 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:41:05 [end_date_ymd] => 2025-03-08 00:41:05 [RateCDR] => 1 ) [2025-03-08 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:41:05' and `end` < '2025-03-08 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:41:17] Production.INFO: count ==1113 [2025-03-08 00:41:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:41:05 - End Time 2025-03-08 00:41:05 [2025-03-08 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631546', 'tblTempUsageDetail_20' ) start [2025-03-08 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631546', 'tblTempUsageDetail_20' ) end [2025-03-08 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631546', 'tblTempVendorCDR_20' ) start [2025-03-08 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631546', 'tblTempVendorCDR_20' ) end [2025-03-08 00:41:18] Production.INFO: ProcessCDR(1,14631546,1,1,2) [2025-03-08 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631546', 'tblTempUsageDetail_20' ) start [2025-03-08 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631546', 'tblTempUsageDetail_20' ) end [2025-03-08 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:41:21] Production.INFO: ==6789== Releasing lock... [2025-03-08 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:41:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 00:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:42:06 [end_date_ymd] => 2025-03-08 00:42:06 [RateCDR] => 1 ) [2025-03-08 00:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:42:06' and `end` < '2025-03-08 00:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:42:18] Production.INFO: count ==1123 [2025-03-08 00:42:19] Production.ERROR: pbx CDR StartTime 2025-03-07 21:42:06 - End Time 2025-03-08 00:42:06 [2025-03-08 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631551', 'tblTempUsageDetail_20' ) start [2025-03-08 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631551', 'tblTempUsageDetail_20' ) end [2025-03-08 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631551', 'tblTempVendorCDR_20' ) start [2025-03-08 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631551', 'tblTempVendorCDR_20' ) end [2025-03-08 00:42:19] Production.INFO: ProcessCDR(1,14631551,1,1,2) [2025-03-08 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631551', 'tblTempUsageDetail_20' ) start [2025-03-08 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631551', 'tblTempUsageDetail_20' ) end [2025-03-08 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:42:22] Production.INFO: ==6862== Releasing lock... [2025-03-08 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:42:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:43:06 [end_date_ymd] => 2025-03-08 00:43:06 [RateCDR] => 1 ) [2025-03-08 00:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:43:06' and `end` < '2025-03-08 00:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:43:18] Production.INFO: count ==1125 [2025-03-08 00:43:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:43:06 - End Time 2025-03-08 00:43:06 [2025-03-08 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631556', 'tblTempUsageDetail_20' ) start [2025-03-08 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631556', 'tblTempUsageDetail_20' ) end [2025-03-08 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631556', 'tblTempVendorCDR_20' ) start [2025-03-08 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631556', 'tblTempVendorCDR_20' ) end [2025-03-08 00:43:18] Production.INFO: ProcessCDR(1,14631556,1,1,2) [2025-03-08 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631556', 'tblTempUsageDetail_20' ) start [2025-03-08 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631556', 'tblTempUsageDetail_20' ) end [2025-03-08 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:43:22] Production.INFO: ==6973== Releasing lock... [2025-03-08 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:43:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:44:05 [end_date_ymd] => 2025-03-08 00:44:05 [RateCDR] => 1 ) [2025-03-08 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:44:05' and `end` < '2025-03-08 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:44:17] Production.INFO: count ==1126 [2025-03-08 00:44:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:44:05 - End Time 2025-03-08 00:44:05 [2025-03-08 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631561', 'tblTempUsageDetail_20' ) start [2025-03-08 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631561', 'tblTempUsageDetail_20' ) end [2025-03-08 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631561', 'tblTempVendorCDR_20' ) start [2025-03-08 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631561', 'tblTempVendorCDR_20' ) end [2025-03-08 00:44:18] Production.INFO: ProcessCDR(1,14631561,1,1,2) [2025-03-08 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631561', 'tblTempUsageDetail_20' ) start [2025-03-08 00:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631561', 'tblTempUsageDetail_20' ) end [2025-03-08 00:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:44:23] Production.INFO: ==7044== Releasing lock... [2025-03-08 00:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:44:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:45:05 [end_date_ymd] => 2025-03-08 00:45:05 [RateCDR] => 1 ) [2025-03-08 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:45:05' and `end` < '2025-03-08 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:45:17] Production.INFO: count ==1124 [2025-03-08 00:45:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:45:05 - End Time 2025-03-08 00:45:05 [2025-03-08 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631566', 'tblTempUsageDetail_20' ) start [2025-03-08 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631566', 'tblTempUsageDetail_20' ) end [2025-03-08 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631566', 'tblTempVendorCDR_20' ) start [2025-03-08 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631566', 'tblTempVendorCDR_20' ) end [2025-03-08 00:45:18] Production.INFO: ProcessCDR(1,14631566,1,1,2) [2025-03-08 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631566', 'tblTempUsageDetail_20' ) start [2025-03-08 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631566', 'tblTempUsageDetail_20' ) end [2025-03-08 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:45:21] Production.INFO: ==7119== Releasing lock... [2025-03-08 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:45:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:46:05 [end_date_ymd] => 2025-03-08 00:46:05 [RateCDR] => 1 ) [2025-03-08 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:46:05' and `end` < '2025-03-08 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:46:17] Production.INFO: count ==1122 [2025-03-08 00:46:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:46:05 - End Time 2025-03-08 00:46:05 [2025-03-08 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631571', 'tblTempUsageDetail_20' ) start [2025-03-08 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631571', 'tblTempUsageDetail_20' ) end [2025-03-08 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631571', 'tblTempVendorCDR_20' ) start [2025-03-08 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631571', 'tblTempVendorCDR_20' ) end [2025-03-08 00:46:18] Production.INFO: ProcessCDR(1,14631571,1,1,2) [2025-03-08 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631571', 'tblTempUsageDetail_20' ) start [2025-03-08 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631571', 'tblTempUsageDetail_20' ) end [2025-03-08 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:46:21] Production.INFO: ==7190== Releasing lock... [2025-03-08 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:46:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:47:05 [end_date_ymd] => 2025-03-08 00:47:05 [RateCDR] => 1 ) [2025-03-08 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:47:05' and `end` < '2025-03-08 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:47:18] Production.INFO: count ==1125 [2025-03-08 00:47:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:47:05 - End Time 2025-03-08 00:47:05 [2025-03-08 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631576', 'tblTempUsageDetail_20' ) start [2025-03-08 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631576', 'tblTempUsageDetail_20' ) end [2025-03-08 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631576', 'tblTempVendorCDR_20' ) start [2025-03-08 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631576', 'tblTempVendorCDR_20' ) end [2025-03-08 00:47:18] Production.INFO: ProcessCDR(1,14631576,1,1,2) [2025-03-08 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631576', 'tblTempUsageDetail_20' ) start [2025-03-08 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631576', 'tblTempUsageDetail_20' ) end [2025-03-08 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:47:22] Production.INFO: ==7262== Releasing lock... [2025-03-08 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:47:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:48:05 [end_date_ymd] => 2025-03-08 00:48:05 [RateCDR] => 1 ) [2025-03-08 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:48:05' and `end` < '2025-03-08 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:48:17] Production.INFO: count ==1126 [2025-03-08 00:48:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:48:05 - End Time 2025-03-08 00:48:05 [2025-03-08 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631581', 'tblTempUsageDetail_20' ) start [2025-03-08 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631581', 'tblTempUsageDetail_20' ) end [2025-03-08 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631581', 'tblTempVendorCDR_20' ) start [2025-03-08 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631581', 'tblTempVendorCDR_20' ) end [2025-03-08 00:48:18] Production.INFO: ProcessCDR(1,14631581,1,1,2) [2025-03-08 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631581', 'tblTempUsageDetail_20' ) start [2025-03-08 00:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631581', 'tblTempUsageDetail_20' ) end [2025-03-08 00:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:48:23] Production.INFO: ==7338== Releasing lock... [2025-03-08 00:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:48:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:49:05 [end_date_ymd] => 2025-03-08 00:49:05 [RateCDR] => 1 ) [2025-03-08 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:49:05' and `end` < '2025-03-08 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:49:17] Production.INFO: count ==1126 [2025-03-08 00:49:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:49:05 - End Time 2025-03-08 00:49:05 [2025-03-08 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631586', 'tblTempUsageDetail_20' ) start [2025-03-08 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631586', 'tblTempUsageDetail_20' ) end [2025-03-08 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631586', 'tblTempVendorCDR_20' ) start [2025-03-08 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631586', 'tblTempVendorCDR_20' ) end [2025-03-08 00:49:18] Production.INFO: ProcessCDR(1,14631586,1,1,2) [2025-03-08 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631586', 'tblTempUsageDetail_20' ) start [2025-03-08 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631586', 'tblTempUsageDetail_20' ) end [2025-03-08 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:49:21] Production.INFO: ==7410== Releasing lock... [2025-03-08 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:49:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:50:06 [end_date_ymd] => 2025-03-08 00:50:06 [RateCDR] => 1 ) [2025-03-08 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:50:06' and `end` < '2025-03-08 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:50:18] Production.INFO: count ==1131 [2025-03-08 00:50:19] Production.ERROR: pbx CDR StartTime 2025-03-07 21:50:06 - End Time 2025-03-08 00:50:06 [2025-03-08 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631592', 'tblTempUsageDetail_20' ) start [2025-03-08 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631592', 'tblTempUsageDetail_20' ) end [2025-03-08 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631592', 'tblTempVendorCDR_20' ) start [2025-03-08 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631592', 'tblTempVendorCDR_20' ) end [2025-03-08 00:50:19] Production.INFO: ProcessCDR(1,14631592,1,1,2) [2025-03-08 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631592', 'tblTempUsageDetail_20' ) start [2025-03-08 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631592', 'tblTempUsageDetail_20' ) end [2025-03-08 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:50:22] Production.INFO: ==7487== Releasing lock... [2025-03-08 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:50:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:51:06 [end_date_ymd] => 2025-03-08 00:51:06 [RateCDR] => 1 ) [2025-03-08 00:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:51:06' and `end` < '2025-03-08 00:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:51:18] Production.INFO: count ==1159 [2025-03-08 00:51:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:51:06 - End Time 2025-03-08 00:51:06 [2025-03-08 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631597', 'tblTempUsageDetail_20' ) start [2025-03-08 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631597', 'tblTempUsageDetail_20' ) end [2025-03-08 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631597', 'tblTempVendorCDR_20' ) start [2025-03-08 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631597', 'tblTempVendorCDR_20' ) end [2025-03-08 00:51:18] Production.INFO: ProcessCDR(1,14631597,1,1,2) [2025-03-08 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631597', 'tblTempUsageDetail_20' ) start [2025-03-08 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631597', 'tblTempUsageDetail_20' ) end [2025-03-08 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:51:22] Production.INFO: ==7563== Releasing lock... [2025-03-08 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:51:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:52:05 [end_date_ymd] => 2025-03-08 00:52:05 [RateCDR] => 1 ) [2025-03-08 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:52:05' and `end` < '2025-03-08 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:52:17] Production.INFO: count ==1158 [2025-03-08 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:52:05 - End Time 2025-03-08 00:52:05 [2025-03-08 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631602', 'tblTempUsageDetail_20' ) start [2025-03-08 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631602', 'tblTempUsageDetail_20' ) end [2025-03-08 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631602', 'tblTempVendorCDR_20' ) start [2025-03-08 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631602', 'tblTempVendorCDR_20' ) end [2025-03-08 00:52:18] Production.INFO: ProcessCDR(1,14631602,1,1,2) [2025-03-08 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631602', 'tblTempUsageDetail_20' ) start [2025-03-08 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631602', 'tblTempUsageDetail_20' ) end [2025-03-08 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:52:21] Production.INFO: ==7635== Releasing lock... [2025-03-08 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:52:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 00:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:53:06 [end_date_ymd] => 2025-03-08 00:53:06 [RateCDR] => 1 ) [2025-03-08 00:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:53:06' and `end` < '2025-03-08 00:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:53:18] Production.INFO: count ==1158 [2025-03-08 00:53:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:53:06 - End Time 2025-03-08 00:53:06 [2025-03-08 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631607', 'tblTempUsageDetail_20' ) start [2025-03-08 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631607', 'tblTempUsageDetail_20' ) end [2025-03-08 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631607', 'tblTempVendorCDR_20' ) start [2025-03-08 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631607', 'tblTempVendorCDR_20' ) end [2025-03-08 00:53:18] Production.INFO: ProcessCDR(1,14631607,1,1,2) [2025-03-08 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631607', 'tblTempUsageDetail_20' ) start [2025-03-08 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631607', 'tblTempUsageDetail_20' ) end [2025-03-08 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:53:22] Production.INFO: ==7706== Releasing lock... [2025-03-08 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:53:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:54:05 [end_date_ymd] => 2025-03-08 00:54:05 [RateCDR] => 1 ) [2025-03-08 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:54:05' and `end` < '2025-03-08 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:54:17] Production.INFO: count ==1163 [2025-03-08 00:54:17] Production.ERROR: pbx CDR StartTime 2025-03-07 21:54:05 - End Time 2025-03-08 00:54:05 [2025-03-08 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631612', 'tblTempUsageDetail_20' ) start [2025-03-08 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631612', 'tblTempUsageDetail_20' ) end [2025-03-08 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631612', 'tblTempVendorCDR_20' ) start [2025-03-08 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631612', 'tblTempVendorCDR_20' ) end [2025-03-08 00:54:18] Production.INFO: ProcessCDR(1,14631612,1,1,2) [2025-03-08 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631612', 'tblTempUsageDetail_20' ) start [2025-03-08 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631612', 'tblTempUsageDetail_20' ) end [2025-03-08 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:54:21] Production.INFO: ==7779== Releasing lock... [2025-03-08 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:54:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:55:05 [end_date_ymd] => 2025-03-08 00:55:05 [RateCDR] => 1 ) [2025-03-08 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:55:05' and `end` < '2025-03-08 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:55:17] Production.INFO: count ==1170 [2025-03-08 00:55:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:55:05 - End Time 2025-03-08 00:55:05 [2025-03-08 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631617', 'tblTempUsageDetail_20' ) start [2025-03-08 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631617', 'tblTempUsageDetail_20' ) end [2025-03-08 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631617', 'tblTempVendorCDR_20' ) start [2025-03-08 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631617', 'tblTempVendorCDR_20' ) end [2025-03-08 00:55:18] Production.INFO: ProcessCDR(1,14631617,1,1,2) [2025-03-08 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631617', 'tblTempUsageDetail_20' ) start [2025-03-08 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631617', 'tblTempUsageDetail_20' ) end [2025-03-08 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:55:22] Production.INFO: ==7851== Releasing lock... [2025-03-08 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:55:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:56:06 [end_date_ymd] => 2025-03-08 00:56:06 [RateCDR] => 1 ) [2025-03-08 00:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:56:06' and `end` < '2025-03-08 00:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:56:18] Production.INFO: count ==1156 [2025-03-08 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:56:06 - End Time 2025-03-08 00:56:06 [2025-03-08 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631622', 'tblTempUsageDetail_20' ) start [2025-03-08 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631622', 'tblTempUsageDetail_20' ) end [2025-03-08 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631622', 'tblTempVendorCDR_20' ) start [2025-03-08 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631622', 'tblTempVendorCDR_20' ) end [2025-03-08 00:56:18] Production.INFO: ProcessCDR(1,14631622,1,1,2) [2025-03-08 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631622', 'tblTempUsageDetail_20' ) start [2025-03-08 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631622', 'tblTempUsageDetail_20' ) end [2025-03-08 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:56:22] Production.INFO: ==7923== Releasing lock... [2025-03-08 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:56:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:57:05 [end_date_ymd] => 2025-03-08 00:57:05 [RateCDR] => 1 ) [2025-03-08 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:57:05' and `end` < '2025-03-08 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:57:17] Production.INFO: count ==1079 [2025-03-08 00:57:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:57:05 - End Time 2025-03-08 00:57:05 [2025-03-08 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631627', 'tblTempUsageDetail_20' ) start [2025-03-08 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631627', 'tblTempUsageDetail_20' ) end [2025-03-08 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631627', 'tblTempVendorCDR_20' ) start [2025-03-08 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631627', 'tblTempVendorCDR_20' ) end [2025-03-08 00:57:18] Production.INFO: ProcessCDR(1,14631627,1,1,2) [2025-03-08 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631627', 'tblTempUsageDetail_20' ) start [2025-03-08 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631627', 'tblTempUsageDetail_20' ) end [2025-03-08 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:57:21] Production.INFO: ==7995== Releasing lock... [2025-03-08 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:57:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:58:05 [end_date_ymd] => 2025-03-08 00:58:05 [RateCDR] => 1 ) [2025-03-08 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:58:05' and `end` < '2025-03-08 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:58:17] Production.INFO: count ==999 [2025-03-08 00:58:17] Production.ERROR: pbx CDR StartTime 2025-03-07 21:58:05 - End Time 2025-03-08 00:58:05 [2025-03-08 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631632', 'tblTempUsageDetail_20' ) start [2025-03-08 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631632', 'tblTempUsageDetail_20' ) end [2025-03-08 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631632', 'tblTempVendorCDR_20' ) start [2025-03-08 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631632', 'tblTempVendorCDR_20' ) end [2025-03-08 00:58:17] Production.INFO: ProcessCDR(1,14631632,1,1,2) [2025-03-08 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631632', 'tblTempUsageDetail_20' ) start [2025-03-08 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631632', 'tblTempUsageDetail_20' ) end [2025-03-08 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:58:21] Production.INFO: ==8068== Releasing lock... [2025-03-08 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:58:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 21:59:05 [end_date_ymd] => 2025-03-08 00:59:05 [RateCDR] => 1 ) [2025-03-08 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 21:59:05' and `end` < '2025-03-08 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 00:59:17] Production.INFO: count ==982 [2025-03-08 00:59:18] Production.ERROR: pbx CDR StartTime 2025-03-07 21:59:05 - End Time 2025-03-08 00:59:05 [2025-03-08 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631637', 'tblTempUsageDetail_20' ) start [2025-03-08 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631637', 'tblTempUsageDetail_20' ) end [2025-03-08 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631637', 'tblTempVendorCDR_20' ) start [2025-03-08 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631637', 'tblTempVendorCDR_20' ) end [2025-03-08 00:59:18] Production.INFO: ProcessCDR(1,14631637,1,1,2) [2025-03-08 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631637', 'tblTempUsageDetail_20' ) start [2025-03-08 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631637', 'tblTempUsageDetail_20' ) end [2025-03-08 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 00:59:21] Production.INFO: ==8179== Releasing lock... [2025-03-08 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 00:59:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 01:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:00:07 [end_date_ymd] => 2025-03-08 01:00:07 [RateCDR] => 1 ) [2025-03-08 01:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:00:07' and `end` < '2025-03-08 01:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:00:19] Production.INFO: count ==981 [2025-03-08 01:00:19] Production.ERROR: pbx CDR StartTime 2025-03-07 22:00:07 - End Time 2025-03-08 01:00:07 [2025-03-08 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631643', 'tblTempUsageDetail_20' ) start [2025-03-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631643', 'tblTempUsageDetail_20' ) end [2025-03-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631643', 'tblTempVendorCDR_20' ) start [2025-03-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631643', 'tblTempVendorCDR_20' ) end [2025-03-08 01:00:19] Production.INFO: ProcessCDR(1,14631643,1,1,2) [2025-03-08 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631643', 'tblTempUsageDetail_20' ) start [2025-03-08 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631643', 'tblTempUsageDetail_20' ) end [2025-03-08 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:00:23] Production.INFO: ==8255== Releasing lock... [2025-03-08 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:00:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:01:05 [end_date_ymd] => 2025-03-08 01:01:05 [RateCDR] => 1 ) [2025-03-08 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:01:05' and `end` < '2025-03-08 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:01:17] Production.INFO: count ==970 [2025-03-08 01:01:17] Production.ERROR: pbx CDR StartTime 2025-03-07 22:01:05 - End Time 2025-03-08 01:01:05 [2025-03-08 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631648', 'tblTempUsageDetail_20' ) start [2025-03-08 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631648', 'tblTempUsageDetail_20' ) end [2025-03-08 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631648', 'tblTempVendorCDR_20' ) start [2025-03-08 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631648', 'tblTempVendorCDR_20' ) end [2025-03-08 01:01:17] Production.INFO: ProcessCDR(1,14631648,1,1,2) [2025-03-08 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631648', 'tblTempUsageDetail_20' ) start [2025-03-08 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631648', 'tblTempUsageDetail_20' ) end [2025-03-08 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:01:21] Production.INFO: ==8345== Releasing lock... [2025-03-08 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:01:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:02:06 [end_date_ymd] => 2025-03-08 01:02:06 [RateCDR] => 1 ) [2025-03-08 01:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:02:06' and `end` < '2025-03-08 01:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:02:18] Production.INFO: count ==953 [2025-03-08 01:02:19] Production.ERROR: pbx CDR StartTime 2025-03-07 22:02:06 - End Time 2025-03-08 01:02:06 [2025-03-08 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631653', 'tblTempUsageDetail_20' ) start [2025-03-08 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631653', 'tblTempUsageDetail_20' ) end [2025-03-08 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631653', 'tblTempVendorCDR_20' ) start [2025-03-08 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631653', 'tblTempVendorCDR_20' ) end [2025-03-08 01:02:19] Production.INFO: ProcessCDR(1,14631653,1,1,2) [2025-03-08 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631653', 'tblTempUsageDetail_20' ) start [2025-03-08 01:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631653', 'tblTempUsageDetail_20' ) end [2025-03-08 01:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:02:24] Production.INFO: ==8419== Releasing lock... [2025-03-08 01:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:02:24] Production.INFO: 35.75 MB #Memory Used# [2025-03-08 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:03:05 [end_date_ymd] => 2025-03-08 01:03:05 [RateCDR] => 1 ) [2025-03-08 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:03:05' and `end` < '2025-03-08 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:03:17] Production.INFO: count ==953 [2025-03-08 01:03:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:03:05 - End Time 2025-03-08 01:03:05 [2025-03-08 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631658', 'tblTempUsageDetail_20' ) start [2025-03-08 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631658', 'tblTempUsageDetail_20' ) end [2025-03-08 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631658', 'tblTempVendorCDR_20' ) start [2025-03-08 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631658', 'tblTempVendorCDR_20' ) end [2025-03-08 01:03:18] Production.INFO: ProcessCDR(1,14631658,1,1,2) [2025-03-08 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631658', 'tblTempUsageDetail_20' ) start [2025-03-08 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631658', 'tblTempUsageDetail_20' ) end [2025-03-08 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:03:21] Production.INFO: ==8490== Releasing lock... [2025-03-08 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:03:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-08 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:04:06 [end_date_ymd] => 2025-03-08 01:04:06 [RateCDR] => 1 ) [2025-03-08 01:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:04:06' and `end` < '2025-03-08 01:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:04:18] Production.INFO: count ==952 [2025-03-08 01:04:19] Production.ERROR: pbx CDR StartTime 2025-03-07 22:04:06 - End Time 2025-03-08 01:04:06 [2025-03-08 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631663', 'tblTempUsageDetail_20' ) start [2025-03-08 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631663', 'tblTempUsageDetail_20' ) end [2025-03-08 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631663', 'tblTempVendorCDR_20' ) start [2025-03-08 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631663', 'tblTempVendorCDR_20' ) end [2025-03-08 01:04:19] Production.INFO: ProcessCDR(1,14631663,1,1,2) [2025-03-08 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631663', 'tblTempUsageDetail_20' ) start [2025-03-08 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631663', 'tblTempUsageDetail_20' ) end [2025-03-08 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:04:22] Production.INFO: ==8567== Releasing lock... [2025-03-08 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:04:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-08 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:05:05 [end_date_ymd] => 2025-03-08 01:05:05 [RateCDR] => 1 ) [2025-03-08 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:05:05' and `end` < '2025-03-08 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:05:17] Production.INFO: count ==950 [2025-03-08 01:05:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:05:05 - End Time 2025-03-08 01:05:05 [2025-03-08 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631668', 'tblTempUsageDetail_20' ) start [2025-03-08 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631668', 'tblTempUsageDetail_20' ) end [2025-03-08 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631668', 'tblTempVendorCDR_20' ) start [2025-03-08 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631668', 'tblTempVendorCDR_20' ) end [2025-03-08 01:05:18] Production.INFO: ProcessCDR(1,14631668,1,1,2) [2025-03-08 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631668', 'tblTempUsageDetail_20' ) start [2025-03-08 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631668', 'tblTempUsageDetail_20' ) end [2025-03-08 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:05:21] Production.INFO: ==8635== Releasing lock... [2025-03-08 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:05:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-08 01:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:06:06 [end_date_ymd] => 2025-03-08 01:06:06 [RateCDR] => 1 ) [2025-03-08 01:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:06:06' and `end` < '2025-03-08 01:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:06:18] Production.INFO: count ==949 [2025-03-08 01:06:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:06:06 - End Time 2025-03-08 01:06:06 [2025-03-08 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631673', 'tblTempUsageDetail_20' ) start [2025-03-08 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631673', 'tblTempUsageDetail_20' ) end [2025-03-08 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631673', 'tblTempVendorCDR_20' ) start [2025-03-08 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631673', 'tblTempVendorCDR_20' ) end [2025-03-08 01:06:18] Production.INFO: ProcessCDR(1,14631673,1,1,2) [2025-03-08 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631673', 'tblTempUsageDetail_20' ) start [2025-03-08 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631673', 'tblTempUsageDetail_20' ) end [2025-03-08 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:06:22] Production.INFO: ==8712== Releasing lock... [2025-03-08 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:06:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:07:05 [end_date_ymd] => 2025-03-08 01:07:05 [RateCDR] => 1 ) [2025-03-08 01:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:07:05' and `end` < '2025-03-08 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:07:18] Production.INFO: count ==945 [2025-03-08 01:07:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:07:05 - End Time 2025-03-08 01:07:05 [2025-03-08 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631678', 'tblTempUsageDetail_20' ) start [2025-03-08 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631678', 'tblTempUsageDetail_20' ) end [2025-03-08 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631678', 'tblTempVendorCDR_20' ) start [2025-03-08 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631678', 'tblTempVendorCDR_20' ) end [2025-03-08 01:07:18] Production.INFO: ProcessCDR(1,14631678,1,1,2) [2025-03-08 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631678', 'tblTempUsageDetail_20' ) start [2025-03-08 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631678', 'tblTempUsageDetail_20' ) end [2025-03-08 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:07:21] Production.INFO: ==8788== Releasing lock... [2025-03-08 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:07:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-08 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:08:05 [end_date_ymd] => 2025-03-08 01:08:05 [RateCDR] => 1 ) [2025-03-08 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:08:05' and `end` < '2025-03-08 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:08:17] Production.INFO: count ==941 [2025-03-08 01:08:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:08:05 - End Time 2025-03-08 01:08:05 [2025-03-08 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631683', 'tblTempUsageDetail_20' ) start [2025-03-08 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631683', 'tblTempUsageDetail_20' ) end [2025-03-08 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631683', 'tblTempVendorCDR_20' ) start [2025-03-08 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631683', 'tblTempVendorCDR_20' ) end [2025-03-08 01:08:18] Production.INFO: ProcessCDR(1,14631683,1,1,2) [2025-03-08 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631683', 'tblTempUsageDetail_20' ) start [2025-03-08 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631683', 'tblTempUsageDetail_20' ) end [2025-03-08 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:08:21] Production.INFO: ==8862== Releasing lock... [2025-03-08 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:08:21] Production.INFO: 36 MB #Memory Used# [2025-03-08 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:09:05 [end_date_ymd] => 2025-03-08 01:09:05 [RateCDR] => 1 ) [2025-03-08 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:09:05' and `end` < '2025-03-08 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:09:17] Production.INFO: count ==935 [2025-03-08 01:09:17] Production.ERROR: pbx CDR StartTime 2025-03-07 22:09:05 - End Time 2025-03-08 01:09:05 [2025-03-08 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631688', 'tblTempUsageDetail_20' ) start [2025-03-08 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631688', 'tblTempUsageDetail_20' ) end [2025-03-08 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631688', 'tblTempVendorCDR_20' ) start [2025-03-08 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631688', 'tblTempVendorCDR_20' ) end [2025-03-08 01:09:17] Production.INFO: ProcessCDR(1,14631688,1,1,2) [2025-03-08 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631688', 'tblTempUsageDetail_20' ) start [2025-03-08 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631688', 'tblTempUsageDetail_20' ) end [2025-03-08 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:09:21] Production.INFO: ==8936== Releasing lock... [2025-03-08 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:09:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-08 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:10:06 [end_date_ymd] => 2025-03-08 01:10:06 [RateCDR] => 1 ) [2025-03-08 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:10:06' and `end` < '2025-03-08 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:10:18] Production.INFO: count ==932 [2025-03-08 01:10:19] Production.ERROR: pbx CDR StartTime 2025-03-07 22:10:06 - End Time 2025-03-08 01:10:06 [2025-03-08 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631694', 'tblTempUsageDetail_20' ) start [2025-03-08 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631694', 'tblTempUsageDetail_20' ) end [2025-03-08 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631694', 'tblTempVendorCDR_20' ) start [2025-03-08 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631694', 'tblTempVendorCDR_20' ) end [2025-03-08 01:10:19] Production.INFO: ProcessCDR(1,14631694,1,1,2) [2025-03-08 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631694', 'tblTempUsageDetail_20' ) start [2025-03-08 01:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631694', 'tblTempUsageDetail_20' ) end [2025-03-08 01:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:10:24] Production.INFO: ==9008== Releasing lock... [2025-03-08 01:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:10:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-08 01:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:11:06 [end_date_ymd] => 2025-03-08 01:11:06 [RateCDR] => 1 ) [2025-03-08 01:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:11:06' and `end` < '2025-03-08 01:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:11:18] Production.INFO: count ==950 [2025-03-08 01:11:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:11:06 - End Time 2025-03-08 01:11:06 [2025-03-08 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631699', 'tblTempUsageDetail_20' ) start [2025-03-08 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631699', 'tblTempUsageDetail_20' ) end [2025-03-08 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631699', 'tblTempVendorCDR_20' ) start [2025-03-08 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631699', 'tblTempVendorCDR_20' ) end [2025-03-08 01:11:18] Production.INFO: ProcessCDR(1,14631699,1,1,2) [2025-03-08 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631699', 'tblTempUsageDetail_20' ) start [2025-03-08 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631699', 'tblTempUsageDetail_20' ) end [2025-03-08 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:11:22] Production.INFO: ==9084== Releasing lock... [2025-03-08 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:11:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-08 01:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:12:06 [end_date_ymd] => 2025-03-08 01:12:06 [RateCDR] => 1 ) [2025-03-08 01:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:12:06' and `end` < '2025-03-08 01:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:12:18] Production.INFO: count ==936 [2025-03-08 01:12:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:12:06 - End Time 2025-03-08 01:12:06 [2025-03-08 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631704', 'tblTempUsageDetail_20' ) start [2025-03-08 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631704', 'tblTempUsageDetail_20' ) end [2025-03-08 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631704', 'tblTempVendorCDR_20' ) start [2025-03-08 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631704', 'tblTempVendorCDR_20' ) end [2025-03-08 01:12:18] Production.INFO: ProcessCDR(1,14631704,1,1,2) [2025-03-08 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631704', 'tblTempUsageDetail_20' ) start [2025-03-08 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631704', 'tblTempUsageDetail_20' ) end [2025-03-08 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:12:22] Production.INFO: ==9161== Releasing lock... [2025-03-08 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:12:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-08 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:13:05 [end_date_ymd] => 2025-03-08 01:13:05 [RateCDR] => 1 ) [2025-03-08 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:13:05' and `end` < '2025-03-08 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:13:17] Production.INFO: count ==926 [2025-03-08 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:13:05 - End Time 2025-03-08 01:13:05 [2025-03-08 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631709', 'tblTempUsageDetail_20' ) start [2025-03-08 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631709', 'tblTempUsageDetail_20' ) end [2025-03-08 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631709', 'tblTempVendorCDR_20' ) start [2025-03-08 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631709', 'tblTempVendorCDR_20' ) end [2025-03-08 01:13:18] Production.INFO: ProcessCDR(1,14631709,1,1,2) [2025-03-08 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631709', 'tblTempUsageDetail_20' ) start [2025-03-08 01:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631709', 'tblTempUsageDetail_20' ) end [2025-03-08 01:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:13:23] Production.INFO: ==9230== Releasing lock... [2025-03-08 01:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:13:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-08 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:14:05 [end_date_ymd] => 2025-03-08 01:14:05 [RateCDR] => 1 ) [2025-03-08 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:14:05' and `end` < '2025-03-08 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:14:18] Production.INFO: count ==915 [2025-03-08 01:14:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:14:05 - End Time 2025-03-08 01:14:05 [2025-03-08 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631714', 'tblTempUsageDetail_20' ) start [2025-03-08 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631714', 'tblTempUsageDetail_20' ) end [2025-03-08 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631714', 'tblTempVendorCDR_20' ) start [2025-03-08 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631714', 'tblTempVendorCDR_20' ) end [2025-03-08 01:14:18] Production.INFO: ProcessCDR(1,14631714,1,1,2) [2025-03-08 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631714', 'tblTempUsageDetail_20' ) start [2025-03-08 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631714', 'tblTempUsageDetail_20' ) end [2025-03-08 01:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:14:23] Production.INFO: ==9343== Releasing lock... [2025-03-08 01:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:14:23] Production.INFO: 35 MB #Memory Used# [2025-03-08 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:15:05 [end_date_ymd] => 2025-03-08 01:15:05 [RateCDR] => 1 ) [2025-03-08 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:15:05' and `end` < '2025-03-08 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:15:17] Production.INFO: count ==908 [2025-03-08 01:15:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:15:05 - End Time 2025-03-08 01:15:05 [2025-03-08 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631719', 'tblTempUsageDetail_20' ) start [2025-03-08 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631719', 'tblTempUsageDetail_20' ) end [2025-03-08 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631719', 'tblTempVendorCDR_20' ) start [2025-03-08 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631719', 'tblTempVendorCDR_20' ) end [2025-03-08 01:15:18] Production.INFO: ProcessCDR(1,14631719,1,1,2) [2025-03-08 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631719', 'tblTempUsageDetail_20' ) start [2025-03-08 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631719', 'tblTempUsageDetail_20' ) end [2025-03-08 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:15:21] Production.INFO: ==9419== Releasing lock... [2025-03-08 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:15:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-08 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:16:06 [end_date_ymd] => 2025-03-08 01:16:06 [RateCDR] => 1 ) [2025-03-08 01:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:16:06' and `end` < '2025-03-08 01:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:16:18] Production.INFO: count ==905 [2025-03-08 01:16:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:16:06 - End Time 2025-03-08 01:16:06 [2025-03-08 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631724', 'tblTempUsageDetail_20' ) start [2025-03-08 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631724', 'tblTempUsageDetail_20' ) end [2025-03-08 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631724', 'tblTempVendorCDR_20' ) start [2025-03-08 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631724', 'tblTempVendorCDR_20' ) end [2025-03-08 01:16:18] Production.INFO: ProcessCDR(1,14631724,1,1,2) [2025-03-08 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631724', 'tblTempUsageDetail_20' ) start [2025-03-08 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631724', 'tblTempUsageDetail_20' ) end [2025-03-08 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:16:21] Production.INFO: ==9489== Releasing lock... [2025-03-08 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:16:21] Production.INFO: 35 MB #Memory Used# [2025-03-08 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:17:05 [end_date_ymd] => 2025-03-08 01:17:05 [RateCDR] => 1 ) [2025-03-08 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:17:05' and `end` < '2025-03-08 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:17:17] Production.INFO: count ==905 [2025-03-08 01:17:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:17:05 - End Time 2025-03-08 01:17:05 [2025-03-08 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631729', 'tblTempUsageDetail_20' ) start [2025-03-08 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631729', 'tblTempUsageDetail_20' ) end [2025-03-08 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631729', 'tblTempVendorCDR_20' ) start [2025-03-08 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631729', 'tblTempVendorCDR_20' ) end [2025-03-08 01:17:18] Production.INFO: ProcessCDR(1,14631729,1,1,2) [2025-03-08 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631729', 'tblTempUsageDetail_20' ) start [2025-03-08 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631729', 'tblTempUsageDetail_20' ) end [2025-03-08 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:17:21] Production.INFO: ==9562== Releasing lock... [2025-03-08 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:17:21] Production.INFO: 35 MB #Memory Used# [2025-03-08 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:18:06 [end_date_ymd] => 2025-03-08 01:18:06 [RateCDR] => 1 ) [2025-03-08 01:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:18:06' and `end` < '2025-03-08 01:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:18:18] Production.INFO: count ==893 [2025-03-08 01:18:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:18:06 - End Time 2025-03-08 01:18:06 [2025-03-08 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631734', 'tblTempUsageDetail_20' ) start [2025-03-08 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631734', 'tblTempUsageDetail_20' ) end [2025-03-08 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631734', 'tblTempVendorCDR_20' ) start [2025-03-08 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631734', 'tblTempVendorCDR_20' ) end [2025-03-08 01:18:18] Production.INFO: ProcessCDR(1,14631734,1,1,2) [2025-03-08 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631734', 'tblTempUsageDetail_20' ) start [2025-03-08 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631734', 'tblTempUsageDetail_20' ) end [2025-03-08 01:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:18:23] Production.INFO: ==9634== Releasing lock... [2025-03-08 01:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:18:23] Production.INFO: 35 MB #Memory Used# [2025-03-08 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:19:05 [end_date_ymd] => 2025-03-08 01:19:05 [RateCDR] => 1 ) [2025-03-08 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:19:05' and `end` < '2025-03-08 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:19:17] Production.INFO: count ==881 [2025-03-08 01:19:17] Production.ERROR: pbx CDR StartTime 2025-03-07 22:19:05 - End Time 2025-03-08 01:19:05 [2025-03-08 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631739', 'tblTempUsageDetail_20' ) start [2025-03-08 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631739', 'tblTempUsageDetail_20' ) end [2025-03-08 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631739', 'tblTempVendorCDR_20' ) start [2025-03-08 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631739', 'tblTempVendorCDR_20' ) end [2025-03-08 01:19:17] Production.INFO: ProcessCDR(1,14631739,1,1,2) [2025-03-08 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631739', 'tblTempUsageDetail_20' ) start [2025-03-08 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631739', 'tblTempUsageDetail_20' ) end [2025-03-08 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:19:21] Production.INFO: ==9706== Releasing lock... [2025-03-08 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:19:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:20:06 [end_date_ymd] => 2025-03-08 01:20:06 [RateCDR] => 1 ) [2025-03-08 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:20:06' and `end` < '2025-03-08 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:20:18] Production.INFO: count ==867 [2025-03-08 01:20:19] Production.ERROR: pbx CDR StartTime 2025-03-07 22:20:06 - End Time 2025-03-08 01:20:06 [2025-03-08 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631744', 'tblTempUsageDetail_20' ) start [2025-03-08 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631744', 'tblTempUsageDetail_20' ) end [2025-03-08 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631744', 'tblTempVendorCDR_20' ) start [2025-03-08 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631744', 'tblTempVendorCDR_20' ) end [2025-03-08 01:20:19] Production.INFO: ProcessCDR(1,14631744,1,1,2) [2025-03-08 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631744', 'tblTempUsageDetail_20' ) start [2025-03-08 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631744', 'tblTempUsageDetail_20' ) end [2025-03-08 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:20:22] Production.INFO: ==9780== Releasing lock... [2025-03-08 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:20:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:21:05 [end_date_ymd] => 2025-03-08 01:21:05 [RateCDR] => 1 ) [2025-03-08 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:21:05' and `end` < '2025-03-08 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:21:17] Production.INFO: count ==852 [2025-03-08 01:21:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:21:05 - End Time 2025-03-08 01:21:05 [2025-03-08 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631750', 'tblTempUsageDetail_20' ) start [2025-03-08 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631750', 'tblTempUsageDetail_20' ) end [2025-03-08 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631750', 'tblTempVendorCDR_20' ) start [2025-03-08 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631750', 'tblTempVendorCDR_20' ) end [2025-03-08 01:21:18] Production.INFO: ProcessCDR(1,14631750,1,1,2) [2025-03-08 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631750', 'tblTempUsageDetail_20' ) start [2025-03-08 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631750', 'tblTempUsageDetail_20' ) end [2025-03-08 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:21:21] Production.INFO: ==9855== Releasing lock... [2025-03-08 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:21:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:22:05 [end_date_ymd] => 2025-03-08 01:22:05 [RateCDR] => 1 ) [2025-03-08 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:22:05' and `end` < '2025-03-08 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:22:18] Production.INFO: count ==828 [2025-03-08 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:22:05 - End Time 2025-03-08 01:22:05 [2025-03-08 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631755', 'tblTempUsageDetail_20' ) start [2025-03-08 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631755', 'tblTempUsageDetail_20' ) end [2025-03-08 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631755', 'tblTempVendorCDR_20' ) start [2025-03-08 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631755', 'tblTempVendorCDR_20' ) end [2025-03-08 01:22:18] Production.INFO: ProcessCDR(1,14631755,1,1,2) [2025-03-08 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631755', 'tblTempUsageDetail_20' ) start [2025-03-08 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631755', 'tblTempUsageDetail_20' ) end [2025-03-08 01:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:22:23] Production.INFO: ==9930== Releasing lock... [2025-03-08 01:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:22:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:23:05 [end_date_ymd] => 2025-03-08 01:23:05 [RateCDR] => 1 ) [2025-03-08 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:23:05' and `end` < '2025-03-08 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:23:17] Production.INFO: count ==810 [2025-03-08 01:23:17] Production.ERROR: pbx CDR StartTime 2025-03-07 22:23:05 - End Time 2025-03-08 01:23:05 [2025-03-08 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631760', 'tblTempUsageDetail_20' ) start [2025-03-08 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631760', 'tblTempUsageDetail_20' ) end [2025-03-08 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631760', 'tblTempVendorCDR_20' ) start [2025-03-08 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631760', 'tblTempVendorCDR_20' ) end [2025-03-08 01:23:18] Production.INFO: ProcessCDR(1,14631760,1,1,2) [2025-03-08 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631760', 'tblTempUsageDetail_20' ) start [2025-03-08 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631760', 'tblTempUsageDetail_20' ) end [2025-03-08 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:23:22] Production.INFO: ==10004== Releasing lock... [2025-03-08 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:23:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:24:06 [end_date_ymd] => 2025-03-08 01:24:06 [RateCDR] => 1 ) [2025-03-08 01:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:24:06' and `end` < '2025-03-08 01:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:24:18] Production.INFO: count ==792 [2025-03-08 01:24:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:24:06 - End Time 2025-03-08 01:24:06 [2025-03-08 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631765', 'tblTempUsageDetail_20' ) start [2025-03-08 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631765', 'tblTempUsageDetail_20' ) end [2025-03-08 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631765', 'tblTempVendorCDR_20' ) start [2025-03-08 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631765', 'tblTempVendorCDR_20' ) end [2025-03-08 01:24:18] Production.INFO: ProcessCDR(1,14631765,1,1,2) [2025-03-08 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631765', 'tblTempUsageDetail_20' ) start [2025-03-08 01:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631765', 'tblTempUsageDetail_20' ) end [2025-03-08 01:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:24:24] Production.INFO: ==10078== Releasing lock... [2025-03-08 01:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:24:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:25:05 [end_date_ymd] => 2025-03-08 01:25:05 [RateCDR] => 1 ) [2025-03-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-03-07 22:25:05' and `end` < '2025-03-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-03-08 01:25:17] Production.INFO: count ==786 [2025-03-08 01:25:17] Production.ERROR: pbx CDR StartTime 2025-03-07 22:25:05 - End Time 2025-03-08 01:25:05 [2025-03-08 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631770', 'tblTempUsageDetail_20' ) start [2025-03-08 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631770', 'tblTempUsageDetail_20' ) end [2025-03-08 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631770', 'tblTempVendorCDR_20' ) start [2025-03-08 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631770', 'tblTempVendorCDR_20' ) end [2025-03-08 01:25:17] Production.INFO: ProcessCDR(1,14631770,1,1,2) [2025-03-08 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631770', 'tblTempUsageDetail_20' ) start [2025-03-08 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631770', 'tblTempUsageDetail_20' ) end [2025-03-08 01:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:25:20] Production.INFO: ==10148== Releasing lock... [2025-03-08 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:25:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:26:05 [end_date_ymd] => 2025-03-08 01:26:05 [RateCDR] => 1 ) [2025-03-08 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:26:05' and `end` < '2025-03-08 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:26:17] Production.INFO: count ==780 [2025-03-08 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:26:05 - End Time 2025-03-08 01:26:05 [2025-03-08 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631775', 'tblTempUsageDetail_20' ) start [2025-03-08 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631775', 'tblTempUsageDetail_20' ) end [2025-03-08 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631775', 'tblTempVendorCDR_20' ) start [2025-03-08 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631775', 'tblTempVendorCDR_20' ) end [2025-03-08 01:26:18] Production.INFO: ProcessCDR(1,14631775,1,1,2) [2025-03-08 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631775', 'tblTempUsageDetail_20' ) start [2025-03-08 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631775', 'tblTempUsageDetail_20' ) end [2025-03-08 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:26:21] Production.INFO: ==10226== Releasing lock... [2025-03-08 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:26:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:27:05 [end_date_ymd] => 2025-03-08 01:27:05 [RateCDR] => 1 ) [2025-03-08 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:27:05' and `end` < '2025-03-08 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:27:17] Production.INFO: count ==764 [2025-03-08 01:27:17] Production.ERROR: pbx CDR StartTime 2025-03-07 22:27:05 - End Time 2025-03-08 01:27:05 [2025-03-08 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631780', 'tblTempUsageDetail_20' ) start [2025-03-08 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631780', 'tblTempUsageDetail_20' ) end [2025-03-08 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631780', 'tblTempVendorCDR_20' ) start [2025-03-08 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631780', 'tblTempVendorCDR_20' ) end [2025-03-08 01:27:17] Production.INFO: ProcessCDR(1,14631780,1,1,2) [2025-03-08 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631780', 'tblTempUsageDetail_20' ) start [2025-03-08 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631780', 'tblTempUsageDetail_20' ) end [2025-03-08 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:27:22] Production.INFO: ==10300== Releasing lock... [2025-03-08 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:27:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:28:05 [end_date_ymd] => 2025-03-08 01:28:05 [RateCDR] => 1 ) [2025-03-08 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:28:05' and `end` < '2025-03-08 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:28:17] Production.INFO: count ==746 [2025-03-08 01:28:17] Production.ERROR: pbx CDR StartTime 2025-03-07 22:28:05 - End Time 2025-03-08 01:28:05 [2025-03-08 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631785', 'tblTempUsageDetail_20' ) start [2025-03-08 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631785', 'tblTempUsageDetail_20' ) end [2025-03-08 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631785', 'tblTempVendorCDR_20' ) start [2025-03-08 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631785', 'tblTempVendorCDR_20' ) end [2025-03-08 01:28:17] Production.INFO: ProcessCDR(1,14631785,1,1,2) [2025-03-08 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631785', 'tblTempUsageDetail_20' ) start [2025-03-08 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631785', 'tblTempUsageDetail_20' ) end [2025-03-08 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:28:21] Production.INFO: ==10372== Releasing lock... [2025-03-08 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:28:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:29:05 [end_date_ymd] => 2025-03-08 01:29:05 [RateCDR] => 1 ) [2025-03-08 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:29:05' and `end` < '2025-03-08 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:29:17] Production.INFO: count ==734 [2025-03-08 01:29:17] Production.ERROR: pbx CDR StartTime 2025-03-07 22:29:05 - End Time 2025-03-08 01:29:05 [2025-03-08 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631790', 'tblTempUsageDetail_20' ) start [2025-03-08 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631790', 'tblTempUsageDetail_20' ) end [2025-03-08 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631790', 'tblTempVendorCDR_20' ) start [2025-03-08 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631790', 'tblTempVendorCDR_20' ) end [2025-03-08 01:29:17] Production.INFO: ProcessCDR(1,14631790,1,1,2) [2025-03-08 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631790', 'tblTempUsageDetail_20' ) start [2025-03-08 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631790', 'tblTempUsageDetail_20' ) end [2025-03-08 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:29:22] Production.INFO: ==10444== Releasing lock... [2025-03-08 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:29:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:30:06 [end_date_ymd] => 2025-03-08 01:30:06 [RateCDR] => 1 ) [2025-03-08 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:30:06' and `end` < '2025-03-08 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:30:18] Production.INFO: count ==741 [2025-03-08 01:30:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:30:06 - End Time 2025-03-08 01:30:06 [2025-03-08 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631796', 'tblTempUsageDetail_20' ) start [2025-03-08 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631796', 'tblTempUsageDetail_20' ) end [2025-03-08 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631796', 'tblTempVendorCDR_20' ) start [2025-03-08 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631796', 'tblTempVendorCDR_20' ) end [2025-03-08 01:30:18] Production.INFO: ProcessCDR(1,14631796,1,1,2) [2025-03-08 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631796', 'tblTempUsageDetail_20' ) start [2025-03-08 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631796', 'tblTempUsageDetail_20' ) end [2025-03-08 01:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:30:23] Production.INFO: ==10559== Releasing lock... [2025-03-08 01:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:30:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 01:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:31:06 [end_date_ymd] => 2025-03-08 01:31:06 [RateCDR] => 1 ) [2025-03-08 01:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:31:06' and `end` < '2025-03-08 01:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:31:18] Production.INFO: count ==759 [2025-03-08 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:31:06 - End Time 2025-03-08 01:31:06 [2025-03-08 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631801', 'tblTempUsageDetail_20' ) start [2025-03-08 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631801', 'tblTempUsageDetail_20' ) end [2025-03-08 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631801', 'tblTempVendorCDR_20' ) start [2025-03-08 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631801', 'tblTempVendorCDR_20' ) end [2025-03-08 01:31:19] Production.INFO: ProcessCDR(1,14631801,1,1,2) [2025-03-08 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631801', 'tblTempUsageDetail_20' ) start [2025-03-08 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631801', 'tblTempUsageDetail_20' ) end [2025-03-08 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:31:22] Production.INFO: ==10638== Releasing lock... [2025-03-08 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:31:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:32:05 [end_date_ymd] => 2025-03-08 01:32:05 [RateCDR] => 1 ) [2025-03-08 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:32:05' and `end` < '2025-03-08 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:32:17] Production.INFO: count ==761 [2025-03-08 01:32:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:32:05 - End Time 2025-03-08 01:32:05 [2025-03-08 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631806', 'tblTempUsageDetail_20' ) start [2025-03-08 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631806', 'tblTempUsageDetail_20' ) end [2025-03-08 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631806', 'tblTempVendorCDR_20' ) start [2025-03-08 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631806', 'tblTempVendorCDR_20' ) end [2025-03-08 01:32:18] Production.INFO: ProcessCDR(1,14631806,1,1,2) [2025-03-08 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631806', 'tblTempUsageDetail_20' ) start [2025-03-08 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631806', 'tblTempUsageDetail_20' ) end [2025-03-08 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:32:21] Production.INFO: ==10711== Releasing lock... [2025-03-08 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:32:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:33:06 [end_date_ymd] => 2025-03-08 01:33:06 [RateCDR] => 1 ) [2025-03-08 01:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:33:06' and `end` < '2025-03-08 01:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:33:18] Production.INFO: count ==758 [2025-03-08 01:33:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:33:06 - End Time 2025-03-08 01:33:06 [2025-03-08 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631811', 'tblTempUsageDetail_20' ) start [2025-03-08 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631811', 'tblTempUsageDetail_20' ) end [2025-03-08 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631811', 'tblTempVendorCDR_20' ) start [2025-03-08 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631811', 'tblTempVendorCDR_20' ) end [2025-03-08 01:33:18] Production.INFO: ProcessCDR(1,14631811,1,1,2) [2025-03-08 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631811', 'tblTempUsageDetail_20' ) start [2025-03-08 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631811', 'tblTempUsageDetail_20' ) end [2025-03-08 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:33:22] Production.INFO: ==10785== Releasing lock... [2025-03-08 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:33:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:34:05 [end_date_ymd] => 2025-03-08 01:34:05 [RateCDR] => 1 ) [2025-03-08 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:34:05' and `end` < '2025-03-08 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:34:17] Production.INFO: count ==756 [2025-03-08 01:34:17] Production.ERROR: pbx CDR StartTime 2025-03-07 22:34:05 - End Time 2025-03-08 01:34:05 [2025-03-08 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631816', 'tblTempUsageDetail_20' ) start [2025-03-08 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631816', 'tblTempUsageDetail_20' ) end [2025-03-08 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631816', 'tblTempVendorCDR_20' ) start [2025-03-08 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631816', 'tblTempVendorCDR_20' ) end [2025-03-08 01:34:17] Production.INFO: ProcessCDR(1,14631816,1,1,2) [2025-03-08 01:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631816', 'tblTempUsageDetail_20' ) start [2025-03-08 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631816', 'tblTempUsageDetail_20' ) end [2025-03-08 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:34:21] Production.INFO: ==10857== Releasing lock... [2025-03-08 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:34:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:35:06 [end_date_ymd] => 2025-03-08 01:35:06 [RateCDR] => 1 ) [2025-03-08 01:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:35:06' and `end` < '2025-03-08 01:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:35:18] Production.INFO: count ==754 [2025-03-08 01:35:19] Production.ERROR: pbx CDR StartTime 2025-03-07 22:35:06 - End Time 2025-03-08 01:35:06 [2025-03-08 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631821', 'tblTempUsageDetail_20' ) start [2025-03-08 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631821', 'tblTempUsageDetail_20' ) end [2025-03-08 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631821', 'tblTempVendorCDR_20' ) start [2025-03-08 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631821', 'tblTempVendorCDR_20' ) end [2025-03-08 01:35:19] Production.INFO: ProcessCDR(1,14631821,1,1,2) [2025-03-08 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631821', 'tblTempUsageDetail_20' ) start [2025-03-08 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631821', 'tblTempUsageDetail_20' ) end [2025-03-08 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:35:22] Production.INFO: ==10931== Releasing lock... [2025-03-08 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:35:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:36:05 [end_date_ymd] => 2025-03-08 01:36:05 [RateCDR] => 1 ) [2025-03-08 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:36:05' and `end` < '2025-03-08 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:36:18] Production.INFO: count ==754 [2025-03-08 01:36:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:36:05 - End Time 2025-03-08 01:36:05 [2025-03-08 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631826', 'tblTempUsageDetail_20' ) start [2025-03-08 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631826', 'tblTempUsageDetail_20' ) end [2025-03-08 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631826', 'tblTempVendorCDR_20' ) start [2025-03-08 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631826', 'tblTempVendorCDR_20' ) end [2025-03-08 01:36:18] Production.INFO: ProcessCDR(1,14631826,1,1,2) [2025-03-08 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631826', 'tblTempUsageDetail_20' ) start [2025-03-08 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631826', 'tblTempUsageDetail_20' ) end [2025-03-08 01:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:36:23] Production.INFO: ==11004== Releasing lock... [2025-03-08 01:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:36:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:37:06 [end_date_ymd] => 2025-03-08 01:37:06 [RateCDR] => 1 ) [2025-03-08 01:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:37:06' and `end` < '2025-03-08 01:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:37:18] Production.INFO: count ==755 [2025-03-08 01:37:19] Production.ERROR: pbx CDR StartTime 2025-03-07 22:37:06 - End Time 2025-03-08 01:37:06 [2025-03-08 01:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631831', 'tblTempUsageDetail_20' ) start [2025-03-08 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631831', 'tblTempUsageDetail_20' ) end [2025-03-08 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631831', 'tblTempVendorCDR_20' ) start [2025-03-08 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631831', 'tblTempVendorCDR_20' ) end [2025-03-08 01:37:19] Production.INFO: ProcessCDR(1,14631831,1,1,2) [2025-03-08 01:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631831', 'tblTempUsageDetail_20' ) start [2025-03-08 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631831', 'tblTempUsageDetail_20' ) end [2025-03-08 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:37:22] Production.INFO: ==11077== Releasing lock... [2025-03-08 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:37:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:38:05 [end_date_ymd] => 2025-03-08 01:38:05 [RateCDR] => 1 ) [2025-03-08 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:38:05' and `end` < '2025-03-08 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:38:17] Production.INFO: count ==750 [2025-03-08 01:38:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:38:05 - End Time 2025-03-08 01:38:05 [2025-03-08 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631836', 'tblTempUsageDetail_20' ) start [2025-03-08 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631836', 'tblTempUsageDetail_20' ) end [2025-03-08 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631836', 'tblTempVendorCDR_20' ) start [2025-03-08 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631836', 'tblTempVendorCDR_20' ) end [2025-03-08 01:38:18] Production.INFO: ProcessCDR(1,14631836,1,1,2) [2025-03-08 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631836', 'tblTempUsageDetail_20' ) start [2025-03-08 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631836', 'tblTempUsageDetail_20' ) end [2025-03-08 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:38:21] Production.INFO: ==11153== Releasing lock... [2025-03-08 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:38:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:39:06 [end_date_ymd] => 2025-03-08 01:39:06 [RateCDR] => 1 ) [2025-03-08 01:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:39:06' and `end` < '2025-03-08 01:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:39:18] Production.INFO: count ==772 [2025-03-08 01:39:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:39:06 - End Time 2025-03-08 01:39:06 [2025-03-08 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631841', 'tblTempUsageDetail_20' ) start [2025-03-08 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631841', 'tblTempUsageDetail_20' ) end [2025-03-08 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631841', 'tblTempVendorCDR_20' ) start [2025-03-08 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631841', 'tblTempVendorCDR_20' ) end [2025-03-08 01:39:18] Production.INFO: ProcessCDR(1,14631841,1,1,2) [2025-03-08 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631841', 'tblTempUsageDetail_20' ) start [2025-03-08 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631841', 'tblTempUsageDetail_20' ) end [2025-03-08 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:39:22] Production.INFO: ==11224== Releasing lock... [2025-03-08 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:39:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 01:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:40:07 [end_date_ymd] => 2025-03-08 01:40:07 [RateCDR] => 1 ) [2025-03-08 01:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:40:07' and `end` < '2025-03-08 01:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:40:19] Production.INFO: count ==782 [2025-03-08 01:40:19] Production.ERROR: pbx CDR StartTime 2025-03-07 22:40:07 - End Time 2025-03-08 01:40:07 [2025-03-08 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631847', 'tblTempUsageDetail_20' ) start [2025-03-08 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631847', 'tblTempUsageDetail_20' ) end [2025-03-08 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631847', 'tblTempVendorCDR_20' ) start [2025-03-08 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631847', 'tblTempVendorCDR_20' ) end [2025-03-08 01:40:19] Production.INFO: ProcessCDR(1,14631847,1,1,2) [2025-03-08 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631847', 'tblTempUsageDetail_20' ) start [2025-03-08 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631847', 'tblTempUsageDetail_20' ) end [2025-03-08 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:40:23] Production.INFO: ==11299== Releasing lock... [2025-03-08 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:40:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:41:06 [end_date_ymd] => 2025-03-08 01:41:06 [RateCDR] => 1 ) [2025-03-08 01:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:41:06' and `end` < '2025-03-08 01:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:41:18] Production.INFO: count ==789 [2025-03-08 01:41:19] Production.ERROR: pbx CDR StartTime 2025-03-07 22:41:06 - End Time 2025-03-08 01:41:06 [2025-03-08 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631852', 'tblTempUsageDetail_20' ) start [2025-03-08 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631852', 'tblTempUsageDetail_20' ) end [2025-03-08 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631852', 'tblTempVendorCDR_20' ) start [2025-03-08 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631852', 'tblTempVendorCDR_20' ) end [2025-03-08 01:41:19] Production.INFO: ProcessCDR(1,14631852,1,1,2) [2025-03-08 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631852', 'tblTempUsageDetail_20' ) start [2025-03-08 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631852', 'tblTempUsageDetail_20' ) end [2025-03-08 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:41:22] Production.INFO: ==11373== Releasing lock... [2025-03-08 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:41:22] Production.INFO: 34 MB #Memory Used# [2025-03-08 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:42:06 [end_date_ymd] => 2025-03-08 01:42:06 [RateCDR] => 1 ) [2025-03-08 01:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:42:06' and `end` < '2025-03-08 01:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:42:18] Production.INFO: count ==786 [2025-03-08 01:42:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:42:06 - End Time 2025-03-08 01:42:06 [2025-03-08 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631857', 'tblTempUsageDetail_20' ) start [2025-03-08 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631857', 'tblTempUsageDetail_20' ) end [2025-03-08 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631857', 'tblTempVendorCDR_20' ) start [2025-03-08 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631857', 'tblTempVendorCDR_20' ) end [2025-03-08 01:42:18] Production.INFO: ProcessCDR(1,14631857,1,1,2) [2025-03-08 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631857', 'tblTempUsageDetail_20' ) start [2025-03-08 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631857', 'tblTempUsageDetail_20' ) end [2025-03-08 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:42:22] Production.INFO: ==11443== Releasing lock... [2025-03-08 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:42:22] Production.INFO: 34 MB #Memory Used# [2025-03-08 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:43:06 [end_date_ymd] => 2025-03-08 01:43:06 [RateCDR] => 1 ) [2025-03-08 01:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:43:06' and `end` < '2025-03-08 01:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:43:18] Production.INFO: count ==786 [2025-03-08 01:43:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:43:06 - End Time 2025-03-08 01:43:06 [2025-03-08 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631862', 'tblTempUsageDetail_20' ) start [2025-03-08 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631862', 'tblTempUsageDetail_20' ) end [2025-03-08 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631862', 'tblTempVendorCDR_20' ) start [2025-03-08 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631862', 'tblTempVendorCDR_20' ) end [2025-03-08 01:43:18] Production.INFO: ProcessCDR(1,14631862,1,1,2) [2025-03-08 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631862', 'tblTempUsageDetail_20' ) start [2025-03-08 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631862', 'tblTempUsageDetail_20' ) end [2025-03-08 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:43:22] Production.INFO: ==11515== Releasing lock... [2025-03-08 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:43:22] Production.INFO: 34 MB #Memory Used# [2025-03-08 01:44:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:44:07 [end_date_ymd] => 2025-03-08 01:44:07 [RateCDR] => 1 ) [2025-03-08 01:44:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:44:07' and `end` < '2025-03-08 01:44:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:44:19] Production.INFO: count ==789 [2025-03-08 01:44:19] Production.ERROR: pbx CDR StartTime 2025-03-07 22:44:07 - End Time 2025-03-08 01:44:07 [2025-03-08 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631867', 'tblTempUsageDetail_20' ) start [2025-03-08 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631867', 'tblTempUsageDetail_20' ) end [2025-03-08 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631867', 'tblTempVendorCDR_20' ) start [2025-03-08 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631867', 'tblTempVendorCDR_20' ) end [2025-03-08 01:44:19] Production.INFO: ProcessCDR(1,14631867,1,1,2) [2025-03-08 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631867', 'tblTempUsageDetail_20' ) start [2025-03-08 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631867', 'tblTempUsageDetail_20' ) end [2025-03-08 01:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:44:23] Production.INFO: ==11590== Releasing lock... [2025-03-08 01:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:44:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:45:06 [end_date_ymd] => 2025-03-08 01:45:06 [RateCDR] => 1 ) [2025-03-08 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:45:06' and `end` < '2025-03-08 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:45:18] Production.INFO: count ==792 [2025-03-08 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:45:06 - End Time 2025-03-08 01:45:06 [2025-03-08 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631872', 'tblTempUsageDetail_20' ) start [2025-03-08 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631872', 'tblTempUsageDetail_20' ) end [2025-03-08 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631872', 'tblTempVendorCDR_20' ) start [2025-03-08 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631872', 'tblTempVendorCDR_20' ) end [2025-03-08 01:45:18] Production.INFO: ProcessCDR(1,14631872,1,1,2) [2025-03-08 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631872', 'tblTempUsageDetail_20' ) start [2025-03-08 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631872', 'tblTempUsageDetail_20' ) end [2025-03-08 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:45:22] Production.INFO: ==11701== Releasing lock... [2025-03-08 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:45:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:46:06 [end_date_ymd] => 2025-03-08 01:46:06 [RateCDR] => 1 ) [2025-03-08 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:46:06' and `end` < '2025-03-08 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:46:18] Production.INFO: count ==789 [2025-03-08 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:46:06 - End Time 2025-03-08 01:46:06 [2025-03-08 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631877', 'tblTempUsageDetail_20' ) start [2025-03-08 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631877', 'tblTempUsageDetail_20' ) end [2025-03-08 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631877', 'tblTempVendorCDR_20' ) start [2025-03-08 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631877', 'tblTempVendorCDR_20' ) end [2025-03-08 01:46:18] Production.INFO: ProcessCDR(1,14631877,1,1,2) [2025-03-08 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631877', 'tblTempUsageDetail_20' ) start [2025-03-08 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631877', 'tblTempUsageDetail_20' ) end [2025-03-08 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:46:22] Production.INFO: ==11782== Releasing lock... [2025-03-08 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:46:22] Production.INFO: 34 MB #Memory Used# [2025-03-08 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:47:06 [end_date_ymd] => 2025-03-08 01:47:06 [RateCDR] => 1 ) [2025-03-08 01:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:47:06' and `end` < '2025-03-08 01:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:47:18] Production.INFO: count ==789 [2025-03-08 01:47:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:47:06 - End Time 2025-03-08 01:47:06 [2025-03-08 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631882', 'tblTempUsageDetail_20' ) start [2025-03-08 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631882', 'tblTempUsageDetail_20' ) end [2025-03-08 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631882', 'tblTempVendorCDR_20' ) start [2025-03-08 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631882', 'tblTempVendorCDR_20' ) end [2025-03-08 01:47:19] Production.INFO: ProcessCDR(1,14631882,1,1,2) [2025-03-08 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631882', 'tblTempUsageDetail_20' ) start [2025-03-08 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631882', 'tblTempUsageDetail_20' ) end [2025-03-08 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:47:22] Production.INFO: ==11853== Releasing lock... [2025-03-08 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:47:22] Production.INFO: 34 MB #Memory Used# [2025-03-08 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:48:06 [end_date_ymd] => 2025-03-08 01:48:06 [RateCDR] => 1 ) [2025-03-08 01:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:48:06' and `end` < '2025-03-08 01:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:48:18] Production.INFO: count ==786 [2025-03-08 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:48:06 - End Time 2025-03-08 01:48:06 [2025-03-08 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631887', 'tblTempUsageDetail_20' ) start [2025-03-08 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631887', 'tblTempUsageDetail_20' ) end [2025-03-08 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631887', 'tblTempVendorCDR_20' ) start [2025-03-08 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631887', 'tblTempVendorCDR_20' ) end [2025-03-08 01:48:19] Production.INFO: ProcessCDR(1,14631887,1,1,2) [2025-03-08 01:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631887', 'tblTempUsageDetail_20' ) start [2025-03-08 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631887', 'tblTempUsageDetail_20' ) end [2025-03-08 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:48:22] Production.INFO: ==11926== Releasing lock... [2025-03-08 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:48:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:49:05 [end_date_ymd] => 2025-03-08 01:49:05 [RateCDR] => 1 ) [2025-03-08 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:49:05' and `end` < '2025-03-08 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:49:17] Production.INFO: count ==784 [2025-03-08 01:49:17] Production.ERROR: pbx CDR StartTime 2025-03-07 22:49:05 - End Time 2025-03-08 01:49:05 [2025-03-08 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631892', 'tblTempUsageDetail_20' ) start [2025-03-08 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631892', 'tblTempUsageDetail_20' ) end [2025-03-08 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631892', 'tblTempVendorCDR_20' ) start [2025-03-08 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631892', 'tblTempVendorCDR_20' ) end [2025-03-08 01:49:17] Production.INFO: ProcessCDR(1,14631892,1,1,2) [2025-03-08 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631892', 'tblTempUsageDetail_20' ) start [2025-03-08 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631892', 'tblTempUsageDetail_20' ) end [2025-03-08 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:49:21] Production.INFO: ==11997== Releasing lock... [2025-03-08 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:49:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:50:06 [end_date_ymd] => 2025-03-08 01:50:06 [RateCDR] => 1 ) [2025-03-08 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:50:06' and `end` < '2025-03-08 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:50:19] Production.INFO: count ==790 [2025-03-08 01:50:19] Production.ERROR: pbx CDR StartTime 2025-03-07 22:50:06 - End Time 2025-03-08 01:50:06 [2025-03-08 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631898', 'tblTempUsageDetail_20' ) start [2025-03-08 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631898', 'tblTempUsageDetail_20' ) end [2025-03-08 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631898', 'tblTempVendorCDR_20' ) start [2025-03-08 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631898', 'tblTempVendorCDR_20' ) end [2025-03-08 01:50:19] Production.INFO: ProcessCDR(1,14631898,1,1,2) [2025-03-08 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631898', 'tblTempUsageDetail_20' ) start [2025-03-08 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631898', 'tblTempUsageDetail_20' ) end [2025-03-08 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:50:23] Production.INFO: ==12070== Releasing lock... [2025-03-08 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:50:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:51:05 [end_date_ymd] => 2025-03-08 01:51:05 [RateCDR] => 1 ) [2025-03-08 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:51:05' and `end` < '2025-03-08 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:51:17] Production.INFO: count ==806 [2025-03-08 01:51:17] Production.ERROR: pbx CDR StartTime 2025-03-07 22:51:05 - End Time 2025-03-08 01:51:05 [2025-03-08 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631903', 'tblTempUsageDetail_20' ) start [2025-03-08 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631903', 'tblTempUsageDetail_20' ) end [2025-03-08 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631903', 'tblTempVendorCDR_20' ) start [2025-03-08 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631903', 'tblTempVendorCDR_20' ) end [2025-03-08 01:51:17] Production.INFO: ProcessCDR(1,14631903,1,1,2) [2025-03-08 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631903', 'tblTempUsageDetail_20' ) start [2025-03-08 01:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631903', 'tblTempUsageDetail_20' ) end [2025-03-08 01:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:51:23] Production.INFO: ==12145== Releasing lock... [2025-03-08 01:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:51:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:52:05 [end_date_ymd] => 2025-03-08 01:52:05 [RateCDR] => 1 ) [2025-03-08 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:52:05' and `end` < '2025-03-08 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:52:17] Production.INFO: count ==807 [2025-03-08 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:52:05 - End Time 2025-03-08 01:52:05 [2025-03-08 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631908', 'tblTempUsageDetail_20' ) start [2025-03-08 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631908', 'tblTempUsageDetail_20' ) end [2025-03-08 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631908', 'tblTempVendorCDR_20' ) start [2025-03-08 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631908', 'tblTempVendorCDR_20' ) end [2025-03-08 01:52:18] Production.INFO: ProcessCDR(1,14631908,1,1,2) [2025-03-08 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631908', 'tblTempUsageDetail_20' ) start [2025-03-08 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631908', 'tblTempUsageDetail_20' ) end [2025-03-08 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:52:22] Production.INFO: ==12215== Releasing lock... [2025-03-08 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:52:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:53:05 [end_date_ymd] => 2025-03-08 01:53:05 [RateCDR] => 1 ) [2025-03-08 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:53:05' and `end` < '2025-03-08 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:53:17] Production.INFO: count ==807 [2025-03-08 01:53:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:53:05 - End Time 2025-03-08 01:53:05 [2025-03-08 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631913', 'tblTempUsageDetail_20' ) start [2025-03-08 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631913', 'tblTempUsageDetail_20' ) end [2025-03-08 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631913', 'tblTempVendorCDR_20' ) start [2025-03-08 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631913', 'tblTempVendorCDR_20' ) end [2025-03-08 01:53:18] Production.INFO: ProcessCDR(1,14631913,1,1,2) [2025-03-08 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631913', 'tblTempUsageDetail_20' ) start [2025-03-08 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631913', 'tblTempUsageDetail_20' ) end [2025-03-08 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:53:21] Production.INFO: ==12287== Releasing lock... [2025-03-08 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:53:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:54:06 [end_date_ymd] => 2025-03-08 01:54:06 [RateCDR] => 1 ) [2025-03-08 01:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:54:06' and `end` < '2025-03-08 01:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:54:18] Production.INFO: count ==789 [2025-03-08 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:54:06 - End Time 2025-03-08 01:54:06 [2025-03-08 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631918', 'tblTempUsageDetail_20' ) start [2025-03-08 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631918', 'tblTempUsageDetail_20' ) end [2025-03-08 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631918', 'tblTempVendorCDR_20' ) start [2025-03-08 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631918', 'tblTempVendorCDR_20' ) end [2025-03-08 01:54:18] Production.INFO: ProcessCDR(1,14631918,1,1,2) [2025-03-08 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631918', 'tblTempUsageDetail_20' ) start [2025-03-08 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631918', 'tblTempUsageDetail_20' ) end [2025-03-08 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:54:22] Production.INFO: ==12359== Releasing lock... [2025-03-08 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:54:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:55:06 [end_date_ymd] => 2025-03-08 01:55:06 [RateCDR] => 1 ) [2025-03-08 01:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:55:06' and `end` < '2025-03-08 01:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:55:18] Production.INFO: count ==873 [2025-03-08 01:55:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:55:06 - End Time 2025-03-08 01:55:06 [2025-03-08 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631923', 'tblTempUsageDetail_20' ) start [2025-03-08 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631923', 'tblTempUsageDetail_20' ) end [2025-03-08 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631923', 'tblTempVendorCDR_20' ) start [2025-03-08 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631923', 'tblTempVendorCDR_20' ) end [2025-03-08 01:55:18] Production.INFO: ProcessCDR(1,14631923,1,1,2) [2025-03-08 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631923', 'tblTempUsageDetail_20' ) start [2025-03-08 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631923', 'tblTempUsageDetail_20' ) end [2025-03-08 01:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:55:23] Production.INFO: ==12429== Releasing lock... [2025-03-08 01:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:55:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:56:06 [end_date_ymd] => 2025-03-08 01:56:06 [RateCDR] => 1 ) [2025-03-08 01:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:56:06' and `end` < '2025-03-08 01:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:56:18] Production.INFO: count ==874 [2025-03-08 01:56:19] Production.ERROR: pbx CDR StartTime 2025-03-07 22:56:06 - End Time 2025-03-08 01:56:06 [2025-03-08 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631928', 'tblTempUsageDetail_20' ) start [2025-03-08 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631928', 'tblTempUsageDetail_20' ) end [2025-03-08 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631928', 'tblTempVendorCDR_20' ) start [2025-03-08 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631928', 'tblTempVendorCDR_20' ) end [2025-03-08 01:56:19] Production.INFO: ProcessCDR(1,14631928,1,1,2) [2025-03-08 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631928', 'tblTempUsageDetail_20' ) start [2025-03-08 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631928', 'tblTempUsageDetail_20' ) end [2025-03-08 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:56:22] Production.INFO: ==12502== Releasing lock... [2025-03-08 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:56:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:57:05 [end_date_ymd] => 2025-03-08 01:57:05 [RateCDR] => 1 ) [2025-03-08 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:57:05' and `end` < '2025-03-08 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:57:17] Production.INFO: count ==874 [2025-03-08 01:57:17] Production.ERROR: pbx CDR StartTime 2025-03-07 22:57:05 - End Time 2025-03-08 01:57:05 [2025-03-08 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631933', 'tblTempUsageDetail_20' ) start [2025-03-08 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631933', 'tblTempUsageDetail_20' ) end [2025-03-08 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631933', 'tblTempVendorCDR_20' ) start [2025-03-08 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631933', 'tblTempVendorCDR_20' ) end [2025-03-08 01:57:17] Production.INFO: ProcessCDR(1,14631933,1,1,2) [2025-03-08 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631933', 'tblTempUsageDetail_20' ) start [2025-03-08 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631933', 'tblTempUsageDetail_20' ) end [2025-03-08 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:57:21] Production.INFO: ==12576== Releasing lock... [2025-03-08 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:57:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:58:06 [end_date_ymd] => 2025-03-08 01:58:06 [RateCDR] => 1 ) [2025-03-08 01:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:58:06' and `end` < '2025-03-08 01:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:58:19] Production.INFO: count ==870 [2025-03-08 01:58:19] Production.ERROR: pbx CDR StartTime 2025-03-07 22:58:06 - End Time 2025-03-08 01:58:06 [2025-03-08 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631938', 'tblTempUsageDetail_20' ) start [2025-03-08 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631938', 'tblTempUsageDetail_20' ) end [2025-03-08 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631938', 'tblTempVendorCDR_20' ) start [2025-03-08 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631938', 'tblTempVendorCDR_20' ) end [2025-03-08 01:58:19] Production.INFO: ProcessCDR(1,14631938,1,1,2) [2025-03-08 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631938', 'tblTempUsageDetail_20' ) start [2025-03-08 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631938', 'tblTempUsageDetail_20' ) end [2025-03-08 01:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:58:23] Production.INFO: ==12646== Releasing lock... [2025-03-08 01:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:58:23] Production.INFO: 35 MB #Memory Used# [2025-03-08 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 22:59:06 [end_date_ymd] => 2025-03-08 01:59:06 [RateCDR] => 1 ) [2025-03-08 01:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 22:59:06' and `end` < '2025-03-08 01:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 01:59:18] Production.INFO: count ==866 [2025-03-08 01:59:18] Production.ERROR: pbx CDR StartTime 2025-03-07 22:59:06 - End Time 2025-03-08 01:59:06 [2025-03-08 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631943', 'tblTempUsageDetail_20' ) start [2025-03-08 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631943', 'tblTempUsageDetail_20' ) end [2025-03-08 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631943', 'tblTempVendorCDR_20' ) start [2025-03-08 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631943', 'tblTempVendorCDR_20' ) end [2025-03-08 01:59:18] Production.INFO: ProcessCDR(1,14631943,1,1,2) [2025-03-08 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631943', 'tblTempUsageDetail_20' ) start [2025-03-08 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631943', 'tblTempUsageDetail_20' ) end [2025-03-08 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 01:59:22] Production.INFO: ==12717== Releasing lock... [2025-03-08 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 01:59:22] Production.INFO: 35 MB #Memory Used# [2025-03-08 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:00:07 [end_date_ymd] => 2025-03-08 02:00:07 [RateCDR] => 1 ) [2025-03-08 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:00:07' and `end` < '2025-03-08 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:00:19] Production.INFO: count ==876 [2025-03-08 02:00:20] Production.ERROR: pbx CDR StartTime 2025-03-07 23:00:07 - End Time 2025-03-08 02:00:07 [2025-03-08 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631949', 'tblTempUsageDetail_20' ) start [2025-03-08 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631949', 'tblTempUsageDetail_20' ) end [2025-03-08 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631949', 'tblTempVendorCDR_20' ) start [2025-03-08 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631949', 'tblTempVendorCDR_20' ) end [2025-03-08 02:00:20] Production.INFO: ProcessCDR(1,14631949,1,1,2) [2025-03-08 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631949', 'tblTempUsageDetail_20' ) start [2025-03-08 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631949', 'tblTempUsageDetail_20' ) end [2025-03-08 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:00:23] Production.INFO: ==12796== Releasing lock... [2025-03-08 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:00:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:01:06 [end_date_ymd] => 2025-03-08 02:01:06 [RateCDR] => 1 ) [2025-03-08 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:01:06' and `end` < '2025-03-08 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:01:18] Production.INFO: count ==876 [2025-03-08 02:01:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:01:06 - End Time 2025-03-08 02:01:06 [2025-03-08 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631954', 'tblTempUsageDetail_20' ) start [2025-03-08 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631954', 'tblTempUsageDetail_20' ) end [2025-03-08 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631954', 'tblTempVendorCDR_20' ) start [2025-03-08 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631954', 'tblTempVendorCDR_20' ) end [2025-03-08 02:01:18] Production.INFO: ProcessCDR(1,14631954,1,1,2) [2025-03-08 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631954', 'tblTempUsageDetail_20' ) start [2025-03-08 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631954', 'tblTempUsageDetail_20' ) end [2025-03-08 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:01:22] Production.INFO: ==13009== Releasing lock... [2025-03-08 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:01:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:02:06 [end_date_ymd] => 2025-03-08 02:02:06 [RateCDR] => 1 ) [2025-03-08 02:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:02:06' and `end` < '2025-03-08 02:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:02:18] Production.INFO: count ==871 [2025-03-08 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:02:06 - End Time 2025-03-08 02:02:06 [2025-03-08 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631959', 'tblTempUsageDetail_20' ) start [2025-03-08 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631959', 'tblTempUsageDetail_20' ) end [2025-03-08 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631959', 'tblTempVendorCDR_20' ) start [2025-03-08 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631959', 'tblTempVendorCDR_20' ) end [2025-03-08 02:02:18] Production.INFO: ProcessCDR(1,14631959,1,1,2) [2025-03-08 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631959', 'tblTempUsageDetail_20' ) start [2025-03-08 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631959', 'tblTempUsageDetail_20' ) end [2025-03-08 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:02:22] Production.INFO: ==13078== Releasing lock... [2025-03-08 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:02:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:03:06 [end_date_ymd] => 2025-03-08 02:03:06 [RateCDR] => 1 ) [2025-03-08 02:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:03:06' and `end` < '2025-03-08 02:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:03:18] Production.INFO: count ==864 [2025-03-08 02:03:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:03:06 - End Time 2025-03-08 02:03:06 [2025-03-08 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631964', 'tblTempUsageDetail_20' ) start [2025-03-08 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631964', 'tblTempUsageDetail_20' ) end [2025-03-08 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631964', 'tblTempVendorCDR_20' ) start [2025-03-08 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631964', 'tblTempVendorCDR_20' ) end [2025-03-08 02:03:18] Production.INFO: ProcessCDR(1,14631964,1,1,2) [2025-03-08 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631964', 'tblTempUsageDetail_20' ) start [2025-03-08 02:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631964', 'tblTempUsageDetail_20' ) end [2025-03-08 02:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:03:24] Production.INFO: ==13149== Releasing lock... [2025-03-08 02:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:03:24] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:04:05 [end_date_ymd] => 2025-03-08 02:04:05 [RateCDR] => 1 ) [2025-03-08 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:04:05' and `end` < '2025-03-08 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:04:17] Production.INFO: count ==858 [2025-03-08 02:04:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:04:05 - End Time 2025-03-08 02:04:05 [2025-03-08 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631969', 'tblTempUsageDetail_20' ) start [2025-03-08 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631969', 'tblTempUsageDetail_20' ) end [2025-03-08 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631969', 'tblTempVendorCDR_20' ) start [2025-03-08 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631969', 'tblTempVendorCDR_20' ) end [2025-03-08 02:04:18] Production.INFO: ProcessCDR(1,14631969,1,1,2) [2025-03-08 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631969', 'tblTempUsageDetail_20' ) start [2025-03-08 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631969', 'tblTempUsageDetail_20' ) end [2025-03-08 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:04:22] Production.INFO: ==13222== Releasing lock... [2025-03-08 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:04:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:05:05 [end_date_ymd] => 2025-03-08 02:05:05 [RateCDR] => 1 ) [2025-03-08 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:05:05' and `end` < '2025-03-08 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:05:17] Production.INFO: count ==840 [2025-03-08 02:05:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:05:05 - End Time 2025-03-08 02:05:05 [2025-03-08 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631974', 'tblTempUsageDetail_20' ) start [2025-03-08 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631974', 'tblTempUsageDetail_20' ) end [2025-03-08 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631974', 'tblTempVendorCDR_20' ) start [2025-03-08 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631974', 'tblTempVendorCDR_20' ) end [2025-03-08 02:05:18] Production.INFO: ProcessCDR(1,14631974,1,1,2) [2025-03-08 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631974', 'tblTempUsageDetail_20' ) start [2025-03-08 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631974', 'tblTempUsageDetail_20' ) end [2025-03-08 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:05:22] Production.INFO: ==13307== Releasing lock... [2025-03-08 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:05:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:06:06 [end_date_ymd] => 2025-03-08 02:06:06 [RateCDR] => 1 ) [2025-03-08 02:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:06:06' and `end` < '2025-03-08 02:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:06:18] Production.INFO: count ==838 [2025-03-08 02:06:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:06:06 - End Time 2025-03-08 02:06:06 [2025-03-08 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631979', 'tblTempUsageDetail_20' ) start [2025-03-08 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631979', 'tblTempUsageDetail_20' ) end [2025-03-08 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631979', 'tblTempVendorCDR_20' ) start [2025-03-08 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631979', 'tblTempVendorCDR_20' ) end [2025-03-08 02:06:18] Production.INFO: ProcessCDR(1,14631979,1,1,2) [2025-03-08 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631979', 'tblTempUsageDetail_20' ) start [2025-03-08 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631979', 'tblTempUsageDetail_20' ) end [2025-03-08 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:06:21] Production.INFO: ==13379== Releasing lock... [2025-03-08 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:06:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:07:05 [end_date_ymd] => 2025-03-08 02:07:05 [RateCDR] => 1 ) [2025-03-08 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:07:05' and `end` < '2025-03-08 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:07:17] Production.INFO: count ==842 [2025-03-08 02:07:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:07:05 - End Time 2025-03-08 02:07:05 [2025-03-08 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631984', 'tblTempUsageDetail_20' ) start [2025-03-08 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631984', 'tblTempUsageDetail_20' ) end [2025-03-08 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631984', 'tblTempVendorCDR_20' ) start [2025-03-08 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631984', 'tblTempVendorCDR_20' ) end [2025-03-08 02:07:18] Production.INFO: ProcessCDR(1,14631984,1,1,2) [2025-03-08 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631984', 'tblTempUsageDetail_20' ) start [2025-03-08 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631984', 'tblTempUsageDetail_20' ) end [2025-03-08 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:07:21] Production.INFO: ==13452== Releasing lock... [2025-03-08 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:07:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:08:05 [end_date_ymd] => 2025-03-08 02:08:05 [RateCDR] => 1 ) [2025-03-08 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:08:05' and `end` < '2025-03-08 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:08:17] Production.INFO: count ==841 [2025-03-08 02:08:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:08:05 - End Time 2025-03-08 02:08:05 [2025-03-08 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631989', 'tblTempUsageDetail_20' ) start [2025-03-08 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631989', 'tblTempUsageDetail_20' ) end [2025-03-08 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631989', 'tblTempVendorCDR_20' ) start [2025-03-08 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631989', 'tblTempVendorCDR_20' ) end [2025-03-08 02:08:18] Production.INFO: ProcessCDR(1,14631989,1,1,2) [2025-03-08 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631989', 'tblTempUsageDetail_20' ) start [2025-03-08 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631989', 'tblTempUsageDetail_20' ) end [2025-03-08 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:08:21] Production.INFO: ==13524== Releasing lock... [2025-03-08 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:08:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:09:05 [end_date_ymd] => 2025-03-08 02:09:05 [RateCDR] => 1 ) [2025-03-08 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:09:05' and `end` < '2025-03-08 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:09:18] Production.INFO: count ==831 [2025-03-08 02:09:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:09:05 - End Time 2025-03-08 02:09:05 [2025-03-08 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631994', 'tblTempUsageDetail_20' ) start [2025-03-08 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14631994', 'tblTempUsageDetail_20' ) end [2025-03-08 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631994', 'tblTempVendorCDR_20' ) start [2025-03-08 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14631994', 'tblTempVendorCDR_20' ) end [2025-03-08 02:09:18] Production.INFO: ProcessCDR(1,14631994,1,1,2) [2025-03-08 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14631994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14631994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14631994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14631994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631994', 'tblTempUsageDetail_20' ) start [2025-03-08 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14631994', 'tblTempUsageDetail_20' ) end [2025-03-08 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:09:21] Production.INFO: ==13594== Releasing lock... [2025-03-08 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:09:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:10:06 [end_date_ymd] => 2025-03-08 02:10:06 [RateCDR] => 1 ) [2025-03-08 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:10:06' and `end` < '2025-03-08 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:10:19] Production.INFO: count ==836 [2025-03-08 02:10:19] Production.ERROR: pbx CDR StartTime 2025-03-07 23:10:06 - End Time 2025-03-08 02:10:06 [2025-03-08 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632000', 'tblTempUsageDetail_20' ) start [2025-03-08 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632000', 'tblTempUsageDetail_20' ) end [2025-03-08 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632000', 'tblTempVendorCDR_20' ) start [2025-03-08 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632000', 'tblTempVendorCDR_20' ) end [2025-03-08 02:10:19] Production.INFO: ProcessCDR(1,14632000,1,1,2) [2025-03-08 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632000', 'tblTempUsageDetail_20' ) start [2025-03-08 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632000', 'tblTempUsageDetail_20' ) end [2025-03-08 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:10:22] Production.INFO: ==13666== Releasing lock... [2025-03-08 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:10:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:11:06 [end_date_ymd] => 2025-03-08 02:11:06 [RateCDR] => 1 ) [2025-03-08 02:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:11:06' and `end` < '2025-03-08 02:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:11:18] Production.INFO: count ==838 [2025-03-08 02:11:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:11:06 - End Time 2025-03-08 02:11:06 [2025-03-08 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632005', 'tblTempUsageDetail_20' ) start [2025-03-08 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632005', 'tblTempUsageDetail_20' ) end [2025-03-08 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632005', 'tblTempVendorCDR_20' ) start [2025-03-08 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632005', 'tblTempVendorCDR_20' ) end [2025-03-08 02:11:18] Production.INFO: ProcessCDR(1,14632005,1,1,2) [2025-03-08 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632005', 'tblTempUsageDetail_20' ) start [2025-03-08 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632005', 'tblTempUsageDetail_20' ) end [2025-03-08 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:11:22] Production.INFO: ==13740== Releasing lock... [2025-03-08 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:11:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:12:05 [end_date_ymd] => 2025-03-08 02:12:05 [RateCDR] => 1 ) [2025-03-08 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:12:05' and `end` < '2025-03-08 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:12:17] Production.INFO: count ==828 [2025-03-08 02:12:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:12:05 - End Time 2025-03-08 02:12:05 [2025-03-08 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632010', 'tblTempUsageDetail_20' ) start [2025-03-08 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632010', 'tblTempUsageDetail_20' ) end [2025-03-08 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632010', 'tblTempVendorCDR_20' ) start [2025-03-08 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632010', 'tblTempVendorCDR_20' ) end [2025-03-08 02:12:17] Production.INFO: ProcessCDR(1,14632010,1,1,2) [2025-03-08 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632010', 'tblTempUsageDetail_20' ) start [2025-03-08 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632010', 'tblTempUsageDetail_20' ) end [2025-03-08 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:12:22] Production.INFO: ==13810== Releasing lock... [2025-03-08 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:12:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 02:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:13:06 [end_date_ymd] => 2025-03-08 02:13:06 [RateCDR] => 1 ) [2025-03-08 02:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:13:06' and `end` < '2025-03-08 02:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:13:18] Production.INFO: count ==822 [2025-03-08 02:13:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:13:06 - End Time 2025-03-08 02:13:06 [2025-03-08 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632015', 'tblTempUsageDetail_20' ) start [2025-03-08 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632015', 'tblTempUsageDetail_20' ) end [2025-03-08 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632015', 'tblTempVendorCDR_20' ) start [2025-03-08 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632015', 'tblTempVendorCDR_20' ) end [2025-03-08 02:13:18] Production.INFO: ProcessCDR(1,14632015,1,1,2) [2025-03-08 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632015', 'tblTempUsageDetail_20' ) start [2025-03-08 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632015', 'tblTempUsageDetail_20' ) end [2025-03-08 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:13:22] Production.INFO: ==13883== Releasing lock... [2025-03-08 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:13:22] Production.INFO: 34 MB #Memory Used# [2025-03-08 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:14:05 [end_date_ymd] => 2025-03-08 02:14:05 [RateCDR] => 1 ) [2025-03-08 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:14:05' and `end` < '2025-03-08 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:14:17] Production.INFO: count ==822 [2025-03-08 02:14:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:14:05 - End Time 2025-03-08 02:14:05 [2025-03-08 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632020', 'tblTempUsageDetail_20' ) start [2025-03-08 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632020', 'tblTempUsageDetail_20' ) end [2025-03-08 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632020', 'tblTempVendorCDR_20' ) start [2025-03-08 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632020', 'tblTempVendorCDR_20' ) end [2025-03-08 02:14:18] Production.INFO: ProcessCDR(1,14632020,1,1,2) [2025-03-08 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632020', 'tblTempUsageDetail_20' ) start [2025-03-08 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632020', 'tblTempUsageDetail_20' ) end [2025-03-08 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:14:21] Production.INFO: ==13954== Releasing lock... [2025-03-08 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:14:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:15:06 [end_date_ymd] => 2025-03-08 02:15:06 [RateCDR] => 1 ) [2025-03-08 02:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:15:06' and `end` < '2025-03-08 02:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:15:18] Production.INFO: count ==817 [2025-03-08 02:15:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:15:06 - End Time 2025-03-08 02:15:06 [2025-03-08 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632025', 'tblTempUsageDetail_20' ) start [2025-03-08 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632025', 'tblTempUsageDetail_20' ) end [2025-03-08 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632025', 'tblTempVendorCDR_20' ) start [2025-03-08 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632025', 'tblTempVendorCDR_20' ) end [2025-03-08 02:15:18] Production.INFO: ProcessCDR(1,14632025,1,1,2) [2025-03-08 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632025', 'tblTempUsageDetail_20' ) start [2025-03-08 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632025', 'tblTempUsageDetail_20' ) end [2025-03-08 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:15:21] Production.INFO: ==14028== Releasing lock... [2025-03-08 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:15:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:16:05 [end_date_ymd] => 2025-03-08 02:16:05 [RateCDR] => 1 ) [2025-03-08 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:16:05' and `end` < '2025-03-08 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:16:17] Production.INFO: count ==814 [2025-03-08 02:16:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:16:05 - End Time 2025-03-08 02:16:05 [2025-03-08 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632030', 'tblTempUsageDetail_20' ) start [2025-03-08 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632030', 'tblTempUsageDetail_20' ) end [2025-03-08 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632030', 'tblTempVendorCDR_20' ) start [2025-03-08 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632030', 'tblTempVendorCDR_20' ) end [2025-03-08 02:16:18] Production.INFO: ProcessCDR(1,14632030,1,1,2) [2025-03-08 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632030', 'tblTempUsageDetail_20' ) start [2025-03-08 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632030', 'tblTempUsageDetail_20' ) end [2025-03-08 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:16:21] Production.INFO: ==14139== Releasing lock... [2025-03-08 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:16:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:17:06 [end_date_ymd] => 2025-03-08 02:17:06 [RateCDR] => 1 ) [2025-03-08 02:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:17:06' and `end` < '2025-03-08 02:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:17:18] Production.INFO: count ==811 [2025-03-08 02:17:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:17:06 - End Time 2025-03-08 02:17:06 [2025-03-08 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632035', 'tblTempUsageDetail_20' ) start [2025-03-08 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632035', 'tblTempUsageDetail_20' ) end [2025-03-08 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632035', 'tblTempVendorCDR_20' ) start [2025-03-08 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632035', 'tblTempVendorCDR_20' ) end [2025-03-08 02:17:18] Production.INFO: ProcessCDR(1,14632035,1,1,2) [2025-03-08 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632035', 'tblTempUsageDetail_20' ) start [2025-03-08 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632035', 'tblTempUsageDetail_20' ) end [2025-03-08 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:17:21] Production.INFO: ==14211== Releasing lock... [2025-03-08 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:17:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:18:05 [end_date_ymd] => 2025-03-08 02:18:05 [RateCDR] => 1 ) [2025-03-08 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:18:05' and `end` < '2025-03-08 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:18:17] Production.INFO: count ==811 [2025-03-08 02:18:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:18:05 - End Time 2025-03-08 02:18:05 [2025-03-08 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632040', 'tblTempUsageDetail_20' ) start [2025-03-08 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632040', 'tblTempUsageDetail_20' ) end [2025-03-08 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632040', 'tblTempVendorCDR_20' ) start [2025-03-08 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632040', 'tblTempVendorCDR_20' ) end [2025-03-08 02:18:17] Production.INFO: ProcessCDR(1,14632040,1,1,2) [2025-03-08 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632040', 'tblTempUsageDetail_20' ) start [2025-03-08 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632040', 'tblTempUsageDetail_20' ) end [2025-03-08 02:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:18:20] Production.INFO: ==14281== Releasing lock... [2025-03-08 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:18:20] Production.INFO: 34 MB #Memory Used# [2025-03-08 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:19:05 [end_date_ymd] => 2025-03-08 02:19:05 [RateCDR] => 1 ) [2025-03-08 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:19:05' and `end` < '2025-03-08 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:19:17] Production.INFO: count ==811 [2025-03-08 02:19:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:19:05 - End Time 2025-03-08 02:19:05 [2025-03-08 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632045', 'tblTempUsageDetail_20' ) start [2025-03-08 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632045', 'tblTempUsageDetail_20' ) end [2025-03-08 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632045', 'tblTempVendorCDR_20' ) start [2025-03-08 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632045', 'tblTempVendorCDR_20' ) end [2025-03-08 02:19:18] Production.INFO: ProcessCDR(1,14632045,1,1,2) [2025-03-08 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632045', 'tblTempUsageDetail_20' ) start [2025-03-08 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632045', 'tblTempUsageDetail_20' ) end [2025-03-08 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:19:21] Production.INFO: ==14353== Releasing lock... [2025-03-08 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:19:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:20:05 [end_date_ymd] => 2025-03-08 02:20:05 [RateCDR] => 1 ) [2025-03-08 02:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:20:05' and `end` < '2025-03-08 02:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:20:18] Production.INFO: count ==814 [2025-03-08 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:20:05 - End Time 2025-03-08 02:20:05 [2025-03-08 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632050', 'tblTempUsageDetail_20' ) start [2025-03-08 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632050', 'tblTempUsageDetail_20' ) end [2025-03-08 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632050', 'tblTempVendorCDR_20' ) start [2025-03-08 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632050', 'tblTempVendorCDR_20' ) end [2025-03-08 02:20:18] Production.INFO: ProcessCDR(1,14632050,1,1,2) [2025-03-08 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632050', 'tblTempUsageDetail_20' ) start [2025-03-08 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632050', 'tblTempUsageDetail_20' ) end [2025-03-08 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:20:21] Production.INFO: ==14426== Releasing lock... [2025-03-08 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:20:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 02:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:21:06 [end_date_ymd] => 2025-03-08 02:21:06 [RateCDR] => 1 ) [2025-03-08 02:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:21:06' and `end` < '2025-03-08 02:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:21:18] Production.INFO: count ==816 [2025-03-08 02:21:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:21:06 - End Time 2025-03-08 02:21:06 [2025-03-08 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632056', 'tblTempUsageDetail_20' ) start [2025-03-08 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632056', 'tblTempUsageDetail_20' ) end [2025-03-08 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632056', 'tblTempVendorCDR_20' ) start [2025-03-08 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632056', 'tblTempVendorCDR_20' ) end [2025-03-08 02:21:18] Production.INFO: ProcessCDR(1,14632056,1,1,2) [2025-03-08 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632056', 'tblTempUsageDetail_20' ) start [2025-03-08 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632056', 'tblTempUsageDetail_20' ) end [2025-03-08 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:21:22] Production.INFO: ==14500== Releasing lock... [2025-03-08 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:21:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:22:05 [end_date_ymd] => 2025-03-08 02:22:05 [RateCDR] => 1 ) [2025-03-08 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:22:05' and `end` < '2025-03-08 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:22:17] Production.INFO: count ==819 [2025-03-08 02:22:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:22:05 - End Time 2025-03-08 02:22:05 [2025-03-08 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632061', 'tblTempUsageDetail_20' ) start [2025-03-08 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632061', 'tblTempUsageDetail_20' ) end [2025-03-08 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632061', 'tblTempVendorCDR_20' ) start [2025-03-08 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632061', 'tblTempVendorCDR_20' ) end [2025-03-08 02:22:17] Production.INFO: ProcessCDR(1,14632061,1,1,2) [2025-03-08 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632061', 'tblTempUsageDetail_20' ) start [2025-03-08 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632061', 'tblTempUsageDetail_20' ) end [2025-03-08 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:22:21] Production.INFO: ==14571== Releasing lock... [2025-03-08 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:22:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:23:06 [end_date_ymd] => 2025-03-08 02:23:06 [RateCDR] => 1 ) [2025-03-08 02:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:23:06' and `end` < '2025-03-08 02:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:23:18] Production.INFO: count ==818 [2025-03-08 02:23:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:23:06 - End Time 2025-03-08 02:23:06 [2025-03-08 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632066', 'tblTempUsageDetail_20' ) start [2025-03-08 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632066', 'tblTempUsageDetail_20' ) end [2025-03-08 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632066', 'tblTempVendorCDR_20' ) start [2025-03-08 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632066', 'tblTempVendorCDR_20' ) end [2025-03-08 02:23:18] Production.INFO: ProcessCDR(1,14632066,1,1,2) [2025-03-08 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632066', 'tblTempUsageDetail_20' ) start [2025-03-08 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632066', 'tblTempUsageDetail_20' ) end [2025-03-08 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:23:22] Production.INFO: ==14643== Releasing lock... [2025-03-08 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:23:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:24:05 [end_date_ymd] => 2025-03-08 02:24:05 [RateCDR] => 1 ) [2025-03-08 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:24:05' and `end` < '2025-03-08 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:24:18] Production.INFO: count ==816 [2025-03-08 02:24:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:24:05 - End Time 2025-03-08 02:24:05 [2025-03-08 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632071', 'tblTempUsageDetail_20' ) start [2025-03-08 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632071', 'tblTempUsageDetail_20' ) end [2025-03-08 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632071', 'tblTempVendorCDR_20' ) start [2025-03-08 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632071', 'tblTempVendorCDR_20' ) end [2025-03-08 02:24:18] Production.INFO: ProcessCDR(1,14632071,1,1,2) [2025-03-08 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632071', 'tblTempUsageDetail_20' ) start [2025-03-08 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632071', 'tblTempUsageDetail_20' ) end [2025-03-08 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:24:21] Production.INFO: ==14712== Releasing lock... [2025-03-08 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:24:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:25:06 [end_date_ymd] => 2025-03-08 02:25:06 [RateCDR] => 1 ) [2025-03-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-03-07 23:25:06' and `end` < '2025-03-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-03-08 02:25:18] Production.INFO: count ==809 [2025-03-08 02:25:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:25:06 - End Time 2025-03-08 02:25:06 [2025-03-08 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632076', 'tblTempUsageDetail_20' ) start [2025-03-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632076', 'tblTempUsageDetail_20' ) end [2025-03-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632076', 'tblTempVendorCDR_20' ) start [2025-03-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632076', 'tblTempVendorCDR_20' ) end [2025-03-08 02:25:18] Production.INFO: ProcessCDR(1,14632076,1,1,2) [2025-03-08 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632076', 'tblTempUsageDetail_20' ) start [2025-03-08 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632076', 'tblTempUsageDetail_20' ) end [2025-03-08 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:25:21] Production.INFO: ==14790== Releasing lock... [2025-03-08 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:25:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:26:06 [end_date_ymd] => 2025-03-08 02:26:06 [RateCDR] => 1 ) [2025-03-08 02:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:26:06' and `end` < '2025-03-08 02:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:26:18] Production.INFO: count ==812 [2025-03-08 02:26:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:26:06 - End Time 2025-03-08 02:26:06 [2025-03-08 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632081', 'tblTempUsageDetail_20' ) start [2025-03-08 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632081', 'tblTempUsageDetail_20' ) end [2025-03-08 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632081', 'tblTempVendorCDR_20' ) start [2025-03-08 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632081', 'tblTempVendorCDR_20' ) end [2025-03-08 02:26:18] Production.INFO: ProcessCDR(1,14632081,1,1,2) [2025-03-08 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632081', 'tblTempUsageDetail_20' ) start [2025-03-08 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632081', 'tblTempUsageDetail_20' ) end [2025-03-08 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:26:21] Production.INFO: ==14866== Releasing lock... [2025-03-08 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:26:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:27:05 [end_date_ymd] => 2025-03-08 02:27:05 [RateCDR] => 1 ) [2025-03-08 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:27:05' and `end` < '2025-03-08 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:27:17] Production.INFO: count ==812 [2025-03-08 02:27:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:27:05 - End Time 2025-03-08 02:27:05 [2025-03-08 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632086', 'tblTempUsageDetail_20' ) start [2025-03-08 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632086', 'tblTempUsageDetail_20' ) end [2025-03-08 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632086', 'tblTempVendorCDR_20' ) start [2025-03-08 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632086', 'tblTempVendorCDR_20' ) end [2025-03-08 02:27:17] Production.INFO: ProcessCDR(1,14632086,1,1,2) [2025-03-08 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632086', 'tblTempUsageDetail_20' ) start [2025-03-08 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632086', 'tblTempUsageDetail_20' ) end [2025-03-08 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:27:21] Production.INFO: ==14944== Releasing lock... [2025-03-08 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:27:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:28:05 [end_date_ymd] => 2025-03-08 02:28:05 [RateCDR] => 1 ) [2025-03-08 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:28:05' and `end` < '2025-03-08 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:28:17] Production.INFO: count ==808 [2025-03-08 02:28:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:28:05 - End Time 2025-03-08 02:28:05 [2025-03-08 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632091', 'tblTempUsageDetail_20' ) start [2025-03-08 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632091', 'tblTempUsageDetail_20' ) end [2025-03-08 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632091', 'tblTempVendorCDR_20' ) start [2025-03-08 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632091', 'tblTempVendorCDR_20' ) end [2025-03-08 02:28:17] Production.INFO: ProcessCDR(1,14632091,1,1,2) [2025-03-08 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632091', 'tblTempUsageDetail_20' ) start [2025-03-08 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632091', 'tblTempUsageDetail_20' ) end [2025-03-08 02:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:28:20] Production.INFO: ==15014== Releasing lock... [2025-03-08 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:28:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:29:05 [end_date_ymd] => 2025-03-08 02:29:05 [RateCDR] => 1 ) [2025-03-08 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:29:05' and `end` < '2025-03-08 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:29:17] Production.INFO: count ==808 [2025-03-08 02:29:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:29:05 - End Time 2025-03-08 02:29:05 [2025-03-08 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632096', 'tblTempUsageDetail_20' ) start [2025-03-08 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632096', 'tblTempUsageDetail_20' ) end [2025-03-08 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632096', 'tblTempVendorCDR_20' ) start [2025-03-08 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632096', 'tblTempVendorCDR_20' ) end [2025-03-08 02:29:18] Production.INFO: ProcessCDR(1,14632096,1,1,2) [2025-03-08 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632096', 'tblTempUsageDetail_20' ) start [2025-03-08 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632096', 'tblTempUsageDetail_20' ) end [2025-03-08 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:29:21] Production.INFO: ==15090== Releasing lock... [2025-03-08 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:29:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:30:06 [end_date_ymd] => 2025-03-08 02:30:06 [RateCDR] => 1 ) [2025-03-08 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:30:06' and `end` < '2025-03-08 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:30:18] Production.INFO: count ==814 [2025-03-08 02:30:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:30:06 - End Time 2025-03-08 02:30:06 [2025-03-08 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632102', 'tblTempUsageDetail_20' ) start [2025-03-08 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632102', 'tblTempUsageDetail_20' ) end [2025-03-08 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632102', 'tblTempVendorCDR_20' ) start [2025-03-08 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632102', 'tblTempVendorCDR_20' ) end [2025-03-08 02:30:18] Production.INFO: ProcessCDR(1,14632102,1,1,2) [2025-03-08 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632102', 'tblTempUsageDetail_20' ) start [2025-03-08 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632102', 'tblTempUsageDetail_20' ) end [2025-03-08 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:30:21] Production.INFO: ==15173== Releasing lock... [2025-03-08 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:30:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:31:06 [end_date_ymd] => 2025-03-08 02:31:06 [RateCDR] => 1 ) [2025-03-08 02:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:31:06' and `end` < '2025-03-08 02:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:31:18] Production.INFO: count ==814 [2025-03-08 02:31:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:31:06 - End Time 2025-03-08 02:31:06 [2025-03-08 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632107', 'tblTempUsageDetail_20' ) start [2025-03-08 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632107', 'tblTempUsageDetail_20' ) end [2025-03-08 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632107', 'tblTempVendorCDR_20' ) start [2025-03-08 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632107', 'tblTempVendorCDR_20' ) end [2025-03-08 02:31:18] Production.INFO: ProcessCDR(1,14632107,1,1,2) [2025-03-08 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632107', 'tblTempUsageDetail_20' ) start [2025-03-08 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632107', 'tblTempUsageDetail_20' ) end [2025-03-08 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:31:22] Production.INFO: ==15287== Releasing lock... [2025-03-08 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:31:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:32:05 [end_date_ymd] => 2025-03-08 02:32:05 [RateCDR] => 1 ) [2025-03-08 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:32:05' and `end` < '2025-03-08 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:32:17] Production.INFO: count ==814 [2025-03-08 02:32:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:32:05 - End Time 2025-03-08 02:32:05 [2025-03-08 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632112', 'tblTempUsageDetail_20' ) start [2025-03-08 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632112', 'tblTempUsageDetail_20' ) end [2025-03-08 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632112', 'tblTempVendorCDR_20' ) start [2025-03-08 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632112', 'tblTempVendorCDR_20' ) end [2025-03-08 02:32:18] Production.INFO: ProcessCDR(1,14632112,1,1,2) [2025-03-08 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632112', 'tblTempUsageDetail_20' ) start [2025-03-08 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632112', 'tblTempUsageDetail_20' ) end [2025-03-08 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:32:21] Production.INFO: ==15364== Releasing lock... [2025-03-08 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:32:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:33:05 [end_date_ymd] => 2025-03-08 02:33:05 [RateCDR] => 1 ) [2025-03-08 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:33:05' and `end` < '2025-03-08 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:33:17] Production.INFO: count ==813 [2025-03-08 02:33:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:33:05 - End Time 2025-03-08 02:33:05 [2025-03-08 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632117', 'tblTempUsageDetail_20' ) start [2025-03-08 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632117', 'tblTempUsageDetail_20' ) end [2025-03-08 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632117', 'tblTempVendorCDR_20' ) start [2025-03-08 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632117', 'tblTempVendorCDR_20' ) end [2025-03-08 02:33:17] Production.INFO: ProcessCDR(1,14632117,1,1,2) [2025-03-08 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632117', 'tblTempUsageDetail_20' ) start [2025-03-08 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632117', 'tblTempUsageDetail_20' ) end [2025-03-08 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:33:21] Production.INFO: ==15443== Releasing lock... [2025-03-08 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:33:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:34:06 [end_date_ymd] => 2025-03-08 02:34:06 [RateCDR] => 1 ) [2025-03-08 02:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:34:06' and `end` < '2025-03-08 02:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:34:18] Production.INFO: count ==815 [2025-03-08 02:34:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:34:06 - End Time 2025-03-08 02:34:06 [2025-03-08 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632122', 'tblTempUsageDetail_20' ) start [2025-03-08 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632122', 'tblTempUsageDetail_20' ) end [2025-03-08 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632122', 'tblTempVendorCDR_20' ) start [2025-03-08 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632122', 'tblTempVendorCDR_20' ) end [2025-03-08 02:34:18] Production.INFO: ProcessCDR(1,14632122,1,1,2) [2025-03-08 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632122', 'tblTempUsageDetail_20' ) start [2025-03-08 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632122', 'tblTempUsageDetail_20' ) end [2025-03-08 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:34:21] Production.INFO: ==15519== Releasing lock... [2025-03-08 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:34:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:35:05 [end_date_ymd] => 2025-03-08 02:35:05 [RateCDR] => 1 ) [2025-03-08 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:35:05' and `end` < '2025-03-08 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:35:17] Production.INFO: count ==815 [2025-03-08 02:35:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:35:05 - End Time 2025-03-08 02:35:05 [2025-03-08 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632127', 'tblTempUsageDetail_20' ) start [2025-03-08 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632127', 'tblTempUsageDetail_20' ) end [2025-03-08 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632127', 'tblTempVendorCDR_20' ) start [2025-03-08 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632127', 'tblTempVendorCDR_20' ) end [2025-03-08 02:35:17] Production.INFO: ProcessCDR(1,14632127,1,1,2) [2025-03-08 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632127', 'tblTempUsageDetail_20' ) start [2025-03-08 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632127', 'tblTempUsageDetail_20' ) end [2025-03-08 02:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:35:20] Production.INFO: ==15597== Releasing lock... [2025-03-08 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:35:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:36:06 [end_date_ymd] => 2025-03-08 02:36:06 [RateCDR] => 1 ) [2025-03-08 02:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:36:06' and `end` < '2025-03-08 02:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:36:18] Production.INFO: count ==812 [2025-03-08 02:36:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:36:06 - End Time 2025-03-08 02:36:06 [2025-03-08 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632132', 'tblTempUsageDetail_20' ) start [2025-03-08 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632132', 'tblTempUsageDetail_20' ) end [2025-03-08 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632132', 'tblTempVendorCDR_20' ) start [2025-03-08 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632132', 'tblTempVendorCDR_20' ) end [2025-03-08 02:36:18] Production.INFO: ProcessCDR(1,14632132,1,1,2) [2025-03-08 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632132', 'tblTempUsageDetail_20' ) start [2025-03-08 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632132', 'tblTempUsageDetail_20' ) end [2025-03-08 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:36:21] Production.INFO: ==15677== Releasing lock... [2025-03-08 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:36:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:37:05 [end_date_ymd] => 2025-03-08 02:37:05 [RateCDR] => 1 ) [2025-03-08 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:37:05' and `end` < '2025-03-08 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:37:17] Production.INFO: count ==809 [2025-03-08 02:37:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:37:05 - End Time 2025-03-08 02:37:05 [2025-03-08 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632137', 'tblTempUsageDetail_20' ) start [2025-03-08 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632137', 'tblTempUsageDetail_20' ) end [2025-03-08 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632137', 'tblTempVendorCDR_20' ) start [2025-03-08 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632137', 'tblTempVendorCDR_20' ) end [2025-03-08 02:37:18] Production.INFO: ProcessCDR(1,14632137,1,1,2) [2025-03-08 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632137', 'tblTempUsageDetail_20' ) start [2025-03-08 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632137', 'tblTempUsageDetail_20' ) end [2025-03-08 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:37:21] Production.INFO: ==15760== Releasing lock... [2025-03-08 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:37:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:38:05 [end_date_ymd] => 2025-03-08 02:38:05 [RateCDR] => 1 ) [2025-03-08 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:38:05' and `end` < '2025-03-08 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:38:18] Production.INFO: count ==809 [2025-03-08 02:38:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:38:05 - End Time 2025-03-08 02:38:05 [2025-03-08 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632142', 'tblTempUsageDetail_20' ) start [2025-03-08 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632142', 'tblTempUsageDetail_20' ) end [2025-03-08 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632142', 'tblTempVendorCDR_20' ) start [2025-03-08 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632142', 'tblTempVendorCDR_20' ) end [2025-03-08 02:38:18] Production.INFO: ProcessCDR(1,14632142,1,1,2) [2025-03-08 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632142', 'tblTempUsageDetail_20' ) start [2025-03-08 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632142', 'tblTempUsageDetail_20' ) end [2025-03-08 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:38:21] Production.INFO: ==15845== Releasing lock... [2025-03-08 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:38:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:39:05 [end_date_ymd] => 2025-03-08 02:39:05 [RateCDR] => 1 ) [2025-03-08 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:39:05' and `end` < '2025-03-08 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:39:17] Production.INFO: count ==809 [2025-03-08 02:39:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:39:05 - End Time 2025-03-08 02:39:05 [2025-03-08 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632147', 'tblTempUsageDetail_20' ) start [2025-03-08 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632147', 'tblTempUsageDetail_20' ) end [2025-03-08 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632147', 'tblTempVendorCDR_20' ) start [2025-03-08 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632147', 'tblTempVendorCDR_20' ) end [2025-03-08 02:39:17] Production.INFO: ProcessCDR(1,14632147,1,1,2) [2025-03-08 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632147', 'tblTempUsageDetail_20' ) start [2025-03-08 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632147', 'tblTempUsageDetail_20' ) end [2025-03-08 02:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:39:20] Production.INFO: ==15925== Releasing lock... [2025-03-08 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:39:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:40:06 [end_date_ymd] => 2025-03-08 02:40:06 [RateCDR] => 1 ) [2025-03-08 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:40:06' and `end` < '2025-03-08 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:40:18] Production.INFO: count ==817 [2025-03-08 02:40:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:40:06 - End Time 2025-03-08 02:40:06 [2025-03-08 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632153', 'tblTempUsageDetail_20' ) start [2025-03-08 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632153', 'tblTempUsageDetail_20' ) end [2025-03-08 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632153', 'tblTempVendorCDR_20' ) start [2025-03-08 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632153', 'tblTempVendorCDR_20' ) end [2025-03-08 02:40:18] Production.INFO: ProcessCDR(1,14632153,1,1,2) [2025-03-08 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632153', 'tblTempUsageDetail_20' ) start [2025-03-08 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632153', 'tblTempUsageDetail_20' ) end [2025-03-08 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:40:22] Production.INFO: ==16010== Releasing lock... [2025-03-08 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:40:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:41:05 [end_date_ymd] => 2025-03-08 02:41:05 [RateCDR] => 1 ) [2025-03-08 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:41:05' and `end` < '2025-03-08 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:41:17] Production.INFO: count ==839 [2025-03-08 02:41:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:41:05 - End Time 2025-03-08 02:41:05 [2025-03-08 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632158', 'tblTempUsageDetail_20' ) start [2025-03-08 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632158', 'tblTempUsageDetail_20' ) end [2025-03-08 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632158', 'tblTempVendorCDR_20' ) start [2025-03-08 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632158', 'tblTempVendorCDR_20' ) end [2025-03-08 02:41:18] Production.INFO: ProcessCDR(1,14632158,1,1,2) [2025-03-08 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632158', 'tblTempUsageDetail_20' ) start [2025-03-08 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632158', 'tblTempUsageDetail_20' ) end [2025-03-08 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:41:21] Production.INFO: ==16097== Releasing lock... [2025-03-08 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:41:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:42:06 [end_date_ymd] => 2025-03-08 02:42:06 [RateCDR] => 1 ) [2025-03-08 02:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:42:06' and `end` < '2025-03-08 02:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:42:18] Production.INFO: count ==846 [2025-03-08 02:42:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:42:06 - End Time 2025-03-08 02:42:06 [2025-03-08 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632163', 'tblTempUsageDetail_20' ) start [2025-03-08 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632163', 'tblTempUsageDetail_20' ) end [2025-03-08 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632163', 'tblTempVendorCDR_20' ) start [2025-03-08 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632163', 'tblTempVendorCDR_20' ) end [2025-03-08 02:42:18] Production.INFO: ProcessCDR(1,14632163,1,1,2) [2025-03-08 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632163', 'tblTempUsageDetail_20' ) start [2025-03-08 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632163', 'tblTempUsageDetail_20' ) end [2025-03-08 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:42:21] Production.INFO: ==16180== Releasing lock... [2025-03-08 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:42:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:43:05 [end_date_ymd] => 2025-03-08 02:43:05 [RateCDR] => 1 ) [2025-03-08 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:43:05' and `end` < '2025-03-08 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:43:17] Production.INFO: count ==846 [2025-03-08 02:43:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:43:05 - End Time 2025-03-08 02:43:05 [2025-03-08 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632168', 'tblTempUsageDetail_20' ) start [2025-03-08 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632168', 'tblTempUsageDetail_20' ) end [2025-03-08 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632168', 'tblTempVendorCDR_20' ) start [2025-03-08 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632168', 'tblTempVendorCDR_20' ) end [2025-03-08 02:43:17] Production.INFO: ProcessCDR(1,14632168,1,1,2) [2025-03-08 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632168', 'tblTempUsageDetail_20' ) start [2025-03-08 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632168', 'tblTempUsageDetail_20' ) end [2025-03-08 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:43:21] Production.INFO: ==16268== Releasing lock... [2025-03-08 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:43:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:44:05 [end_date_ymd] => 2025-03-08 02:44:05 [RateCDR] => 1 ) [2025-03-08 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:44:05' and `end` < '2025-03-08 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:44:17] Production.INFO: count ==852 [2025-03-08 02:44:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:44:05 - End Time 2025-03-08 02:44:05 [2025-03-08 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632173', 'tblTempUsageDetail_20' ) start [2025-03-08 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632173', 'tblTempUsageDetail_20' ) end [2025-03-08 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632173', 'tblTempVendorCDR_20' ) start [2025-03-08 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632173', 'tblTempVendorCDR_20' ) end [2025-03-08 02:44:17] Production.INFO: ProcessCDR(1,14632173,1,1,2) [2025-03-08 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632173', 'tblTempUsageDetail_20' ) start [2025-03-08 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632173', 'tblTempUsageDetail_20' ) end [2025-03-08 02:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:44:20] Production.INFO: ==16352== Releasing lock... [2025-03-08 02:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:44:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:45:05 [end_date_ymd] => 2025-03-08 02:45:05 [RateCDR] => 1 ) [2025-03-08 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:45:05' and `end` < '2025-03-08 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:45:17] Production.INFO: count ==849 [2025-03-08 02:45:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:45:05 - End Time 2025-03-08 02:45:05 [2025-03-08 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632178', 'tblTempUsageDetail_20' ) start [2025-03-08 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632178', 'tblTempUsageDetail_20' ) end [2025-03-08 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632178', 'tblTempVendorCDR_20' ) start [2025-03-08 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632178', 'tblTempVendorCDR_20' ) end [2025-03-08 02:45:17] Production.INFO: ProcessCDR(1,14632178,1,1,2) [2025-03-08 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632178', 'tblTempUsageDetail_20' ) start [2025-03-08 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632178', 'tblTempUsageDetail_20' ) end [2025-03-08 02:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:45:20] Production.INFO: ==16446== Releasing lock... [2025-03-08 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:45:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:46:05 [end_date_ymd] => 2025-03-08 02:46:05 [RateCDR] => 1 ) [2025-03-08 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:46:05' and `end` < '2025-03-08 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:46:17] Production.INFO: count ==848 [2025-03-08 02:46:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:46:05 - End Time 2025-03-08 02:46:05 [2025-03-08 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632183', 'tblTempUsageDetail_20' ) start [2025-03-08 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632183', 'tblTempUsageDetail_20' ) end [2025-03-08 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632183', 'tblTempVendorCDR_20' ) start [2025-03-08 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632183', 'tblTempVendorCDR_20' ) end [2025-03-08 02:46:17] Production.INFO: ProcessCDR(1,14632183,1,1,2) [2025-03-08 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632183', 'tblTempUsageDetail_20' ) start [2025-03-08 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632183', 'tblTempUsageDetail_20' ) end [2025-03-08 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:46:21] Production.INFO: ==16527== Releasing lock... [2025-03-08 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:46:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:47:06 [end_date_ymd] => 2025-03-08 02:47:06 [RateCDR] => 1 ) [2025-03-08 02:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:47:06' and `end` < '2025-03-08 02:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:47:18] Production.INFO: count ==849 [2025-03-08 02:47:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:47:06 - End Time 2025-03-08 02:47:06 [2025-03-08 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632188', 'tblTempUsageDetail_20' ) start [2025-03-08 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632188', 'tblTempUsageDetail_20' ) end [2025-03-08 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632188', 'tblTempVendorCDR_20' ) start [2025-03-08 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632188', 'tblTempVendorCDR_20' ) end [2025-03-08 02:47:18] Production.INFO: ProcessCDR(1,14632188,1,1,2) [2025-03-08 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632188', 'tblTempUsageDetail_20' ) start [2025-03-08 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632188', 'tblTempUsageDetail_20' ) end [2025-03-08 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:47:21] Production.INFO: ==16652== Releasing lock... [2025-03-08 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:47:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:48:05 [end_date_ymd] => 2025-03-08 02:48:05 [RateCDR] => 1 ) [2025-03-08 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:48:05' and `end` < '2025-03-08 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:48:17] Production.INFO: count ==849 [2025-03-08 02:48:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:48:05 - End Time 2025-03-08 02:48:05 [2025-03-08 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632193', 'tblTempUsageDetail_20' ) start [2025-03-08 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632193', 'tblTempUsageDetail_20' ) end [2025-03-08 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632193', 'tblTempVendorCDR_20' ) start [2025-03-08 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632193', 'tblTempVendorCDR_20' ) end [2025-03-08 02:48:17] Production.INFO: ProcessCDR(1,14632193,1,1,2) [2025-03-08 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632193', 'tblTempUsageDetail_20' ) start [2025-03-08 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632193', 'tblTempUsageDetail_20' ) end [2025-03-08 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:48:21] Production.INFO: ==16740== Releasing lock... [2025-03-08 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:48:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:49:06 [end_date_ymd] => 2025-03-08 02:49:06 [RateCDR] => 1 ) [2025-03-08 02:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:49:06' and `end` < '2025-03-08 02:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:49:18] Production.INFO: count ==832 [2025-03-08 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:49:06 - End Time 2025-03-08 02:49:06 [2025-03-08 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632198', 'tblTempUsageDetail_20' ) start [2025-03-08 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632198', 'tblTempUsageDetail_20' ) end [2025-03-08 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632198', 'tblTempVendorCDR_20' ) start [2025-03-08 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632198', 'tblTempVendorCDR_20' ) end [2025-03-08 02:49:18] Production.INFO: ProcessCDR(1,14632198,1,1,2) [2025-03-08 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632198', 'tblTempUsageDetail_20' ) start [2025-03-08 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632198', 'tblTempUsageDetail_20' ) end [2025-03-08 02:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:49:23] Production.INFO: ==16825== Releasing lock... [2025-03-08 02:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:49:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:50:06 [end_date_ymd] => 2025-03-08 02:50:06 [RateCDR] => 1 ) [2025-03-08 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:50:06' and `end` < '2025-03-08 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:50:18] Production.INFO: count ==822 [2025-03-08 02:50:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:50:06 - End Time 2025-03-08 02:50:06 [2025-03-08 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632204', 'tblTempUsageDetail_20' ) start [2025-03-08 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632204', 'tblTempUsageDetail_20' ) end [2025-03-08 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632204', 'tblTempVendorCDR_20' ) start [2025-03-08 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632204', 'tblTempVendorCDR_20' ) end [2025-03-08 02:50:18] Production.INFO: ProcessCDR(1,14632204,1,1,2) [2025-03-08 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632204', 'tblTempUsageDetail_20' ) start [2025-03-08 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632204', 'tblTempUsageDetail_20' ) end [2025-03-08 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:50:23] Production.INFO: ==16909== Releasing lock... [2025-03-08 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:50:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:51:05 [end_date_ymd] => 2025-03-08 02:51:05 [RateCDR] => 1 ) [2025-03-08 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:51:05' and `end` < '2025-03-08 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:51:17] Production.INFO: count ==806 [2025-03-08 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:51:05 - End Time 2025-03-08 02:51:05 [2025-03-08 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632209', 'tblTempUsageDetail_20' ) start [2025-03-08 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632209', 'tblTempUsageDetail_20' ) end [2025-03-08 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632209', 'tblTempVendorCDR_20' ) start [2025-03-08 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632209', 'tblTempVendorCDR_20' ) end [2025-03-08 02:51:18] Production.INFO: ProcessCDR(1,14632209,1,1,2) [2025-03-08 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632209', 'tblTempUsageDetail_20' ) start [2025-03-08 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632209', 'tblTempUsageDetail_20' ) end [2025-03-08 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:51:21] Production.INFO: ==16996== Releasing lock... [2025-03-08 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:51:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:52:05 [end_date_ymd] => 2025-03-08 02:52:05 [RateCDR] => 1 ) [2025-03-08 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:52:05' and `end` < '2025-03-08 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:52:17] Production.INFO: count ==799 [2025-03-08 02:52:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:52:05 - End Time 2025-03-08 02:52:05 [2025-03-08 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632214', 'tblTempUsageDetail_20' ) start [2025-03-08 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632214', 'tblTempUsageDetail_20' ) end [2025-03-08 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632214', 'tblTempVendorCDR_20' ) start [2025-03-08 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632214', 'tblTempVendorCDR_20' ) end [2025-03-08 02:52:18] Production.INFO: ProcessCDR(1,14632214,1,1,2) [2025-03-08 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632214', 'tblTempUsageDetail_20' ) start [2025-03-08 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632214', 'tblTempUsageDetail_20' ) end [2025-03-08 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:52:21] Production.INFO: ==17078== Releasing lock... [2025-03-08 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:52:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:53:06 [end_date_ymd] => 2025-03-08 02:53:06 [RateCDR] => 1 ) [2025-03-08 02:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:53:06' and `end` < '2025-03-08 02:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:53:18] Production.INFO: count ==802 [2025-03-08 02:53:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:53:06 - End Time 2025-03-08 02:53:06 [2025-03-08 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632219', 'tblTempUsageDetail_20' ) start [2025-03-08 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632219', 'tblTempUsageDetail_20' ) end [2025-03-08 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632219', 'tblTempVendorCDR_20' ) start [2025-03-08 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632219', 'tblTempVendorCDR_20' ) end [2025-03-08 02:53:18] Production.INFO: ProcessCDR(1,14632219,1,1,2) [2025-03-08 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632219', 'tblTempUsageDetail_20' ) start [2025-03-08 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632219', 'tblTempUsageDetail_20' ) end [2025-03-08 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:53:22] Production.INFO: ==17157== Releasing lock... [2025-03-08 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:53:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:54:05 [end_date_ymd] => 2025-03-08 02:54:05 [RateCDR] => 1 ) [2025-03-08 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:54:05' and `end` < '2025-03-08 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:54:17] Production.INFO: count ==801 [2025-03-08 02:54:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:54:05 - End Time 2025-03-08 02:54:05 [2025-03-08 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632224', 'tblTempUsageDetail_20' ) start [2025-03-08 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632224', 'tblTempUsageDetail_20' ) end [2025-03-08 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632224', 'tblTempVendorCDR_20' ) start [2025-03-08 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632224', 'tblTempVendorCDR_20' ) end [2025-03-08 02:54:17] Production.INFO: ProcessCDR(1,14632224,1,1,2) [2025-03-08 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632224', 'tblTempUsageDetail_20' ) start [2025-03-08 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632224', 'tblTempUsageDetail_20' ) end [2025-03-08 02:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:54:20] Production.INFO: ==17243== Releasing lock... [2025-03-08 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:54:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:55:05 [end_date_ymd] => 2025-03-08 02:55:05 [RateCDR] => 1 ) [2025-03-08 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:55:05' and `end` < '2025-03-08 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:55:17] Production.INFO: count ==799 [2025-03-08 02:55:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:55:05 - End Time 2025-03-08 02:55:05 [2025-03-08 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632229', 'tblTempUsageDetail_20' ) start [2025-03-08 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632229', 'tblTempUsageDetail_20' ) end [2025-03-08 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632229', 'tblTempVendorCDR_20' ) start [2025-03-08 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632229', 'tblTempVendorCDR_20' ) end [2025-03-08 02:55:17] Production.INFO: ProcessCDR(1,14632229,1,1,2) [2025-03-08 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632229', 'tblTempUsageDetail_20' ) start [2025-03-08 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632229', 'tblTempUsageDetail_20' ) end [2025-03-08 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:55:21] Production.INFO: ==17322== Releasing lock... [2025-03-08 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:55:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:56:05 [end_date_ymd] => 2025-03-08 02:56:05 [RateCDR] => 1 ) [2025-03-08 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:56:05' and `end` < '2025-03-08 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:56:17] Production.INFO: count ==795 [2025-03-08 02:56:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:56:05 - End Time 2025-03-08 02:56:05 [2025-03-08 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632234', 'tblTempUsageDetail_20' ) start [2025-03-08 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632234', 'tblTempUsageDetail_20' ) end [2025-03-08 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632234', 'tblTempVendorCDR_20' ) start [2025-03-08 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632234', 'tblTempVendorCDR_20' ) end [2025-03-08 02:56:17] Production.INFO: ProcessCDR(1,14632234,1,1,2) [2025-03-08 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632234', 'tblTempUsageDetail_20' ) start [2025-03-08 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632234', 'tblTempUsageDetail_20' ) end [2025-03-08 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:56:21] Production.INFO: ==17406== Releasing lock... [2025-03-08 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:56:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:57:05 [end_date_ymd] => 2025-03-08 02:57:05 [RateCDR] => 1 ) [2025-03-08 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:57:05' and `end` < '2025-03-08 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:57:17] Production.INFO: count ==792 [2025-03-08 02:57:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:57:05 - End Time 2025-03-08 02:57:05 [2025-03-08 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632239', 'tblTempUsageDetail_20' ) start [2025-03-08 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632239', 'tblTempUsageDetail_20' ) end [2025-03-08 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632239', 'tblTempVendorCDR_20' ) start [2025-03-08 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632239', 'tblTempVendorCDR_20' ) end [2025-03-08 02:57:17] Production.INFO: ProcessCDR(1,14632239,1,1,2) [2025-03-08 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632239', 'tblTempUsageDetail_20' ) start [2025-03-08 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632239', 'tblTempUsageDetail_20' ) end [2025-03-08 02:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:57:20] Production.INFO: ==17491== Releasing lock... [2025-03-08 02:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:57:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:58:05 [end_date_ymd] => 2025-03-08 02:58:05 [RateCDR] => 1 ) [2025-03-08 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:58:05' and `end` < '2025-03-08 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:58:17] Production.INFO: count ==791 [2025-03-08 02:58:17] Production.ERROR: pbx CDR StartTime 2025-03-07 23:58:05 - End Time 2025-03-08 02:58:05 [2025-03-08 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632244', 'tblTempUsageDetail_20' ) start [2025-03-08 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632244', 'tblTempUsageDetail_20' ) end [2025-03-08 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632244', 'tblTempVendorCDR_20' ) start [2025-03-08 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632244', 'tblTempVendorCDR_20' ) end [2025-03-08 02:58:18] Production.INFO: ProcessCDR(1,14632244,1,1,2) [2025-03-08 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632244', 'tblTempUsageDetail_20' ) start [2025-03-08 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632244', 'tblTempUsageDetail_20' ) end [2025-03-08 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:58:21] Production.INFO: ==17571== Releasing lock... [2025-03-08 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:58:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-07 23:59:06 [end_date_ymd] => 2025-03-08 02:59:06 [RateCDR] => 1 ) [2025-03-08 02:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-07 23:59:06' and `end` < '2025-03-08 02:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 02:59:18] Production.INFO: count ==787 [2025-03-08 02:59:18] Production.ERROR: pbx CDR StartTime 2025-03-07 23:59:06 - End Time 2025-03-08 02:59:06 [2025-03-08 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632249', 'tblTempUsageDetail_20' ) start [2025-03-08 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632249', 'tblTempUsageDetail_20' ) end [2025-03-08 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632249', 'tblTempVendorCDR_20' ) start [2025-03-08 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632249', 'tblTempVendorCDR_20' ) end [2025-03-08 02:59:18] Production.INFO: ProcessCDR(1,14632249,1,1,2) [2025-03-08 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632249', 'tblTempUsageDetail_20' ) start [2025-03-08 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632249', 'tblTempUsageDetail_20' ) end [2025-03-08 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 02:59:21] Production.INFO: ==17654== Releasing lock... [2025-03-08 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 02:59:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:00:05 [end_date_ymd] => 2025-03-08 03:00:05 [RateCDR] => 1 ) [2025-03-08 03:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:00:05' and `end` < '2025-03-08 03:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:00:17] Production.INFO: count ==792 [2025-03-08 03:00:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:00:05 - End Time 2025-03-08 03:00:05 [2025-03-08 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632255', 'tblTempUsageDetail_20' ) start [2025-03-08 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632255', 'tblTempUsageDetail_20' ) end [2025-03-08 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632255', 'tblTempVendorCDR_20' ) start [2025-03-08 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632255', 'tblTempVendorCDR_20' ) end [2025-03-08 03:00:18] Production.INFO: ProcessCDR(1,14632255,1,1,2) [2025-03-08 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632255', 'tblTempUsageDetail_20' ) start [2025-03-08 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632255', 'tblTempUsageDetail_20' ) end [2025-03-08 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:00:21] Production.INFO: ==17735== Releasing lock... [2025-03-08 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:00:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:01:06 [end_date_ymd] => 2025-03-08 03:01:06 [RateCDR] => 1 ) [2025-03-08 03:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:01:06' and `end` < '2025-03-08 03:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:01:18] Production.INFO: count ==788 [2025-03-08 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:01:06 - End Time 2025-03-08 03:01:06 [2025-03-08 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632260', 'tblTempUsageDetail_20' ) start [2025-03-08 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632260', 'tblTempUsageDetail_20' ) end [2025-03-08 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632260', 'tblTempVendorCDR_20' ) start [2025-03-08 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632260', 'tblTempVendorCDR_20' ) end [2025-03-08 03:01:18] Production.INFO: ProcessCDR(1,14632260,1,1,2) [2025-03-08 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632260', 'tblTempUsageDetail_20' ) start [2025-03-08 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632260', 'tblTempUsageDetail_20' ) end [2025-03-08 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:01:21] Production.INFO: ==17833== Releasing lock... [2025-03-08 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:01:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:02:05 [end_date_ymd] => 2025-03-08 03:02:05 [RateCDR] => 1 ) [2025-03-08 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:02:05' and `end` < '2025-03-08 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:02:17] Production.INFO: count ==788 [2025-03-08 03:02:17] Production.ERROR: pbx CDR StartTime 2025-03-08 00:02:05 - End Time 2025-03-08 03:02:05 [2025-03-08 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632265', 'tblTempUsageDetail_20' ) start [2025-03-08 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632265', 'tblTempUsageDetail_20' ) end [2025-03-08 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632265', 'tblTempVendorCDR_20' ) start [2025-03-08 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632265', 'tblTempVendorCDR_20' ) end [2025-03-08 03:02:17] Production.INFO: ProcessCDR(1,14632265,1,1,2) [2025-03-08 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632265', 'tblTempUsageDetail_20' ) start [2025-03-08 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632265', 'tblTempUsageDetail_20' ) end [2025-03-08 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:02:21] Production.INFO: ==18031== Releasing lock... [2025-03-08 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:02:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:03:05 [end_date_ymd] => 2025-03-08 03:03:05 [RateCDR] => 1 ) [2025-03-08 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:03:05' and `end` < '2025-03-08 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:03:17] Production.INFO: count ==790 [2025-03-08 03:03:17] Production.ERROR: pbx CDR StartTime 2025-03-08 00:03:05 - End Time 2025-03-08 03:03:05 [2025-03-08 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632270', 'tblTempUsageDetail_20' ) start [2025-03-08 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632270', 'tblTempUsageDetail_20' ) end [2025-03-08 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632270', 'tblTempVendorCDR_20' ) start [2025-03-08 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632270', 'tblTempVendorCDR_20' ) end [2025-03-08 03:03:18] Production.INFO: ProcessCDR(1,14632270,1,1,2) [2025-03-08 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632270', 'tblTempUsageDetail_20' ) start [2025-03-08 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632270', 'tblTempUsageDetail_20' ) end [2025-03-08 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:03:21] Production.INFO: ==18118== Releasing lock... [2025-03-08 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:03:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:04:06 [end_date_ymd] => 2025-03-08 03:04:06 [RateCDR] => 1 ) [2025-03-08 03:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:04:06' and `end` < '2025-03-08 03:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:04:18] Production.INFO: count ==778 [2025-03-08 03:04:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:04:06 - End Time 2025-03-08 03:04:06 [2025-03-08 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632275', 'tblTempUsageDetail_20' ) start [2025-03-08 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632275', 'tblTempUsageDetail_20' ) end [2025-03-08 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632275', 'tblTempVendorCDR_20' ) start [2025-03-08 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632275', 'tblTempVendorCDR_20' ) end [2025-03-08 03:04:19] Production.INFO: ProcessCDR(1,14632275,1,1,2) [2025-03-08 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632275', 'tblTempUsageDetail_20' ) start [2025-03-08 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632275', 'tblTempUsageDetail_20' ) end [2025-03-08 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:04:22] Production.INFO: ==18202== Releasing lock... [2025-03-08 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:04:22] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:05:05 [end_date_ymd] => 2025-03-08 03:05:05 [RateCDR] => 1 ) [2025-03-08 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:05:05' and `end` < '2025-03-08 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:05:17] Production.INFO: count ==769 [2025-03-08 03:05:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:05:05 - End Time 2025-03-08 03:05:05 [2025-03-08 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632280', 'tblTempUsageDetail_20' ) start [2025-03-08 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632280', 'tblTempUsageDetail_20' ) end [2025-03-08 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632280', 'tblTempVendorCDR_20' ) start [2025-03-08 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632280', 'tblTempVendorCDR_20' ) end [2025-03-08 03:05:18] Production.INFO: ProcessCDR(1,14632280,1,1,2) [2025-03-08 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632280', 'tblTempUsageDetail_20' ) start [2025-03-08 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632280', 'tblTempUsageDetail_20' ) end [2025-03-08 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:05:21] Production.INFO: ==18280== Releasing lock... [2025-03-08 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:05:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:06:06 [end_date_ymd] => 2025-03-08 03:06:06 [RateCDR] => 1 ) [2025-03-08 03:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:06:06' and `end` < '2025-03-08 03:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:06:18] Production.INFO: count ==761 [2025-03-08 03:06:19] Production.ERROR: pbx CDR StartTime 2025-03-08 00:06:06 - End Time 2025-03-08 03:06:06 [2025-03-08 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632285', 'tblTempUsageDetail_20' ) start [2025-03-08 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632285', 'tblTempUsageDetail_20' ) end [2025-03-08 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632285', 'tblTempVendorCDR_20' ) start [2025-03-08 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632285', 'tblTempVendorCDR_20' ) end [2025-03-08 03:06:19] Production.INFO: ProcessCDR(1,14632285,1,1,2) [2025-03-08 03:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632285', 'tblTempUsageDetail_20' ) start [2025-03-08 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632285', 'tblTempUsageDetail_20' ) end [2025-03-08 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:06:22] Production.INFO: ==18443== Releasing lock... [2025-03-08 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:06:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:07:05 [end_date_ymd] => 2025-03-08 03:07:05 [RateCDR] => 1 ) [2025-03-08 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:07:05' and `end` < '2025-03-08 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:07:17] Production.INFO: count ==751 [2025-03-08 03:07:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:07:05 - End Time 2025-03-08 03:07:05 [2025-03-08 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632290', 'tblTempUsageDetail_20' ) start [2025-03-08 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632290', 'tblTempUsageDetail_20' ) end [2025-03-08 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632290', 'tblTempVendorCDR_20' ) start [2025-03-08 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632290', 'tblTempVendorCDR_20' ) end [2025-03-08 03:07:18] Production.INFO: ProcessCDR(1,14632290,1,1,2) [2025-03-08 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632290', 'tblTempUsageDetail_20' ) start [2025-03-08 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632290', 'tblTempUsageDetail_20' ) end [2025-03-08 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:07:21] Production.INFO: ==18522== Releasing lock... [2025-03-08 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:07:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:08:06 [end_date_ymd] => 2025-03-08 03:08:06 [RateCDR] => 1 ) [2025-03-08 03:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:08:06' and `end` < '2025-03-08 03:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:08:18] Production.INFO: count ==747 [2025-03-08 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:08:06 - End Time 2025-03-08 03:08:06 [2025-03-08 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632295', 'tblTempUsageDetail_20' ) start [2025-03-08 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632295', 'tblTempUsageDetail_20' ) end [2025-03-08 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632295', 'tblTempVendorCDR_20' ) start [2025-03-08 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632295', 'tblTempVendorCDR_20' ) end [2025-03-08 03:08:18] Production.INFO: ProcessCDR(1,14632295,1,1,2) [2025-03-08 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632295', 'tblTempUsageDetail_20' ) start [2025-03-08 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632295', 'tblTempUsageDetail_20' ) end [2025-03-08 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:08:21] Production.INFO: ==18606== Releasing lock... [2025-03-08 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:08:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:09:06 [end_date_ymd] => 2025-03-08 03:09:06 [RateCDR] => 1 ) [2025-03-08 03:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:09:06' and `end` < '2025-03-08 03:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:09:18] Production.INFO: count ==740 [2025-03-08 03:09:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:09:06 - End Time 2025-03-08 03:09:06 [2025-03-08 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632300', 'tblTempUsageDetail_20' ) start [2025-03-08 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632300', 'tblTempUsageDetail_20' ) end [2025-03-08 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632300', 'tblTempVendorCDR_20' ) start [2025-03-08 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632300', 'tblTempVendorCDR_20' ) end [2025-03-08 03:09:18] Production.INFO: ProcessCDR(1,14632300,1,1,2) [2025-03-08 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632300', 'tblTempUsageDetail_20' ) start [2025-03-08 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632300', 'tblTempUsageDetail_20' ) end [2025-03-08 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:09:21] Production.INFO: ==18765== Releasing lock... [2025-03-08 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:09:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:10:07 [end_date_ymd] => 2025-03-08 03:10:07 [RateCDR] => 1 ) [2025-03-08 03:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:10:07' and `end` < '2025-03-08 03:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:10:19] Production.INFO: count ==732 [2025-03-08 03:10:19] Production.ERROR: pbx CDR StartTime 2025-03-08 00:10:07 - End Time 2025-03-08 03:10:07 [2025-03-08 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632306', 'tblTempUsageDetail_20' ) start [2025-03-08 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632306', 'tblTempUsageDetail_20' ) end [2025-03-08 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632306', 'tblTempVendorCDR_20' ) start [2025-03-08 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632306', 'tblTempVendorCDR_20' ) end [2025-03-08 03:10:19] Production.INFO: ProcessCDR(1,14632306,1,1,2) [2025-03-08 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632306', 'tblTempUsageDetail_20' ) start [2025-03-08 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632306', 'tblTempUsageDetail_20' ) end [2025-03-08 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:10:22] Production.INFO: ==18854== Releasing lock... [2025-03-08 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:11:05 [end_date_ymd] => 2025-03-08 03:11:05 [RateCDR] => 1 ) [2025-03-08 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:11:05' and `end` < '2025-03-08 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:11:17] Production.INFO: count ==704 [2025-03-08 03:11:17] Production.ERROR: pbx CDR StartTime 2025-03-08 00:11:05 - End Time 2025-03-08 03:11:05 [2025-03-08 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632311', 'tblTempUsageDetail_20' ) start [2025-03-08 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632311', 'tblTempUsageDetail_20' ) end [2025-03-08 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632311', 'tblTempVendorCDR_20' ) start [2025-03-08 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632311', 'tblTempVendorCDR_20' ) end [2025-03-08 03:11:17] Production.INFO: ProcessCDR(1,14632311,1,1,2) [2025-03-08 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632311', 'tblTempUsageDetail_20' ) start [2025-03-08 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632311', 'tblTempUsageDetail_20' ) end [2025-03-08 03:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:11:20] Production.INFO: ==18936== Releasing lock... [2025-03-08 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:11:20] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:12:06 [end_date_ymd] => 2025-03-08 03:12:06 [RateCDR] => 1 ) [2025-03-08 03:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:12:06' and `end` < '2025-03-08 03:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:12:18] Production.INFO: count ==707 [2025-03-08 03:12:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:12:06 - End Time 2025-03-08 03:12:06 [2025-03-08 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632316', 'tblTempUsageDetail_20' ) start [2025-03-08 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632316', 'tblTempUsageDetail_20' ) end [2025-03-08 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632316', 'tblTempVendorCDR_20' ) start [2025-03-08 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632316', 'tblTempVendorCDR_20' ) end [2025-03-08 03:12:18] Production.INFO: ProcessCDR(1,14632316,1,1,2) [2025-03-08 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632316', 'tblTempUsageDetail_20' ) start [2025-03-08 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632316', 'tblTempUsageDetail_20' ) end [2025-03-08 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:12:22] Production.INFO: ==19020== Releasing lock... [2025-03-08 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:12:22] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:13:05 [end_date_ymd] => 2025-03-08 03:13:05 [RateCDR] => 1 ) [2025-03-08 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:13:05' and `end` < '2025-03-08 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:13:17] Production.INFO: count ==726 [2025-03-08 03:13:17] Production.ERROR: pbx CDR StartTime 2025-03-08 00:13:05 - End Time 2025-03-08 03:13:05 [2025-03-08 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632321', 'tblTempUsageDetail_20' ) start [2025-03-08 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632321', 'tblTempUsageDetail_20' ) end [2025-03-08 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632321', 'tblTempVendorCDR_20' ) start [2025-03-08 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632321', 'tblTempVendorCDR_20' ) end [2025-03-08 03:13:18] Production.INFO: ProcessCDR(1,14632321,1,1,2) [2025-03-08 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632321', 'tblTempUsageDetail_20' ) start [2025-03-08 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632321', 'tblTempUsageDetail_20' ) end [2025-03-08 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:13:21] Production.INFO: ==19186== Releasing lock... [2025-03-08 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:13:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:14:06 [end_date_ymd] => 2025-03-08 03:14:06 [RateCDR] => 1 ) [2025-03-08 03:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:14:06' and `end` < '2025-03-08 03:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:14:18] Production.INFO: count ==729 [2025-03-08 03:14:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:14:06 - End Time 2025-03-08 03:14:06 [2025-03-08 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632326', 'tblTempUsageDetail_20' ) start [2025-03-08 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632326', 'tblTempUsageDetail_20' ) end [2025-03-08 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632326', 'tblTempVendorCDR_20' ) start [2025-03-08 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632326', 'tblTempVendorCDR_20' ) end [2025-03-08 03:14:18] Production.INFO: ProcessCDR(1,14632326,1,1,2) [2025-03-08 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632326', 'tblTempUsageDetail_20' ) start [2025-03-08 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632326', 'tblTempUsageDetail_20' ) end [2025-03-08 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:14:22] Production.INFO: ==19263== Releasing lock... [2025-03-08 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:14:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:15:05 [end_date_ymd] => 2025-03-08 03:15:05 [RateCDR] => 1 ) [2025-03-08 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:15:05' and `end` < '2025-03-08 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:15:17] Production.INFO: count ==727 [2025-03-08 03:15:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:15:05 - End Time 2025-03-08 03:15:05 [2025-03-08 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632331', 'tblTempUsageDetail_20' ) start [2025-03-08 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632331', 'tblTempUsageDetail_20' ) end [2025-03-08 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632331', 'tblTempVendorCDR_20' ) start [2025-03-08 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632331', 'tblTempVendorCDR_20' ) end [2025-03-08 03:15:18] Production.INFO: ProcessCDR(1,14632331,1,1,2) [2025-03-08 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632331', 'tblTempUsageDetail_20' ) start [2025-03-08 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632331', 'tblTempUsageDetail_20' ) end [2025-03-08 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:15:21] Production.INFO: ==19345== Releasing lock... [2025-03-08 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:15:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:16:06 [end_date_ymd] => 2025-03-08 03:16:06 [RateCDR] => 1 ) [2025-03-08 03:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:16:06' and `end` < '2025-03-08 03:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:16:18] Production.INFO: count ==733 [2025-03-08 03:16:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:16:06 - End Time 2025-03-08 03:16:06 [2025-03-08 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632336', 'tblTempUsageDetail_20' ) start [2025-03-08 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632336', 'tblTempUsageDetail_20' ) end [2025-03-08 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632336', 'tblTempVendorCDR_20' ) start [2025-03-08 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632336', 'tblTempVendorCDR_20' ) end [2025-03-08 03:16:18] Production.INFO: ProcessCDR(1,14632336,1,1,2) [2025-03-08 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632336', 'tblTempUsageDetail_20' ) start [2025-03-08 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632336', 'tblTempUsageDetail_20' ) end [2025-03-08 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:16:21] Production.INFO: ==19427== Releasing lock... [2025-03-08 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:16:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:17:05 [end_date_ymd] => 2025-03-08 03:17:05 [RateCDR] => 1 ) [2025-03-08 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:17:05' and `end` < '2025-03-08 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:17:17] Production.INFO: count ==739 [2025-03-08 03:17:17] Production.ERROR: pbx CDR StartTime 2025-03-08 00:17:05 - End Time 2025-03-08 03:17:05 [2025-03-08 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632341', 'tblTempUsageDetail_20' ) start [2025-03-08 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632341', 'tblTempUsageDetail_20' ) end [2025-03-08 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632341', 'tblTempVendorCDR_20' ) start [2025-03-08 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632341', 'tblTempVendorCDR_20' ) end [2025-03-08 03:17:17] Production.INFO: ProcessCDR(1,14632341,1,1,2) [2025-03-08 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632341', 'tblTempUsageDetail_20' ) start [2025-03-08 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632341', 'tblTempUsageDetail_20' ) end [2025-03-08 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:17:20] Production.INFO: ==19582== Releasing lock... [2025-03-08 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:17:20] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:18:06 [end_date_ymd] => 2025-03-08 03:18:06 [RateCDR] => 1 ) [2025-03-08 03:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:18:06' and `end` < '2025-03-08 03:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:18:18] Production.INFO: count ==735 [2025-03-08 03:18:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:18:06 - End Time 2025-03-08 03:18:06 [2025-03-08 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632346', 'tblTempUsageDetail_20' ) start [2025-03-08 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632346', 'tblTempUsageDetail_20' ) end [2025-03-08 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632346', 'tblTempVendorCDR_20' ) start [2025-03-08 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632346', 'tblTempVendorCDR_20' ) end [2025-03-08 03:18:18] Production.INFO: ProcessCDR(1,14632346,1,1,2) [2025-03-08 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632346', 'tblTempUsageDetail_20' ) start [2025-03-08 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632346', 'tblTempUsageDetail_20' ) end [2025-03-08 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:18:21] Production.INFO: ==19663== Releasing lock... [2025-03-08 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:18:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:19:05 [end_date_ymd] => 2025-03-08 03:19:05 [RateCDR] => 1 ) [2025-03-08 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:19:05' and `end` < '2025-03-08 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:19:17] Production.INFO: count ==741 [2025-03-08 03:19:17] Production.ERROR: pbx CDR StartTime 2025-03-08 00:19:05 - End Time 2025-03-08 03:19:05 [2025-03-08 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632351', 'tblTempUsageDetail_20' ) start [2025-03-08 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632351', 'tblTempUsageDetail_20' ) end [2025-03-08 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632351', 'tblTempVendorCDR_20' ) start [2025-03-08 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632351', 'tblTempVendorCDR_20' ) end [2025-03-08 03:19:17] Production.INFO: ProcessCDR(1,14632351,1,1,2) [2025-03-08 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632351', 'tblTempUsageDetail_20' ) start [2025-03-08 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632351', 'tblTempUsageDetail_20' ) end [2025-03-08 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:19:21] Production.INFO: ==19782== Releasing lock... [2025-03-08 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:19:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:20:06 [end_date_ymd] => 2025-03-08 03:20:06 [RateCDR] => 1 ) [2025-03-08 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:20:06' and `end` < '2025-03-08 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:20:18] Production.INFO: count ==748 [2025-03-08 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:20:06 - End Time 2025-03-08 03:20:06 [2025-03-08 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632356', 'tblTempUsageDetail_20' ) start [2025-03-08 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632356', 'tblTempUsageDetail_20' ) end [2025-03-08 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632356', 'tblTempVendorCDR_20' ) start [2025-03-08 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632356', 'tblTempVendorCDR_20' ) end [2025-03-08 03:20:18] Production.INFO: ProcessCDR(1,14632356,1,1,2) [2025-03-08 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632356', 'tblTempUsageDetail_20' ) start [2025-03-08 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632356', 'tblTempUsageDetail_20' ) end [2025-03-08 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:20:22] Production.INFO: ==19865== Releasing lock... [2025-03-08 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:20:22] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:21:05 [end_date_ymd] => 2025-03-08 03:21:05 [RateCDR] => 1 ) [2025-03-08 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:21:05' and `end` < '2025-03-08 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:21:17] Production.INFO: count ==753 [2025-03-08 03:21:17] Production.ERROR: pbx CDR StartTime 2025-03-08 00:21:05 - End Time 2025-03-08 03:21:05 [2025-03-08 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632362', 'tblTempUsageDetail_20' ) start [2025-03-08 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632362', 'tblTempUsageDetail_20' ) end [2025-03-08 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632362', 'tblTempVendorCDR_20' ) start [2025-03-08 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632362', 'tblTempVendorCDR_20' ) end [2025-03-08 03:21:17] Production.INFO: ProcessCDR(1,14632362,1,1,2) [2025-03-08 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632362', 'tblTempUsageDetail_20' ) start [2025-03-08 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632362', 'tblTempUsageDetail_20' ) end [2025-03-08 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:21:21] Production.INFO: ==19945== Releasing lock... [2025-03-08 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:21:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:22:05 [end_date_ymd] => 2025-03-08 03:22:05 [RateCDR] => 1 ) [2025-03-08 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:22:05' and `end` < '2025-03-08 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:22:17] Production.INFO: count ==753 [2025-03-08 03:22:17] Production.ERROR: pbx CDR StartTime 2025-03-08 00:22:05 - End Time 2025-03-08 03:22:05 [2025-03-08 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632367', 'tblTempUsageDetail_20' ) start [2025-03-08 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632367', 'tblTempUsageDetail_20' ) end [2025-03-08 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632367', 'tblTempVendorCDR_20' ) start [2025-03-08 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632367', 'tblTempVendorCDR_20' ) end [2025-03-08 03:22:17] Production.INFO: ProcessCDR(1,14632367,1,1,2) [2025-03-08 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632367', 'tblTempUsageDetail_20' ) start [2025-03-08 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632367', 'tblTempUsageDetail_20' ) end [2025-03-08 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:22:21] Production.INFO: ==20021== Releasing lock... [2025-03-08 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:22:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:23:05 [end_date_ymd] => 2025-03-08 03:23:05 [RateCDR] => 1 ) [2025-03-08 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:23:05' and `end` < '2025-03-08 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:23:17] Production.INFO: count ==753 [2025-03-08 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-08 00:23:05 - End Time 2025-03-08 03:23:05 [2025-03-08 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632372', 'tblTempUsageDetail_20' ) start [2025-03-08 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632372', 'tblTempUsageDetail_20' ) end [2025-03-08 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632372', 'tblTempVendorCDR_20' ) start [2025-03-08 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632372', 'tblTempVendorCDR_20' ) end [2025-03-08 03:23:17] Production.INFO: ProcessCDR(1,14632372,1,1,2) [2025-03-08 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632372', 'tblTempUsageDetail_20' ) start [2025-03-08 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632372', 'tblTempUsageDetail_20' ) end [2025-03-08 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:23:20] Production.INFO: ==20101== Releasing lock... [2025-03-08 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:23:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:24:05 [end_date_ymd] => 2025-03-08 03:24:05 [RateCDR] => 1 ) [2025-03-08 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:24:05' and `end` < '2025-03-08 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:24:17] Production.INFO: count ==753 [2025-03-08 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-08 00:24:05 - End Time 2025-03-08 03:24:05 [2025-03-08 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632377', 'tblTempUsageDetail_20' ) start [2025-03-08 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632377', 'tblTempUsageDetail_20' ) end [2025-03-08 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632377', 'tblTempVendorCDR_20' ) start [2025-03-08 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632377', 'tblTempVendorCDR_20' ) end [2025-03-08 03:24:17] Production.INFO: ProcessCDR(1,14632377,1,1,2) [2025-03-08 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632377', 'tblTempUsageDetail_20' ) start [2025-03-08 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632377', 'tblTempUsageDetail_20' ) end [2025-03-08 03:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:24:20] Production.INFO: ==20178== Releasing lock... [2025-03-08 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:24:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:25:05 [end_date_ymd] => 2025-03-08 03:25:05 [RateCDR] => 1 ) [2025-03-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-03-08 00:25:05' and `end` < '2025-03-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-03-08 03:25:17] Production.INFO: count ==754 [2025-03-08 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-08 00:25:05 - End Time 2025-03-08 03:25:05 [2025-03-08 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632382', 'tblTempUsageDetail_20' ) start [2025-03-08 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632382', 'tblTempUsageDetail_20' ) end [2025-03-08 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632382', 'tblTempVendorCDR_20' ) start [2025-03-08 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632382', 'tblTempVendorCDR_20' ) end [2025-03-08 03:25:17] Production.INFO: ProcessCDR(1,14632382,1,1,2) [2025-03-08 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632382', 'tblTempUsageDetail_20' ) start [2025-03-08 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632382', 'tblTempUsageDetail_20' ) end [2025-03-08 03:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:25:20] Production.INFO: ==20250== Releasing lock... [2025-03-08 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:25:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:26:05 [end_date_ymd] => 2025-03-08 03:26:05 [RateCDR] => 1 ) [2025-03-08 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:26:05' and `end` < '2025-03-08 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:26:17] Production.INFO: count ==755 [2025-03-08 03:26:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:26:05 - End Time 2025-03-08 03:26:05 [2025-03-08 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632387', 'tblTempUsageDetail_20' ) start [2025-03-08 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632387', 'tblTempUsageDetail_20' ) end [2025-03-08 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632387', 'tblTempVendorCDR_20' ) start [2025-03-08 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632387', 'tblTempVendorCDR_20' ) end [2025-03-08 03:26:18] Production.INFO: ProcessCDR(1,14632387,1,1,2) [2025-03-08 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632387', 'tblTempUsageDetail_20' ) start [2025-03-08 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632387', 'tblTempUsageDetail_20' ) end [2025-03-08 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:26:23] Production.INFO: ==20329== Releasing lock... [2025-03-08 03:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:26:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:27:06 [end_date_ymd] => 2025-03-08 03:27:06 [RateCDR] => 1 ) [2025-03-08 03:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:27:06' and `end` < '2025-03-08 03:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:27:18] Production.INFO: count ==755 [2025-03-08 03:27:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:27:06 - End Time 2025-03-08 03:27:06 [2025-03-08 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632392', 'tblTempUsageDetail_20' ) start [2025-03-08 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632392', 'tblTempUsageDetail_20' ) end [2025-03-08 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632392', 'tblTempVendorCDR_20' ) start [2025-03-08 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632392', 'tblTempVendorCDR_20' ) end [2025-03-08 03:27:19] Production.INFO: ProcessCDR(1,14632392,1,1,2) [2025-03-08 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632392', 'tblTempUsageDetail_20' ) start [2025-03-08 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632392', 'tblTempUsageDetail_20' ) end [2025-03-08 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:27:22] Production.INFO: ==20407== Releasing lock... [2025-03-08 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:27:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:28:05 [end_date_ymd] => 2025-03-08 03:28:05 [RateCDR] => 1 ) [2025-03-08 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:28:05' and `end` < '2025-03-08 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:28:18] Production.INFO: count ==757 [2025-03-08 03:28:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:28:05 - End Time 2025-03-08 03:28:05 [2025-03-08 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632397', 'tblTempUsageDetail_20' ) start [2025-03-08 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632397', 'tblTempUsageDetail_20' ) end [2025-03-08 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632397', 'tblTempVendorCDR_20' ) start [2025-03-08 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632397', 'tblTempVendorCDR_20' ) end [2025-03-08 03:28:18] Production.INFO: ProcessCDR(1,14632397,1,1,2) [2025-03-08 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632397', 'tblTempUsageDetail_20' ) start [2025-03-08 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632397', 'tblTempUsageDetail_20' ) end [2025-03-08 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:28:21] Production.INFO: ==20480== Releasing lock... [2025-03-08 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:28:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:29:06 [end_date_ymd] => 2025-03-08 03:29:06 [RateCDR] => 1 ) [2025-03-08 03:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:29:06' and `end` < '2025-03-08 03:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:29:18] Production.INFO: count ==756 [2025-03-08 03:29:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:29:06 - End Time 2025-03-08 03:29:06 [2025-03-08 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632402', 'tblTempUsageDetail_20' ) start [2025-03-08 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632402', 'tblTempUsageDetail_20' ) end [2025-03-08 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632402', 'tblTempVendorCDR_20' ) start [2025-03-08 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632402', 'tblTempVendorCDR_20' ) end [2025-03-08 03:29:18] Production.INFO: ProcessCDR(1,14632402,1,1,2) [2025-03-08 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632402', 'tblTempUsageDetail_20' ) start [2025-03-08 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632402', 'tblTempUsageDetail_20' ) end [2025-03-08 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:29:21] Production.INFO: ==20557== Releasing lock... [2025-03-08 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:29:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:30:06 [end_date_ymd] => 2025-03-08 03:30:06 [RateCDR] => 1 ) [2025-03-08 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:30:06' and `end` < '2025-03-08 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:30:18] Production.INFO: count ==762 [2025-03-08 03:30:19] Production.ERROR: pbx CDR StartTime 2025-03-08 00:30:06 - End Time 2025-03-08 03:30:06 [2025-03-08 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632408', 'tblTempUsageDetail_20' ) start [2025-03-08 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632408', 'tblTempUsageDetail_20' ) end [2025-03-08 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632408', 'tblTempVendorCDR_20' ) start [2025-03-08 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632408', 'tblTempVendorCDR_20' ) end [2025-03-08 03:30:19] Production.INFO: ProcessCDR(1,14632408,1,1,2) [2025-03-08 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632408', 'tblTempUsageDetail_20' ) start [2025-03-08 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632408', 'tblTempUsageDetail_20' ) end [2025-03-08 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:30:22] Production.INFO: ==20638== Releasing lock... [2025-03-08 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:30:22] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:31:05 [end_date_ymd] => 2025-03-08 03:31:05 [RateCDR] => 1 ) [2025-03-08 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:31:05' and `end` < '2025-03-08 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:31:17] Production.INFO: count ==759 [2025-03-08 03:31:17] Production.ERROR: pbx CDR StartTime 2025-03-08 00:31:05 - End Time 2025-03-08 03:31:05 [2025-03-08 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632413', 'tblTempUsageDetail_20' ) start [2025-03-08 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632413', 'tblTempUsageDetail_20' ) end [2025-03-08 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632413', 'tblTempVendorCDR_20' ) start [2025-03-08 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632413', 'tblTempVendorCDR_20' ) end [2025-03-08 03:31:17] Production.INFO: ProcessCDR(1,14632413,1,1,2) [2025-03-08 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632413', 'tblTempUsageDetail_20' ) start [2025-03-08 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632413', 'tblTempUsageDetail_20' ) end [2025-03-08 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:31:21] Production.INFO: ==20712== Releasing lock... [2025-03-08 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:31:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:32:06 [end_date_ymd] => 2025-03-08 03:32:06 [RateCDR] => 1 ) [2025-03-08 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:32:06' and `end` < '2025-03-08 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:32:18] Production.INFO: count ==758 [2025-03-08 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:32:06 - End Time 2025-03-08 03:32:06 [2025-03-08 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632418', 'tblTempUsageDetail_20' ) start [2025-03-08 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632418', 'tblTempUsageDetail_20' ) end [2025-03-08 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632418', 'tblTempVendorCDR_20' ) start [2025-03-08 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632418', 'tblTempVendorCDR_20' ) end [2025-03-08 03:32:18] Production.INFO: ProcessCDR(1,14632418,1,1,2) [2025-03-08 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632418', 'tblTempUsageDetail_20' ) start [2025-03-08 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632418', 'tblTempUsageDetail_20' ) end [2025-03-08 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:32:22] Production.INFO: ==20787== Releasing lock... [2025-03-08 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:32:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:33:05 [end_date_ymd] => 2025-03-08 03:33:05 [RateCDR] => 1 ) [2025-03-08 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:33:05' and `end` < '2025-03-08 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:33:17] Production.INFO: count ==758 [2025-03-08 03:33:17] Production.ERROR: pbx CDR StartTime 2025-03-08 00:33:05 - End Time 2025-03-08 03:33:05 [2025-03-08 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632423', 'tblTempUsageDetail_20' ) start [2025-03-08 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632423', 'tblTempUsageDetail_20' ) end [2025-03-08 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632423', 'tblTempVendorCDR_20' ) start [2025-03-08 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632423', 'tblTempVendorCDR_20' ) end [2025-03-08 03:33:17] Production.INFO: ProcessCDR(1,14632423,1,1,2) [2025-03-08 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632423', 'tblTempUsageDetail_20' ) start [2025-03-08 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632423', 'tblTempUsageDetail_20' ) end [2025-03-08 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:33:21] Production.INFO: ==20859== Releasing lock... [2025-03-08 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:33:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:34:05 [end_date_ymd] => 2025-03-08 03:34:05 [RateCDR] => 1 ) [2025-03-08 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:34:05' and `end` < '2025-03-08 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:34:18] Production.INFO: count ==761 [2025-03-08 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:34:05 - End Time 2025-03-08 03:34:05 [2025-03-08 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632428', 'tblTempUsageDetail_20' ) start [2025-03-08 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632428', 'tblTempUsageDetail_20' ) end [2025-03-08 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632428', 'tblTempVendorCDR_20' ) start [2025-03-08 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632428', 'tblTempVendorCDR_20' ) end [2025-03-08 03:34:18] Production.INFO: ProcessCDR(1,14632428,1,1,2) [2025-03-08 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632428', 'tblTempUsageDetail_20' ) start [2025-03-08 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632428', 'tblTempUsageDetail_20' ) end [2025-03-08 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:34:22] Production.INFO: ==20934== Releasing lock... [2025-03-08 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:34:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:35:06 [end_date_ymd] => 2025-03-08 03:35:06 [RateCDR] => 1 ) [2025-03-08 03:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:35:06' and `end` < '2025-03-08 03:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:35:18] Production.INFO: count ==758 [2025-03-08 03:35:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:35:06 - End Time 2025-03-08 03:35:06 [2025-03-08 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632433', 'tblTempUsageDetail_20' ) start [2025-03-08 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632433', 'tblTempUsageDetail_20' ) end [2025-03-08 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632433', 'tblTempVendorCDR_20' ) start [2025-03-08 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632433', 'tblTempVendorCDR_20' ) end [2025-03-08 03:35:18] Production.INFO: ProcessCDR(1,14632433,1,1,2) [2025-03-08 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632433', 'tblTempUsageDetail_20' ) start [2025-03-08 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632433', 'tblTempUsageDetail_20' ) end [2025-03-08 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:35:21] Production.INFO: ==21049== Releasing lock... [2025-03-08 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:35:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:36:05 [end_date_ymd] => 2025-03-08 03:36:05 [RateCDR] => 1 ) [2025-03-08 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:36:05' and `end` < '2025-03-08 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:36:17] Production.INFO: count ==758 [2025-03-08 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:36:05 - End Time 2025-03-08 03:36:05 [2025-03-08 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632438', 'tblTempUsageDetail_20' ) start [2025-03-08 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632438', 'tblTempUsageDetail_20' ) end [2025-03-08 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632438', 'tblTempVendorCDR_20' ) start [2025-03-08 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632438', 'tblTempVendorCDR_20' ) end [2025-03-08 03:36:18] Production.INFO: ProcessCDR(1,14632438,1,1,2) [2025-03-08 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632438', 'tblTempUsageDetail_20' ) start [2025-03-08 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632438', 'tblTempUsageDetail_20' ) end [2025-03-08 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:36:21] Production.INFO: ==21128== Releasing lock... [2025-03-08 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:36:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:37:05 [end_date_ymd] => 2025-03-08 03:37:05 [RateCDR] => 1 ) [2025-03-08 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:37:05' and `end` < '2025-03-08 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:37:17] Production.INFO: count ==754 [2025-03-08 03:37:17] Production.ERROR: pbx CDR StartTime 2025-03-08 00:37:05 - End Time 2025-03-08 03:37:05 [2025-03-08 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632443', 'tblTempUsageDetail_20' ) start [2025-03-08 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632443', 'tblTempUsageDetail_20' ) end [2025-03-08 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632443', 'tblTempVendorCDR_20' ) start [2025-03-08 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632443', 'tblTempVendorCDR_20' ) end [2025-03-08 03:37:17] Production.INFO: ProcessCDR(1,14632443,1,1,2) [2025-03-08 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632443', 'tblTempUsageDetail_20' ) start [2025-03-08 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632443', 'tblTempUsageDetail_20' ) end [2025-03-08 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:37:21] Production.INFO: ==21199== Releasing lock... [2025-03-08 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:37:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:38:05 [end_date_ymd] => 2025-03-08 03:38:05 [RateCDR] => 1 ) [2025-03-08 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:38:05' and `end` < '2025-03-08 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:38:17] Production.INFO: count ==750 [2025-03-08 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:38:05 - End Time 2025-03-08 03:38:05 [2025-03-08 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632448', 'tblTempUsageDetail_20' ) start [2025-03-08 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632448', 'tblTempUsageDetail_20' ) end [2025-03-08 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632448', 'tblTempVendorCDR_20' ) start [2025-03-08 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632448', 'tblTempVendorCDR_20' ) end [2025-03-08 03:38:18] Production.INFO: ProcessCDR(1,14632448,1,1,2) [2025-03-08 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632448', 'tblTempUsageDetail_20' ) start [2025-03-08 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632448', 'tblTempUsageDetail_20' ) end [2025-03-08 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:38:21] Production.INFO: ==21289== Releasing lock... [2025-03-08 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:38:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:39:05 [end_date_ymd] => 2025-03-08 03:39:05 [RateCDR] => 1 ) [2025-03-08 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:39:05' and `end` < '2025-03-08 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:39:17] Production.INFO: count ==740 [2025-03-08 03:39:17] Production.ERROR: pbx CDR StartTime 2025-03-08 00:39:05 - End Time 2025-03-08 03:39:05 [2025-03-08 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632453', 'tblTempUsageDetail_20' ) start [2025-03-08 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632453', 'tblTempUsageDetail_20' ) end [2025-03-08 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632453', 'tblTempVendorCDR_20' ) start [2025-03-08 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632453', 'tblTempVendorCDR_20' ) end [2025-03-08 03:39:17] Production.INFO: ProcessCDR(1,14632453,1,1,2) [2025-03-08 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632453', 'tblTempUsageDetail_20' ) start [2025-03-08 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632453', 'tblTempUsageDetail_20' ) end [2025-03-08 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:39:21] Production.INFO: ==21382== Releasing lock... [2025-03-08 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:39:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:40:06 [end_date_ymd] => 2025-03-08 03:40:06 [RateCDR] => 1 ) [2025-03-08 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:40:06' and `end` < '2025-03-08 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:40:18] Production.INFO: count ==737 [2025-03-08 03:40:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:40:06 - End Time 2025-03-08 03:40:06 [2025-03-08 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632459', 'tblTempUsageDetail_20' ) start [2025-03-08 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632459', 'tblTempUsageDetail_20' ) end [2025-03-08 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632459', 'tblTempVendorCDR_20' ) start [2025-03-08 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632459', 'tblTempVendorCDR_20' ) end [2025-03-08 03:40:19] Production.INFO: ProcessCDR(1,14632459,1,1,2) [2025-03-08 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632459', 'tblTempUsageDetail_20' ) start [2025-03-08 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632459', 'tblTempUsageDetail_20' ) end [2025-03-08 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:40:22] Production.INFO: ==21458== Releasing lock... [2025-03-08 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:40:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:41:05 [end_date_ymd] => 2025-03-08 03:41:05 [RateCDR] => 1 ) [2025-03-08 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:41:05' and `end` < '2025-03-08 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:41:17] Production.INFO: count ==721 [2025-03-08 03:41:17] Production.ERROR: pbx CDR StartTime 2025-03-08 00:41:05 - End Time 2025-03-08 03:41:05 [2025-03-08 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632464', 'tblTempUsageDetail_20' ) start [2025-03-08 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632464', 'tblTempUsageDetail_20' ) end [2025-03-08 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632464', 'tblTempVendorCDR_20' ) start [2025-03-08 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632464', 'tblTempVendorCDR_20' ) end [2025-03-08 03:41:17] Production.INFO: ProcessCDR(1,14632464,1,1,2) [2025-03-08 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632464', 'tblTempUsageDetail_20' ) start [2025-03-08 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632464', 'tblTempUsageDetail_20' ) end [2025-03-08 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:41:21] Production.INFO: ==21532== Releasing lock... [2025-03-08 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:41:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:42:05 [end_date_ymd] => 2025-03-08 03:42:05 [RateCDR] => 1 ) [2025-03-08 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:42:05' and `end` < '2025-03-08 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:42:17] Production.INFO: count ==711 [2025-03-08 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:42:05 - End Time 2025-03-08 03:42:05 [2025-03-08 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632469', 'tblTempUsageDetail_20' ) start [2025-03-08 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632469', 'tblTempUsageDetail_20' ) end [2025-03-08 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632469', 'tblTempVendorCDR_20' ) start [2025-03-08 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632469', 'tblTempVendorCDR_20' ) end [2025-03-08 03:42:18] Production.INFO: ProcessCDR(1,14632469,1,1,2) [2025-03-08 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632469', 'tblTempUsageDetail_20' ) start [2025-03-08 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632469', 'tblTempUsageDetail_20' ) end [2025-03-08 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:42:21] Production.INFO: ==21613== Releasing lock... [2025-03-08 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:42:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:43:06 [end_date_ymd] => 2025-03-08 03:43:06 [RateCDR] => 1 ) [2025-03-08 03:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:43:06' and `end` < '2025-03-08 03:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:43:18] Production.INFO: count ==709 [2025-03-08 03:43:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:43:06 - End Time 2025-03-08 03:43:06 [2025-03-08 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632474', 'tblTempUsageDetail_20' ) start [2025-03-08 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632474', 'tblTempUsageDetail_20' ) end [2025-03-08 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632474', 'tblTempVendorCDR_20' ) start [2025-03-08 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632474', 'tblTempVendorCDR_20' ) end [2025-03-08 03:43:18] Production.INFO: ProcessCDR(1,14632474,1,1,2) [2025-03-08 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632474', 'tblTempUsageDetail_20' ) start [2025-03-08 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632474', 'tblTempUsageDetail_20' ) end [2025-03-08 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:43:22] Production.INFO: ==21684== Releasing lock... [2025-03-08 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:43:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:44:05 [end_date_ymd] => 2025-03-08 03:44:05 [RateCDR] => 1 ) [2025-03-08 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:44:05' and `end` < '2025-03-08 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:44:17] Production.INFO: count ==714 [2025-03-08 03:44:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:44:05 - End Time 2025-03-08 03:44:05 [2025-03-08 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632479', 'tblTempUsageDetail_20' ) start [2025-03-08 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632479', 'tblTempUsageDetail_20' ) end [2025-03-08 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632479', 'tblTempVendorCDR_20' ) start [2025-03-08 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632479', 'tblTempVendorCDR_20' ) end [2025-03-08 03:44:18] Production.INFO: ProcessCDR(1,14632479,1,1,2) [2025-03-08 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632479', 'tblTempUsageDetail_20' ) start [2025-03-08 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632479', 'tblTempUsageDetail_20' ) end [2025-03-08 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:44:21] Production.INFO: ==21765== Releasing lock... [2025-03-08 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:44:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:45:06 [end_date_ymd] => 2025-03-08 03:45:06 [RateCDR] => 1 ) [2025-03-08 03:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:45:06' and `end` < '2025-03-08 03:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:45:18] Production.INFO: count ==722 [2025-03-08 03:45:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:45:06 - End Time 2025-03-08 03:45:06 [2025-03-08 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632484', 'tblTempUsageDetail_20' ) start [2025-03-08 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632484', 'tblTempUsageDetail_20' ) end [2025-03-08 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632484', 'tblTempVendorCDR_20' ) start [2025-03-08 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632484', 'tblTempVendorCDR_20' ) end [2025-03-08 03:45:18] Production.INFO: ProcessCDR(1,14632484,1,1,2) [2025-03-08 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632484', 'tblTempUsageDetail_20' ) start [2025-03-08 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632484', 'tblTempUsageDetail_20' ) end [2025-03-08 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:45:22] Production.INFO: ==21838== Releasing lock... [2025-03-08 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:45:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:46:06 [end_date_ymd] => 2025-03-08 03:46:06 [RateCDR] => 1 ) [2025-03-08 03:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:46:06' and `end` < '2025-03-08 03:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:46:18] Production.INFO: count ==719 [2025-03-08 03:46:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:46:06 - End Time 2025-03-08 03:46:06 [2025-03-08 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632489', 'tblTempUsageDetail_20' ) start [2025-03-08 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632489', 'tblTempUsageDetail_20' ) end [2025-03-08 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632489', 'tblTempVendorCDR_20' ) start [2025-03-08 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632489', 'tblTempVendorCDR_20' ) end [2025-03-08 03:46:18] Production.INFO: ProcessCDR(1,14632489,1,1,2) [2025-03-08 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632489', 'tblTempUsageDetail_20' ) start [2025-03-08 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632489', 'tblTempUsageDetail_20' ) end [2025-03-08 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:46:22] Production.INFO: ==21913== Releasing lock... [2025-03-08 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:46:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:47:06 [end_date_ymd] => 2025-03-08 03:47:06 [RateCDR] => 1 ) [2025-03-08 03:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:47:06' and `end` < '2025-03-08 03:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:47:18] Production.INFO: count ==736 [2025-03-08 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:47:06 - End Time 2025-03-08 03:47:06 [2025-03-08 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632494', 'tblTempUsageDetail_20' ) start [2025-03-08 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632494', 'tblTempUsageDetail_20' ) end [2025-03-08 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632494', 'tblTempVendorCDR_20' ) start [2025-03-08 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632494', 'tblTempVendorCDR_20' ) end [2025-03-08 03:47:18] Production.INFO: ProcessCDR(1,14632494,1,1,2) [2025-03-08 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632494', 'tblTempUsageDetail_20' ) start [2025-03-08 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632494', 'tblTempUsageDetail_20' ) end [2025-03-08 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:47:22] Production.INFO: ==21982== Releasing lock... [2025-03-08 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:47:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:48:06 [end_date_ymd] => 2025-03-08 03:48:06 [RateCDR] => 1 ) [2025-03-08 03:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:48:06' and `end` < '2025-03-08 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:48:18] Production.INFO: count ==738 [2025-03-08 03:48:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:48:06 - End Time 2025-03-08 03:48:06 [2025-03-08 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632499', 'tblTempUsageDetail_20' ) start [2025-03-08 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632499', 'tblTempUsageDetail_20' ) end [2025-03-08 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632499', 'tblTempVendorCDR_20' ) start [2025-03-08 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632499', 'tblTempVendorCDR_20' ) end [2025-03-08 03:48:18] Production.INFO: ProcessCDR(1,14632499,1,1,2) [2025-03-08 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632499', 'tblTempUsageDetail_20' ) start [2025-03-08 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632499', 'tblTempUsageDetail_20' ) end [2025-03-08 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:48:22] Production.INFO: ==22052== Releasing lock... [2025-03-08 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:48:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:49:06 [end_date_ymd] => 2025-03-08 03:49:06 [RateCDR] => 1 ) [2025-03-08 03:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:49:06' and `end` < '2025-03-08 03:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:49:18] Production.INFO: count ==736 [2025-03-08 03:49:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:49:06 - End Time 2025-03-08 03:49:06 [2025-03-08 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632504', 'tblTempUsageDetail_20' ) start [2025-03-08 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632504', 'tblTempUsageDetail_20' ) end [2025-03-08 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632504', 'tblTempVendorCDR_20' ) start [2025-03-08 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632504', 'tblTempVendorCDR_20' ) end [2025-03-08 03:49:18] Production.INFO: ProcessCDR(1,14632504,1,1,2) [2025-03-08 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632504', 'tblTempUsageDetail_20' ) start [2025-03-08 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632504', 'tblTempUsageDetail_20' ) end [2025-03-08 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:49:22] Production.INFO: ==22125== Releasing lock... [2025-03-08 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:49:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:50:07 [end_date_ymd] => 2025-03-08 03:50:07 [RateCDR] => 1 ) [2025-03-08 03:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:50:07' and `end` < '2025-03-08 03:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:50:19] Production.INFO: count ==731 [2025-03-08 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-08 00:50:07 - End Time 2025-03-08 03:50:07 [2025-03-08 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632509', 'tblTempUsageDetail_20' ) start [2025-03-08 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632509', 'tblTempUsageDetail_20' ) end [2025-03-08 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632509', 'tblTempVendorCDR_20' ) start [2025-03-08 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632509', 'tblTempVendorCDR_20' ) end [2025-03-08 03:50:19] Production.INFO: ProcessCDR(1,14632509,1,1,2) [2025-03-08 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632509', 'tblTempUsageDetail_20' ) start [2025-03-08 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632509', 'tblTempUsageDetail_20' ) end [2025-03-08 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:50:23] Production.INFO: ==22239== Releasing lock... [2025-03-08 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:50:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:51:06 [end_date_ymd] => 2025-03-08 03:51:06 [RateCDR] => 1 ) [2025-03-08 03:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:51:06' and `end` < '2025-03-08 03:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:51:18] Production.INFO: count ==713 [2025-03-08 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:51:06 - End Time 2025-03-08 03:51:06 [2025-03-08 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632515', 'tblTempUsageDetail_20' ) start [2025-03-08 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632515', 'tblTempUsageDetail_20' ) end [2025-03-08 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632515', 'tblTempVendorCDR_20' ) start [2025-03-08 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632515', 'tblTempVendorCDR_20' ) end [2025-03-08 03:51:19] Production.INFO: ProcessCDR(1,14632515,1,1,2) [2025-03-08 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632515', 'tblTempUsageDetail_20' ) start [2025-03-08 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632515', 'tblTempUsageDetail_20' ) end [2025-03-08 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:51:22] Production.INFO: ==22310== Releasing lock... [2025-03-08 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:51:22] Production.INFO: 34 MB #Memory Used# [2025-03-08 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:52:06 [end_date_ymd] => 2025-03-08 03:52:06 [RateCDR] => 1 ) [2025-03-08 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:52:06' and `end` < '2025-03-08 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:52:18] Production.INFO: count ==708 [2025-03-08 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:52:06 - End Time 2025-03-08 03:52:06 [2025-03-08 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632520', 'tblTempUsageDetail_20' ) start [2025-03-08 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632520', 'tblTempUsageDetail_20' ) end [2025-03-08 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632520', 'tblTempVendorCDR_20' ) start [2025-03-08 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632520', 'tblTempVendorCDR_20' ) end [2025-03-08 03:52:18] Production.INFO: ProcessCDR(1,14632520,1,1,2) [2025-03-08 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632520', 'tblTempUsageDetail_20' ) start [2025-03-08 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632520', 'tblTempUsageDetail_20' ) end [2025-03-08 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:52:22] Production.INFO: ==22384== Releasing lock... [2025-03-08 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:52:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:53:06 [end_date_ymd] => 2025-03-08 03:53:06 [RateCDR] => 1 ) [2025-03-08 03:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:53:06' and `end` < '2025-03-08 03:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:53:18] Production.INFO: count ==708 [2025-03-08 03:53:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:53:06 - End Time 2025-03-08 03:53:06 [2025-03-08 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632525', 'tblTempUsageDetail_20' ) start [2025-03-08 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632525', 'tblTempUsageDetail_20' ) end [2025-03-08 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632525', 'tblTempVendorCDR_20' ) start [2025-03-08 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632525', 'tblTempVendorCDR_20' ) end [2025-03-08 03:53:18] Production.INFO: ProcessCDR(1,14632525,1,1,2) [2025-03-08 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632525', 'tblTempUsageDetail_20' ) start [2025-03-08 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632525', 'tblTempUsageDetail_20' ) end [2025-03-08 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:53:22] Production.INFO: ==22456== Releasing lock... [2025-03-08 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:53:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:54:06 [end_date_ymd] => 2025-03-08 03:54:06 [RateCDR] => 1 ) [2025-03-08 03:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:54:06' and `end` < '2025-03-08 03:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:54:18] Production.INFO: count ==702 [2025-03-08 03:54:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:54:06 - End Time 2025-03-08 03:54:06 [2025-03-08 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632530', 'tblTempUsageDetail_20' ) start [2025-03-08 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632530', 'tblTempUsageDetail_20' ) end [2025-03-08 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632530', 'tblTempVendorCDR_20' ) start [2025-03-08 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632530', 'tblTempVendorCDR_20' ) end [2025-03-08 03:54:18] Production.INFO: ProcessCDR(1,14632530,1,1,2) [2025-03-08 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632530', 'tblTempUsageDetail_20' ) start [2025-03-08 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632530', 'tblTempUsageDetail_20' ) end [2025-03-08 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:54:22] Production.INFO: ==22525== Releasing lock... [2025-03-08 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:54:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:55:06 [end_date_ymd] => 2025-03-08 03:55:06 [RateCDR] => 1 ) [2025-03-08 03:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:55:06' and `end` < '2025-03-08 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:55:18] Production.INFO: count ==700 [2025-03-08 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:55:06 - End Time 2025-03-08 03:55:06 [2025-03-08 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632535', 'tblTempUsageDetail_20' ) start [2025-03-08 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632535', 'tblTempUsageDetail_20' ) end [2025-03-08 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632535', 'tblTempVendorCDR_20' ) start [2025-03-08 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632535', 'tblTempVendorCDR_20' ) end [2025-03-08 03:55:18] Production.INFO: ProcessCDR(1,14632535,1,1,2) [2025-03-08 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632535', 'tblTempUsageDetail_20' ) start [2025-03-08 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632535', 'tblTempUsageDetail_20' ) end [2025-03-08 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:55:22] Production.INFO: ==22597== Releasing lock... [2025-03-08 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:55:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:56:06 [end_date_ymd] => 2025-03-08 03:56:06 [RateCDR] => 1 ) [2025-03-08 03:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:56:06' and `end` < '2025-03-08 03:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:56:18] Production.INFO: count ==700 [2025-03-08 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:56:06 - End Time 2025-03-08 03:56:06 [2025-03-08 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632540', 'tblTempUsageDetail_20' ) start [2025-03-08 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632540', 'tblTempUsageDetail_20' ) end [2025-03-08 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632540', 'tblTempVendorCDR_20' ) start [2025-03-08 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632540', 'tblTempVendorCDR_20' ) end [2025-03-08 03:56:18] Production.INFO: ProcessCDR(1,14632540,1,1,2) [2025-03-08 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632540', 'tblTempUsageDetail_20' ) start [2025-03-08 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632540', 'tblTempUsageDetail_20' ) end [2025-03-08 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:56:22] Production.INFO: ==22670== Releasing lock... [2025-03-08 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:56:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:57:06 [end_date_ymd] => 2025-03-08 03:57:06 [RateCDR] => 1 ) [2025-03-08 03:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:57:06' and `end` < '2025-03-08 03:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:57:18] Production.INFO: count ==700 [2025-03-08 03:57:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:57:06 - End Time 2025-03-08 03:57:06 [2025-03-08 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632545', 'tblTempUsageDetail_20' ) start [2025-03-08 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632545', 'tblTempUsageDetail_20' ) end [2025-03-08 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632545', 'tblTempVendorCDR_20' ) start [2025-03-08 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632545', 'tblTempVendorCDR_20' ) end [2025-03-08 03:57:18] Production.INFO: ProcessCDR(1,14632545,1,1,2) [2025-03-08 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632545', 'tblTempUsageDetail_20' ) start [2025-03-08 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632545', 'tblTempUsageDetail_20' ) end [2025-03-08 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:57:22] Production.INFO: ==22742== Releasing lock... [2025-03-08 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:57:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:58:06 [end_date_ymd] => 2025-03-08 03:58:06 [RateCDR] => 1 ) [2025-03-08 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:58:06' and `end` < '2025-03-08 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:58:18] Production.INFO: count ==700 [2025-03-08 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:58:06 - End Time 2025-03-08 03:58:06 [2025-03-08 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632550', 'tblTempUsageDetail_20' ) start [2025-03-08 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632550', 'tblTempUsageDetail_20' ) end [2025-03-08 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632550', 'tblTempVendorCDR_20' ) start [2025-03-08 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632550', 'tblTempVendorCDR_20' ) end [2025-03-08 03:58:18] Production.INFO: ProcessCDR(1,14632550,1,1,2) [2025-03-08 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632550', 'tblTempUsageDetail_20' ) start [2025-03-08 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632550', 'tblTempUsageDetail_20' ) end [2025-03-08 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:58:22] Production.INFO: ==22811== Releasing lock... [2025-03-08 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:58:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 00:59:05 [end_date_ymd] => 2025-03-08 03:59:05 [RateCDR] => 1 ) [2025-03-08 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 00:59:05' and `end` < '2025-03-08 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 03:59:18] Production.INFO: count ==700 [2025-03-08 03:59:18] Production.ERROR: pbx CDR StartTime 2025-03-08 00:59:05 - End Time 2025-03-08 03:59:05 [2025-03-08 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632555', 'tblTempUsageDetail_20' ) start [2025-03-08 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632555', 'tblTempUsageDetail_20' ) end [2025-03-08 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632555', 'tblTempVendorCDR_20' ) start [2025-03-08 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632555', 'tblTempVendorCDR_20' ) end [2025-03-08 03:59:18] Production.INFO: ProcessCDR(1,14632555,1,1,2) [2025-03-08 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632555', 'tblTempUsageDetail_20' ) start [2025-03-08 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632555', 'tblTempUsageDetail_20' ) end [2025-03-08 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 03:59:21] Production.INFO: ==22883== Releasing lock... [2025-03-08 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 03:59:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:00:07 [end_date_ymd] => 2025-03-08 04:00:07 [RateCDR] => 1 ) [2025-03-08 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:00:07' and `end` < '2025-03-08 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:00:19] Production.INFO: count ==690 [2025-03-08 04:00:20] Production.ERROR: pbx CDR StartTime 2025-03-08 01:00:07 - End Time 2025-03-08 04:00:07 [2025-03-08 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632562', 'tblTempUsageDetail_20' ) start [2025-03-08 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632562', 'tblTempUsageDetail_20' ) end [2025-03-08 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632562', 'tblTempVendorCDR_20' ) start [2025-03-08 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632562', 'tblTempVendorCDR_20' ) end [2025-03-08 04:00:20] Production.INFO: ProcessCDR(1,14632562,1,1,2) [2025-03-08 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632562', 'tblTempUsageDetail_20' ) start [2025-03-08 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632562', 'tblTempUsageDetail_20' ) end [2025-03-08 04:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:00:25] Production.INFO: ==22959== Releasing lock... [2025-03-08 04:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:00:25] Production.INFO: 34 MB #Memory Used# [2025-03-08 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:01:05 [end_date_ymd] => 2025-03-08 04:01:05 [RateCDR] => 1 ) [2025-03-08 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:01:05' and `end` < '2025-03-08 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:01:17] Production.INFO: count ==683 [2025-03-08 04:01:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:01:05 - End Time 2025-03-08 04:01:05 [2025-03-08 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632567', 'tblTempUsageDetail_20' ) start [2025-03-08 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632567', 'tblTempUsageDetail_20' ) end [2025-03-08 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632567', 'tblTempVendorCDR_20' ) start [2025-03-08 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632567', 'tblTempVendorCDR_20' ) end [2025-03-08 04:01:18] Production.INFO: ProcessCDR(1,14632567,1,1,2) [2025-03-08 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632567', 'tblTempUsageDetail_20' ) start [2025-03-08 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632567', 'tblTempUsageDetail_20' ) end [2025-03-08 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:01:21] Production.INFO: ==23054== Releasing lock... [2025-03-08 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:01:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:02:06 [end_date_ymd] => 2025-03-08 04:02:06 [RateCDR] => 1 ) [2025-03-08 04:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:02:06' and `end` < '2025-03-08 04:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:02:18] Production.INFO: count ==682 [2025-03-08 04:02:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:02:06 - End Time 2025-03-08 04:02:06 [2025-03-08 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632572', 'tblTempUsageDetail_20' ) start [2025-03-08 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632572', 'tblTempUsageDetail_20' ) end [2025-03-08 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632572', 'tblTempVendorCDR_20' ) start [2025-03-08 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632572', 'tblTempVendorCDR_20' ) end [2025-03-08 04:02:18] Production.INFO: ProcessCDR(1,14632572,1,1,2) [2025-03-08 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632572', 'tblTempUsageDetail_20' ) start [2025-03-08 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632572', 'tblTempUsageDetail_20' ) end [2025-03-08 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:02:22] Production.INFO: ==23124== Releasing lock... [2025-03-08 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:02:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:03:05 [end_date_ymd] => 2025-03-08 04:03:05 [RateCDR] => 1 ) [2025-03-08 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:03:05' and `end` < '2025-03-08 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:03:17] Production.INFO: count ==682 [2025-03-08 04:03:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:03:05 - End Time 2025-03-08 04:03:05 [2025-03-08 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632577', 'tblTempUsageDetail_20' ) start [2025-03-08 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632577', 'tblTempUsageDetail_20' ) end [2025-03-08 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632577', 'tblTempVendorCDR_20' ) start [2025-03-08 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632577', 'tblTempVendorCDR_20' ) end [2025-03-08 04:03:18] Production.INFO: ProcessCDR(1,14632577,1,1,2) [2025-03-08 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632577', 'tblTempUsageDetail_20' ) start [2025-03-08 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632577', 'tblTempUsageDetail_20' ) end [2025-03-08 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:03:21] Production.INFO: ==23195== Releasing lock... [2025-03-08 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:03:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:04:06 [end_date_ymd] => 2025-03-08 04:04:06 [RateCDR] => 1 ) [2025-03-08 04:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:04:06' and `end` < '2025-03-08 04:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:04:18] Production.INFO: count ==682 [2025-03-08 04:04:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:04:06 - End Time 2025-03-08 04:04:06 [2025-03-08 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632582', 'tblTempUsageDetail_20' ) start [2025-03-08 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632582', 'tblTempUsageDetail_20' ) end [2025-03-08 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632582', 'tblTempVendorCDR_20' ) start [2025-03-08 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632582', 'tblTempVendorCDR_20' ) end [2025-03-08 04:04:18] Production.INFO: ProcessCDR(1,14632582,1,1,2) [2025-03-08 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632582', 'tblTempUsageDetail_20' ) start [2025-03-08 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632582', 'tblTempUsageDetail_20' ) end [2025-03-08 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:04:22] Production.INFO: ==23265== Releasing lock... [2025-03-08 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:04:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:05:05 [end_date_ymd] => 2025-03-08 04:05:05 [RateCDR] => 1 ) [2025-03-08 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:05:05' and `end` < '2025-03-08 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:05:17] Production.INFO: count ==682 [2025-03-08 04:05:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:05:05 - End Time 2025-03-08 04:05:05 [2025-03-08 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632587', 'tblTempUsageDetail_20' ) start [2025-03-08 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632587', 'tblTempUsageDetail_20' ) end [2025-03-08 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632587', 'tblTempVendorCDR_20' ) start [2025-03-08 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632587', 'tblTempVendorCDR_20' ) end [2025-03-08 04:05:18] Production.INFO: ProcessCDR(1,14632587,1,1,2) [2025-03-08 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632587', 'tblTempUsageDetail_20' ) start [2025-03-08 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632587', 'tblTempUsageDetail_20' ) end [2025-03-08 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:05:21] Production.INFO: ==23337== Releasing lock... [2025-03-08 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:05:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:06:06 [end_date_ymd] => 2025-03-08 04:06:06 [RateCDR] => 1 ) [2025-03-08 04:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:06:06' and `end` < '2025-03-08 04:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:06:18] Production.INFO: count ==682 [2025-03-08 04:06:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:06:06 - End Time 2025-03-08 04:06:06 [2025-03-08 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632592', 'tblTempUsageDetail_20' ) start [2025-03-08 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632592', 'tblTempUsageDetail_20' ) end [2025-03-08 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632592', 'tblTempVendorCDR_20' ) start [2025-03-08 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632592', 'tblTempVendorCDR_20' ) end [2025-03-08 04:06:18] Production.INFO: ProcessCDR(1,14632592,1,1,2) [2025-03-08 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632592', 'tblTempUsageDetail_20' ) start [2025-03-08 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632592', 'tblTempUsageDetail_20' ) end [2025-03-08 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:06:22] Production.INFO: ==23449== Releasing lock... [2025-03-08 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:06:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:07:05 [end_date_ymd] => 2025-03-08 04:07:05 [RateCDR] => 1 ) [2025-03-08 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:07:05' and `end` < '2025-03-08 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:07:17] Production.INFO: count ==682 [2025-03-08 04:07:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:07:05 - End Time 2025-03-08 04:07:05 [2025-03-08 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632597', 'tblTempUsageDetail_20' ) start [2025-03-08 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632597', 'tblTempUsageDetail_20' ) end [2025-03-08 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632597', 'tblTempVendorCDR_20' ) start [2025-03-08 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632597', 'tblTempVendorCDR_20' ) end [2025-03-08 04:07:17] Production.INFO: ProcessCDR(1,14632597,1,1,2) [2025-03-08 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632597', 'tblTempUsageDetail_20' ) start [2025-03-08 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632597', 'tblTempUsageDetail_20' ) end [2025-03-08 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:07:21] Production.INFO: ==23519== Releasing lock... [2025-03-08 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:07:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:08:06 [end_date_ymd] => 2025-03-08 04:08:06 [RateCDR] => 1 ) [2025-03-08 04:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:08:06' and `end` < '2025-03-08 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:08:18] Production.INFO: count ==682 [2025-03-08 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:08:06 - End Time 2025-03-08 04:08:06 [2025-03-08 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632602', 'tblTempUsageDetail_20' ) start [2025-03-08 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632602', 'tblTempUsageDetail_20' ) end [2025-03-08 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632602', 'tblTempVendorCDR_20' ) start [2025-03-08 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632602', 'tblTempVendorCDR_20' ) end [2025-03-08 04:08:18] Production.INFO: ProcessCDR(1,14632602,1,1,2) [2025-03-08 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632602', 'tblTempUsageDetail_20' ) start [2025-03-08 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632602', 'tblTempUsageDetail_20' ) end [2025-03-08 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:08:22] Production.INFO: ==23614== Releasing lock... [2025-03-08 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:08:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:09:05 [end_date_ymd] => 2025-03-08 04:09:05 [RateCDR] => 1 ) [2025-03-08 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:09:05' and `end` < '2025-03-08 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:09:17] Production.INFO: count ==682 [2025-03-08 04:09:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:09:05 - End Time 2025-03-08 04:09:05 [2025-03-08 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632607', 'tblTempUsageDetail_20' ) start [2025-03-08 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632607', 'tblTempUsageDetail_20' ) end [2025-03-08 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632607', 'tblTempVendorCDR_20' ) start [2025-03-08 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632607', 'tblTempVendorCDR_20' ) end [2025-03-08 04:09:17] Production.INFO: ProcessCDR(1,14632607,1,1,2) [2025-03-08 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632607', 'tblTempUsageDetail_20' ) start [2025-03-08 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632607', 'tblTempUsageDetail_20' ) end [2025-03-08 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:09:20] Production.INFO: ==23687== Releasing lock... [2025-03-08 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:09:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 04:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:10:07 [end_date_ymd] => 2025-03-08 04:10:07 [RateCDR] => 1 ) [2025-03-08 04:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:10:07' and `end` < '2025-03-08 04:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:10:19] Production.INFO: count ==668 [2025-03-08 04:10:19] Production.ERROR: pbx CDR StartTime 2025-03-08 01:10:07 - End Time 2025-03-08 04:10:07 [2025-03-08 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632613', 'tblTempUsageDetail_20' ) start [2025-03-08 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632613', 'tblTempUsageDetail_20' ) end [2025-03-08 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632613', 'tblTempVendorCDR_20' ) start [2025-03-08 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632613', 'tblTempVendorCDR_20' ) end [2025-03-08 04:10:19] Production.INFO: ProcessCDR(1,14632613,1,1,2) [2025-03-08 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632613', 'tblTempUsageDetail_20' ) start [2025-03-08 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632613', 'tblTempUsageDetail_20' ) end [2025-03-08 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:10:23] Production.INFO: ==23760== Releasing lock... [2025-03-08 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:10:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:11:05 [end_date_ymd] => 2025-03-08 04:11:05 [RateCDR] => 1 ) [2025-03-08 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:11:05' and `end` < '2025-03-08 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:11:17] Production.INFO: count ==647 [2025-03-08 04:11:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:11:05 - End Time 2025-03-08 04:11:05 [2025-03-08 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632618', 'tblTempUsageDetail_20' ) start [2025-03-08 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632618', 'tblTempUsageDetail_20' ) end [2025-03-08 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632618', 'tblTempVendorCDR_20' ) start [2025-03-08 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632618', 'tblTempVendorCDR_20' ) end [2025-03-08 04:11:18] Production.INFO: ProcessCDR(1,14632618,1,1,2) [2025-03-08 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632618', 'tblTempUsageDetail_20' ) start [2025-03-08 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632618', 'tblTempUsageDetail_20' ) end [2025-03-08 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:11:21] Production.INFO: ==23834== Releasing lock... [2025-03-08 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:11:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:12:06 [end_date_ymd] => 2025-03-08 04:12:06 [RateCDR] => 1 ) [2025-03-08 04:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:12:06' and `end` < '2025-03-08 04:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:12:18] Production.INFO: count ==647 [2025-03-08 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:12:06 - End Time 2025-03-08 04:12:06 [2025-03-08 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632623', 'tblTempUsageDetail_20' ) start [2025-03-08 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632623', 'tblTempUsageDetail_20' ) end [2025-03-08 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632623', 'tblTempVendorCDR_20' ) start [2025-03-08 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632623', 'tblTempVendorCDR_20' ) end [2025-03-08 04:12:18] Production.INFO: ProcessCDR(1,14632623,1,1,2) [2025-03-08 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632623', 'tblTempUsageDetail_20' ) start [2025-03-08 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632623', 'tblTempUsageDetail_20' ) end [2025-03-08 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:12:21] Production.INFO: ==23905== Releasing lock... [2025-03-08 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:12:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:13:05 [end_date_ymd] => 2025-03-08 04:13:05 [RateCDR] => 1 ) [2025-03-08 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:13:05' and `end` < '2025-03-08 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:13:17] Production.INFO: count ==647 [2025-03-08 04:13:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:13:05 - End Time 2025-03-08 04:13:05 [2025-03-08 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632628', 'tblTempUsageDetail_20' ) start [2025-03-08 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632628', 'tblTempUsageDetail_20' ) end [2025-03-08 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632628', 'tblTempVendorCDR_20' ) start [2025-03-08 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632628', 'tblTempVendorCDR_20' ) end [2025-03-08 04:13:17] Production.INFO: ProcessCDR(1,14632628,1,1,2) [2025-03-08 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632628', 'tblTempUsageDetail_20' ) start [2025-03-08 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632628', 'tblTempUsageDetail_20' ) end [2025-03-08 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:13:22] Production.INFO: ==23975== Releasing lock... [2025-03-08 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:13:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:14:06 [end_date_ymd] => 2025-03-08 04:14:06 [RateCDR] => 1 ) [2025-03-08 04:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:14:06' and `end` < '2025-03-08 04:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:14:18] Production.INFO: count ==648 [2025-03-08 04:14:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:14:06 - End Time 2025-03-08 04:14:06 [2025-03-08 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632633', 'tblTempUsageDetail_20' ) start [2025-03-08 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632633', 'tblTempUsageDetail_20' ) end [2025-03-08 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632633', 'tblTempVendorCDR_20' ) start [2025-03-08 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632633', 'tblTempVendorCDR_20' ) end [2025-03-08 04:14:18] Production.INFO: ProcessCDR(1,14632633,1,1,2) [2025-03-08 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632633', 'tblTempUsageDetail_20' ) start [2025-03-08 04:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632633', 'tblTempUsageDetail_20' ) end [2025-03-08 04:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:14:23] Production.INFO: ==24051== Releasing lock... [2025-03-08 04:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:14:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:15:05 [end_date_ymd] => 2025-03-08 04:15:05 [RateCDR] => 1 ) [2025-03-08 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:15:05' and `end` < '2025-03-08 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:15:17] Production.INFO: count ==648 [2025-03-08 04:15:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:15:05 - End Time 2025-03-08 04:15:05 [2025-03-08 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632638', 'tblTempUsageDetail_20' ) start [2025-03-08 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632638', 'tblTempUsageDetail_20' ) end [2025-03-08 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632638', 'tblTempVendorCDR_20' ) start [2025-03-08 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632638', 'tblTempVendorCDR_20' ) end [2025-03-08 04:15:18] Production.INFO: ProcessCDR(1,14632638,1,1,2) [2025-03-08 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632638', 'tblTempUsageDetail_20' ) start [2025-03-08 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632638', 'tblTempUsageDetail_20' ) end [2025-03-08 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:15:21] Production.INFO: ==24124== Releasing lock... [2025-03-08 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:15:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:16:06 [end_date_ymd] => 2025-03-08 04:16:06 [RateCDR] => 1 ) [2025-03-08 04:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:16:06' and `end` < '2025-03-08 04:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:16:19] Production.INFO: count ==648 [2025-03-08 04:16:19] Production.ERROR: pbx CDR StartTime 2025-03-08 01:16:06 - End Time 2025-03-08 04:16:06 [2025-03-08 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632643', 'tblTempUsageDetail_20' ) start [2025-03-08 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632643', 'tblTempUsageDetail_20' ) end [2025-03-08 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632643', 'tblTempVendorCDR_20' ) start [2025-03-08 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632643', 'tblTempVendorCDR_20' ) end [2025-03-08 04:16:19] Production.INFO: ProcessCDR(1,14632643,1,1,2) [2025-03-08 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632643', 'tblTempUsageDetail_20' ) start [2025-03-08 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632643', 'tblTempUsageDetail_20' ) end [2025-03-08 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:16:22] Production.INFO: ==24197== Releasing lock... [2025-03-08 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:16:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:17:05 [end_date_ymd] => 2025-03-08 04:17:05 [RateCDR] => 1 ) [2025-03-08 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:17:05' and `end` < '2025-03-08 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:17:17] Production.INFO: count ==648 [2025-03-08 04:17:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:17:05 - End Time 2025-03-08 04:17:05 [2025-03-08 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632648', 'tblTempUsageDetail_20' ) start [2025-03-08 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632648', 'tblTempUsageDetail_20' ) end [2025-03-08 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632648', 'tblTempVendorCDR_20' ) start [2025-03-08 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632648', 'tblTempVendorCDR_20' ) end [2025-03-08 04:17:17] Production.INFO: ProcessCDR(1,14632648,1,1,2) [2025-03-08 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632648', 'tblTempUsageDetail_20' ) start [2025-03-08 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632648', 'tblTempUsageDetail_20' ) end [2025-03-08 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:17:20] Production.INFO: ==24269== Releasing lock... [2025-03-08 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:17:20] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:18:06 [end_date_ymd] => 2025-03-08 04:18:06 [RateCDR] => 1 ) [2025-03-08 04:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:18:06' and `end` < '2025-03-08 04:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:18:18] Production.INFO: count ==647 [2025-03-08 04:18:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:18:06 - End Time 2025-03-08 04:18:06 [2025-03-08 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632653', 'tblTempUsageDetail_20' ) start [2025-03-08 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632653', 'tblTempUsageDetail_20' ) end [2025-03-08 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632653', 'tblTempVendorCDR_20' ) start [2025-03-08 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632653', 'tblTempVendorCDR_20' ) end [2025-03-08 04:18:18] Production.INFO: ProcessCDR(1,14632653,1,1,2) [2025-03-08 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632653', 'tblTempUsageDetail_20' ) start [2025-03-08 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632653', 'tblTempUsageDetail_20' ) end [2025-03-08 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:18:22] Production.INFO: ==24351== Releasing lock... [2025-03-08 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:18:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-08 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:19:05 [end_date_ymd] => 2025-03-08 04:19:05 [RateCDR] => 1 ) [2025-03-08 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:19:05' and `end` < '2025-03-08 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:19:17] Production.INFO: count ==647 [2025-03-08 04:19:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:19:05 - End Time 2025-03-08 04:19:05 [2025-03-08 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632658', 'tblTempUsageDetail_20' ) start [2025-03-08 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632658', 'tblTempUsageDetail_20' ) end [2025-03-08 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632658', 'tblTempVendorCDR_20' ) start [2025-03-08 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632658', 'tblTempVendorCDR_20' ) end [2025-03-08 04:19:18] Production.INFO: ProcessCDR(1,14632658,1,1,2) [2025-03-08 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632658', 'tblTempUsageDetail_20' ) start [2025-03-08 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632658', 'tblTempUsageDetail_20' ) end [2025-03-08 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:19:21] Production.INFO: ==24424== Releasing lock... [2025-03-08 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-08 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:20:06 [end_date_ymd] => 2025-03-08 04:20:06 [RateCDR] => 1 ) [2025-03-08 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:20:06' and `end` < '2025-03-08 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:20:18] Production.INFO: count ==639 [2025-03-08 04:20:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:20:06 - End Time 2025-03-08 04:20:06 [2025-03-08 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632663', 'tblTempUsageDetail_20' ) start [2025-03-08 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632663', 'tblTempUsageDetail_20' ) end [2025-03-08 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632663', 'tblTempVendorCDR_20' ) start [2025-03-08 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632663', 'tblTempVendorCDR_20' ) end [2025-03-08 04:20:18] Production.INFO: ProcessCDR(1,14632663,1,1,2) [2025-03-08 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632663', 'tblTempUsageDetail_20' ) start [2025-03-08 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632663', 'tblTempUsageDetail_20' ) end [2025-03-08 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:20:22] Production.INFO: ==24496== Releasing lock... [2025-03-08 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:20:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 04:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:21:06 [end_date_ymd] => 2025-03-08 04:21:06 [RateCDR] => 1 ) [2025-03-08 04:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:21:06' and `end` < '2025-03-08 04:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:21:18] Production.INFO: count ==631 [2025-03-08 04:21:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:21:06 - End Time 2025-03-08 04:21:06 [2025-03-08 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632669', 'tblTempUsageDetail_20' ) start [2025-03-08 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632669', 'tblTempUsageDetail_20' ) end [2025-03-08 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632669', 'tblTempVendorCDR_20' ) start [2025-03-08 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632669', 'tblTempVendorCDR_20' ) end [2025-03-08 04:21:18] Production.INFO: ProcessCDR(1,14632669,1,1,2) [2025-03-08 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632669', 'tblTempUsageDetail_20' ) start [2025-03-08 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632669', 'tblTempUsageDetail_20' ) end [2025-03-08 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:21:21] Production.INFO: ==24612== Releasing lock... [2025-03-08 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:21:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-08 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:22:06 [end_date_ymd] => 2025-03-08 04:22:06 [RateCDR] => 1 ) [2025-03-08 04:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:22:06' and `end` < '2025-03-08 04:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:22:18] Production.INFO: count ==630 [2025-03-08 04:22:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:22:06 - End Time 2025-03-08 04:22:06 [2025-03-08 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632674', 'tblTempUsageDetail_20' ) start [2025-03-08 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632674', 'tblTempUsageDetail_20' ) end [2025-03-08 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632674', 'tblTempVendorCDR_20' ) start [2025-03-08 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632674', 'tblTempVendorCDR_20' ) end [2025-03-08 04:22:18] Production.INFO: ProcessCDR(1,14632674,1,1,2) [2025-03-08 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632674', 'tblTempUsageDetail_20' ) start [2025-03-08 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632674', 'tblTempUsageDetail_20' ) end [2025-03-08 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:22:21] Production.INFO: ==24684== Releasing lock... [2025-03-08 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:22:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-08 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:23:05 [end_date_ymd] => 2025-03-08 04:23:05 [RateCDR] => 1 ) [2025-03-08 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:23:05' and `end` < '2025-03-08 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:23:17] Production.INFO: count ==629 [2025-03-08 04:23:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:23:05 - End Time 2025-03-08 04:23:05 [2025-03-08 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632679', 'tblTempUsageDetail_20' ) start [2025-03-08 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632679', 'tblTempUsageDetail_20' ) end [2025-03-08 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632679', 'tblTempVendorCDR_20' ) start [2025-03-08 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632679', 'tblTempVendorCDR_20' ) end [2025-03-08 04:23:17] Production.INFO: ProcessCDR(1,14632679,1,1,2) [2025-03-08 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632679', 'tblTempUsageDetail_20' ) start [2025-03-08 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632679', 'tblTempUsageDetail_20' ) end [2025-03-08 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:23:21] Production.INFO: ==24757== Releasing lock... [2025-03-08 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:23:21] Production.INFO: 33 MB #Memory Used# [2025-03-08 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:24:06 [end_date_ymd] => 2025-03-08 04:24:06 [RateCDR] => 1 ) [2025-03-08 04:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:24:06' and `end` < '2025-03-08 04:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:24:18] Production.INFO: count ==625 [2025-03-08 04:24:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:24:06 - End Time 2025-03-08 04:24:06 [2025-03-08 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632684', 'tblTempUsageDetail_20' ) start [2025-03-08 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632684', 'tblTempUsageDetail_20' ) end [2025-03-08 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632684', 'tblTempVendorCDR_20' ) start [2025-03-08 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632684', 'tblTempVendorCDR_20' ) end [2025-03-08 04:24:18] Production.INFO: ProcessCDR(1,14632684,1,1,2) [2025-03-08 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632684', 'tblTempUsageDetail_20' ) start [2025-03-08 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632684', 'tblTempUsageDetail_20' ) end [2025-03-08 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:24:21] Production.INFO: ==24832== Releasing lock... [2025-03-08 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:24:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-08 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:25:06 [end_date_ymd] => 2025-03-08 04:25:06 [RateCDR] => 1 ) [2025-03-08 04: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-03-08 01:25:06' and `end` < '2025-03-08 04: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-03-08 04:25:18] Production.INFO: count ==620 [2025-03-08 04:25:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:25:06 - End Time 2025-03-08 04:25:06 [2025-03-08 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632689', 'tblTempUsageDetail_20' ) start [2025-03-08 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632689', 'tblTempUsageDetail_20' ) end [2025-03-08 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632689', 'tblTempVendorCDR_20' ) start [2025-03-08 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632689', 'tblTempVendorCDR_20' ) end [2025-03-08 04:25:18] Production.INFO: ProcessCDR(1,14632689,1,1,2) [2025-03-08 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632689', 'tblTempUsageDetail_20' ) start [2025-03-08 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632689', 'tblTempUsageDetail_20' ) end [2025-03-08 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:25:22] Production.INFO: ==24910== Releasing lock... [2025-03-08 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:25:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:26:06 [end_date_ymd] => 2025-03-08 04:26:06 [RateCDR] => 1 ) [2025-03-08 04:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:26:06' and `end` < '2025-03-08 04:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:26:18] Production.INFO: count ==610 [2025-03-08 04:26:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:26:06 - End Time 2025-03-08 04:26:06 [2025-03-08 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632694', 'tblTempUsageDetail_20' ) start [2025-03-08 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632694', 'tblTempUsageDetail_20' ) end [2025-03-08 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632694', 'tblTempVendorCDR_20' ) start [2025-03-08 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632694', 'tblTempVendorCDR_20' ) end [2025-03-08 04:26:18] Production.INFO: ProcessCDR(1,14632694,1,1,2) [2025-03-08 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632694', 'tblTempUsageDetail_20' ) start [2025-03-08 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632694', 'tblTempUsageDetail_20' ) end [2025-03-08 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:26:22] Production.INFO: ==24985== Releasing lock... [2025-03-08 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:26:22] Production.INFO: 33 MB #Memory Used# [2025-03-08 04:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:27:06 [end_date_ymd] => 2025-03-08 04:27:06 [RateCDR] => 1 ) [2025-03-08 04:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:27:06' and `end` < '2025-03-08 04:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:27:18] Production.INFO: count ==598 [2025-03-08 04:27:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:27:06 - End Time 2025-03-08 04:27:06 [2025-03-08 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632699', 'tblTempUsageDetail_20' ) start [2025-03-08 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632699', 'tblTempUsageDetail_20' ) end [2025-03-08 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632699', 'tblTempVendorCDR_20' ) start [2025-03-08 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632699', 'tblTempVendorCDR_20' ) end [2025-03-08 04:27:18] Production.INFO: ProcessCDR(1,14632699,1,1,2) [2025-03-08 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632699', 'tblTempUsageDetail_20' ) start [2025-03-08 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632699', 'tblTempUsageDetail_20' ) end [2025-03-08 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:27:21] Production.INFO: ==25061== Releasing lock... [2025-03-08 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:27:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-08 04:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:28:06 [end_date_ymd] => 2025-03-08 04:28:06 [RateCDR] => 1 ) [2025-03-08 04:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:28:06' and `end` < '2025-03-08 04:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:28:18] Production.INFO: count ==596 [2025-03-08 04:28:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:28:06 - End Time 2025-03-08 04:28:06 [2025-03-08 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632704', 'tblTempUsageDetail_20' ) start [2025-03-08 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632704', 'tblTempUsageDetail_20' ) end [2025-03-08 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632704', 'tblTempVendorCDR_20' ) start [2025-03-08 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632704', 'tblTempVendorCDR_20' ) end [2025-03-08 04:28:18] Production.INFO: ProcessCDR(1,14632704,1,1,2) [2025-03-08 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632704', 'tblTempUsageDetail_20' ) start [2025-03-08 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632704', 'tblTempUsageDetail_20' ) end [2025-03-08 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:28:22] Production.INFO: ==25135== Releasing lock... [2025-03-08 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:28:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-08 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:29:05 [end_date_ymd] => 2025-03-08 04:29:05 [RateCDR] => 1 ) [2025-03-08 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:29:05' and `end` < '2025-03-08 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:29:18] Production.INFO: count ==589 [2025-03-08 04:29:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:29:05 - End Time 2025-03-08 04:29:05 [2025-03-08 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632709', 'tblTempUsageDetail_20' ) start [2025-03-08 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632709', 'tblTempUsageDetail_20' ) end [2025-03-08 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632709', 'tblTempVendorCDR_20' ) start [2025-03-08 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632709', 'tblTempVendorCDR_20' ) end [2025-03-08 04:29:18] Production.INFO: ProcessCDR(1,14632709,1,1,2) [2025-03-08 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632709', 'tblTempUsageDetail_20' ) start [2025-03-08 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632709', 'tblTempUsageDetail_20' ) end [2025-03-08 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:29:21] Production.INFO: ==25213== Releasing lock... [2025-03-08 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:29:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-08 04:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:30:07 [end_date_ymd] => 2025-03-08 04:30:07 [RateCDR] => 1 ) [2025-03-08 04:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:30:07' and `end` < '2025-03-08 04:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:30:19] Production.INFO: count ==584 [2025-03-08 04:30:19] Production.ERROR: pbx CDR StartTime 2025-03-08 01:30:07 - End Time 2025-03-08 04:30:07 [2025-03-08 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632715', 'tblTempUsageDetail_20' ) start [2025-03-08 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632715', 'tblTempUsageDetail_20' ) end [2025-03-08 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632715', 'tblTempVendorCDR_20' ) start [2025-03-08 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632715', 'tblTempVendorCDR_20' ) end [2025-03-08 04:30:19] Production.INFO: ProcessCDR(1,14632715,1,1,2) [2025-03-08 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632715', 'tblTempUsageDetail_20' ) start [2025-03-08 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632715', 'tblTempUsageDetail_20' ) end [2025-03-08 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:30:22] Production.INFO: ==25291== Releasing lock... [2025-03-08 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:30:22] Production.INFO: 33 MB #Memory Used# [2025-03-08 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:31:06 [end_date_ymd] => 2025-03-08 04:31:06 [RateCDR] => 1 ) [2025-03-08 04:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:31:06' and `end` < '2025-03-08 04:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:31:18] Production.INFO: count ==560 [2025-03-08 04:31:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:31:06 - End Time 2025-03-08 04:31:06 [2025-03-08 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632721', 'tblTempUsageDetail_20' ) start [2025-03-08 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632721', 'tblTempUsageDetail_20' ) end [2025-03-08 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632721', 'tblTempVendorCDR_20' ) start [2025-03-08 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632721', 'tblTempVendorCDR_20' ) end [2025-03-08 04:31:18] Production.INFO: ProcessCDR(1,14632721,1,1,2) [2025-03-08 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632721', 'tblTempUsageDetail_20' ) start [2025-03-08 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632721', 'tblTempUsageDetail_20' ) end [2025-03-08 04:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:31:23] Production.INFO: ==25371== Releasing lock... [2025-03-08 04:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:31:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-08 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:32:05 [end_date_ymd] => 2025-03-08 04:32:05 [RateCDR] => 1 ) [2025-03-08 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:32:05' and `end` < '2025-03-08 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:32:17] Production.INFO: count ==558 [2025-03-08 04:32:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:32:05 - End Time 2025-03-08 04:32:05 [2025-03-08 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632726', 'tblTempUsageDetail_20' ) start [2025-03-08 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632726', 'tblTempUsageDetail_20' ) end [2025-03-08 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632726', 'tblTempVendorCDR_20' ) start [2025-03-08 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632726', 'tblTempVendorCDR_20' ) end [2025-03-08 04:32:18] Production.INFO: ProcessCDR(1,14632726,1,1,2) [2025-03-08 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632726', 'tblTempUsageDetail_20' ) start [2025-03-08 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632726', 'tblTempUsageDetail_20' ) end [2025-03-08 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:32:21] Production.INFO: ==25719== Releasing lock... [2025-03-08 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:32:21] Production.INFO: 33 MB #Memory Used# [2025-03-08 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:33:05 [end_date_ymd] => 2025-03-08 04:33:05 [RateCDR] => 1 ) [2025-03-08 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:33:05' and `end` < '2025-03-08 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:33:17] Production.INFO: count ==558 [2025-03-08 04:33:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:33:05 - End Time 2025-03-08 04:33:05 [2025-03-08 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632731', 'tblTempUsageDetail_20' ) start [2025-03-08 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632731', 'tblTempUsageDetail_20' ) end [2025-03-08 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632731', 'tblTempVendorCDR_20' ) start [2025-03-08 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632731', 'tblTempVendorCDR_20' ) end [2025-03-08 04:33:17] Production.INFO: ProcessCDR(1,14632731,1,1,2) [2025-03-08 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632731', 'tblTempUsageDetail_20' ) start [2025-03-08 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632731', 'tblTempUsageDetail_20' ) end [2025-03-08 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:33:20] Production.INFO: ==25793== Releasing lock... [2025-03-08 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:33:20] Production.INFO: 33 MB #Memory Used# [2025-03-08 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:34:05 [end_date_ymd] => 2025-03-08 04:34:05 [RateCDR] => 1 ) [2025-03-08 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:34:05' and `end` < '2025-03-08 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:34:17] Production.INFO: count ==558 [2025-03-08 04:34:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:34:05 - End Time 2025-03-08 04:34:05 [2025-03-08 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632736', 'tblTempUsageDetail_20' ) start [2025-03-08 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632736', 'tblTempUsageDetail_20' ) end [2025-03-08 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632736', 'tblTempVendorCDR_20' ) start [2025-03-08 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632736', 'tblTempVendorCDR_20' ) end [2025-03-08 04:34:17] Production.INFO: ProcessCDR(1,14632736,1,1,2) [2025-03-08 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632736', 'tblTempUsageDetail_20' ) start [2025-03-08 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632736', 'tblTempUsageDetail_20' ) end [2025-03-08 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:34:21] Production.INFO: ==25871== Releasing lock... [2025-03-08 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:34:21] Production.INFO: 33 MB #Memory Used# [2025-03-08 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:35:05 [end_date_ymd] => 2025-03-08 04:35:05 [RateCDR] => 1 ) [2025-03-08 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:35:05' and `end` < '2025-03-08 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:35:17] Production.INFO: count ==555 [2025-03-08 04:35:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:35:05 - End Time 2025-03-08 04:35:05 [2025-03-08 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632741', 'tblTempUsageDetail_20' ) start [2025-03-08 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632741', 'tblTempUsageDetail_20' ) end [2025-03-08 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632741', 'tblTempVendorCDR_20' ) start [2025-03-08 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632741', 'tblTempVendorCDR_20' ) end [2025-03-08 04:35:17] Production.INFO: ProcessCDR(1,14632741,1,1,2) [2025-03-08 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632741', 'tblTempUsageDetail_20' ) start [2025-03-08 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632741', 'tblTempUsageDetail_20' ) end [2025-03-08 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:35:20] Production.INFO: ==25948== Releasing lock... [2025-03-08 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:35:20] Production.INFO: 33 MB #Memory Used# [2025-03-08 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:36:05 [end_date_ymd] => 2025-03-08 04:36:05 [RateCDR] => 1 ) [2025-03-08 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:36:05' and `end` < '2025-03-08 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:36:17] Production.INFO: count ==552 [2025-03-08 04:36:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:36:05 - End Time 2025-03-08 04:36:05 [2025-03-08 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632746', 'tblTempUsageDetail_20' ) start [2025-03-08 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632746', 'tblTempUsageDetail_20' ) end [2025-03-08 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632746', 'tblTempVendorCDR_20' ) start [2025-03-08 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632746', 'tblTempVendorCDR_20' ) end [2025-03-08 04:36:17] Production.INFO: ProcessCDR(1,14632746,1,1,2) [2025-03-08 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632746', 'tblTempUsageDetail_20' ) start [2025-03-08 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632746', 'tblTempUsageDetail_20' ) end [2025-03-08 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:36:21] Production.INFO: ==26024== Releasing lock... [2025-03-08 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:36:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-08 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:37:05 [end_date_ymd] => 2025-03-08 04:37:05 [RateCDR] => 1 ) [2025-03-08 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:37:05' and `end` < '2025-03-08 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:37:17] Production.INFO: count ==540 [2025-03-08 04:37:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:37:05 - End Time 2025-03-08 04:37:05 [2025-03-08 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632751', 'tblTempUsageDetail_20' ) start [2025-03-08 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632751', 'tblTempUsageDetail_20' ) end [2025-03-08 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632751', 'tblTempVendorCDR_20' ) start [2025-03-08 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632751', 'tblTempVendorCDR_20' ) end [2025-03-08 04:37:17] Production.INFO: ProcessCDR(1,14632751,1,1,2) [2025-03-08 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632751', 'tblTempUsageDetail_20' ) start [2025-03-08 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632751', 'tblTempUsageDetail_20' ) end [2025-03-08 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:37:20] Production.INFO: ==26138== Releasing lock... [2025-03-08 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:37:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-08 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:38:05 [end_date_ymd] => 2025-03-08 04:38:05 [RateCDR] => 1 ) [2025-03-08 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:38:05' and `end` < '2025-03-08 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:38:17] Production.INFO: count ==530 [2025-03-08 04:38:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:38:05 - End Time 2025-03-08 04:38:05 [2025-03-08 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632756', 'tblTempUsageDetail_20' ) start [2025-03-08 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632756', 'tblTempUsageDetail_20' ) end [2025-03-08 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632756', 'tblTempVendorCDR_20' ) start [2025-03-08 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632756', 'tblTempVendorCDR_20' ) end [2025-03-08 04:38:17] Production.INFO: ProcessCDR(1,14632756,1,1,2) [2025-03-08 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632756', 'tblTempUsageDetail_20' ) start [2025-03-08 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632756', 'tblTempUsageDetail_20' ) end [2025-03-08 04:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:38:20] Production.INFO: ==26215== Releasing lock... [2025-03-08 04:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:38:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-08 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:39:04 [end_date_ymd] => 2025-03-08 04:39:04 [RateCDR] => 1 ) [2025-03-08 04:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:39:04' and `end` < '2025-03-08 04:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:39:16] Production.INFO: count ==529 [2025-03-08 04:39:16] Production.ERROR: pbx CDR StartTime 2025-03-08 01:39:04 - End Time 2025-03-08 04:39:04 [2025-03-08 04:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632761', 'tblTempUsageDetail_20' ) start [2025-03-08 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632761', 'tblTempUsageDetail_20' ) end [2025-03-08 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632761', 'tblTempVendorCDR_20' ) start [2025-03-08 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632761', 'tblTempVendorCDR_20' ) end [2025-03-08 04:39:16] Production.INFO: ProcessCDR(1,14632761,1,1,2) [2025-03-08 04:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632761', 'tblTempUsageDetail_20' ) start [2025-03-08 04:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632761', 'tblTempUsageDetail_20' ) end [2025-03-08 04:39:19] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:39:19] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:39:19] Production.INFO: ==26288== Releasing lock... [2025-03-08 04:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:39:19] Production.INFO: 32.25 MB #Memory Used# [2025-03-08 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:40:06 [end_date_ymd] => 2025-03-08 04:40:06 [RateCDR] => 1 ) [2025-03-08 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:40:06' and `end` < '2025-03-08 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:40:18] Production.INFO: count ==521 [2025-03-08 04:40:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:40:06 - End Time 2025-03-08 04:40:06 [2025-03-08 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632767', 'tblTempUsageDetail_20' ) start [2025-03-08 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632767', 'tblTempUsageDetail_20' ) end [2025-03-08 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632767', 'tblTempVendorCDR_20' ) start [2025-03-08 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632767', 'tblTempVendorCDR_20' ) end [2025-03-08 04:40:18] Production.INFO: ProcessCDR(1,14632767,1,1,2) [2025-03-08 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632767', 'tblTempUsageDetail_20' ) start [2025-03-08 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632767', 'tblTempUsageDetail_20' ) end [2025-03-08 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:40:21] Production.INFO: ==26372== Releasing lock... [2025-03-08 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:40:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-08 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:41:04 [end_date_ymd] => 2025-03-08 04:41:04 [RateCDR] => 1 ) [2025-03-08 04:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:41:04' and `end` < '2025-03-08 04:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:41:16] Production.INFO: count ==511 [2025-03-08 04:41:16] Production.ERROR: pbx CDR StartTime 2025-03-08 01:41:04 - End Time 2025-03-08 04:41:04 [2025-03-08 04:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632772', 'tblTempUsageDetail_20' ) start [2025-03-08 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632772', 'tblTempUsageDetail_20' ) end [2025-03-08 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632772', 'tblTempVendorCDR_20' ) start [2025-03-08 04:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632772', 'tblTempVendorCDR_20' ) end [2025-03-08 04:41:16] Production.INFO: ProcessCDR(1,14632772,1,1,2) [2025-03-08 04:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:41:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632772', 'tblTempUsageDetail_20' ) start [2025-03-08 04:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632772', 'tblTempUsageDetail_20' ) end [2025-03-08 04:41:19] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:41:19] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:41:19] Production.INFO: ==26449== Releasing lock... [2025-03-08 04:41:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:41:19] Production.INFO: 32.5 MB #Memory Used# [2025-03-08 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:42:05 [end_date_ymd] => 2025-03-08 04:42:05 [RateCDR] => 1 ) [2025-03-08 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:42:05' and `end` < '2025-03-08 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:42:17] Production.INFO: count ==506 [2025-03-08 04:42:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:42:05 - End Time 2025-03-08 04:42:05 [2025-03-08 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632777', 'tblTempUsageDetail_20' ) start [2025-03-08 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632777', 'tblTempUsageDetail_20' ) end [2025-03-08 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632777', 'tblTempVendorCDR_20' ) start [2025-03-08 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632777', 'tblTempVendorCDR_20' ) end [2025-03-08 04:42:17] Production.INFO: ProcessCDR(1,14632777,1,1,2) [2025-03-08 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632777', 'tblTempUsageDetail_20' ) start [2025-03-08 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632777', 'tblTempUsageDetail_20' ) end [2025-03-08 04:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:42:20] Production.INFO: ==26527== Releasing lock... [2025-03-08 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:42:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-08 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:43:05 [end_date_ymd] => 2025-03-08 04:43:05 [RateCDR] => 1 ) [2025-03-08 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:43:05' and `end` < '2025-03-08 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:43:17] Production.INFO: count ==503 [2025-03-08 04:43:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:43:05 - End Time 2025-03-08 04:43:05 [2025-03-08 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632782', 'tblTempUsageDetail_20' ) start [2025-03-08 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632782', 'tblTempUsageDetail_20' ) end [2025-03-08 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632782', 'tblTempVendorCDR_20' ) start [2025-03-08 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632782', 'tblTempVendorCDR_20' ) end [2025-03-08 04:43:18] Production.INFO: ProcessCDR(1,14632782,1,1,2) [2025-03-08 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632782', 'tblTempUsageDetail_20' ) start [2025-03-08 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632782', 'tblTempUsageDetail_20' ) end [2025-03-08 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:43:21] Production.INFO: ==26603== Releasing lock... [2025-03-08 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:43:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-08 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:44:05 [end_date_ymd] => 2025-03-08 04:44:05 [RateCDR] => 1 ) [2025-03-08 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:44:05' and `end` < '2025-03-08 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:44:17] Production.INFO: count ==497 [2025-03-08 04:44:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:44:05 - End Time 2025-03-08 04:44:05 [2025-03-08 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632787', 'tblTempUsageDetail_20' ) start [2025-03-08 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632787', 'tblTempUsageDetail_20' ) end [2025-03-08 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632787', 'tblTempVendorCDR_20' ) start [2025-03-08 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632787', 'tblTempVendorCDR_20' ) end [2025-03-08 04:44:17] Production.INFO: ProcessCDR(1,14632787,1,1,2) [2025-03-08 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632787', 'tblTempUsageDetail_20' ) start [2025-03-08 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632787', 'tblTempUsageDetail_20' ) end [2025-03-08 04:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:44:20] Production.INFO: ==26685== Releasing lock... [2025-03-08 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:44:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-08 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:45:05 [end_date_ymd] => 2025-03-08 04:45:05 [RateCDR] => 1 ) [2025-03-08 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:45:05' and `end` < '2025-03-08 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:45:17] Production.INFO: count ==487 [2025-03-08 04:45:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:45:05 - End Time 2025-03-08 04:45:05 [2025-03-08 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632792', 'tblTempUsageDetail_20' ) start [2025-03-08 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632792', 'tblTempUsageDetail_20' ) end [2025-03-08 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632792', 'tblTempVendorCDR_20' ) start [2025-03-08 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632792', 'tblTempVendorCDR_20' ) end [2025-03-08 04:45:17] Production.INFO: ProcessCDR(1,14632792,1,1,2) [2025-03-08 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632792', 'tblTempUsageDetail_20' ) start [2025-03-08 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632792', 'tblTempUsageDetail_20' ) end [2025-03-08 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:45:20] Production.INFO: ==26758== Releasing lock... [2025-03-08 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:45:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-08 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:46:05 [end_date_ymd] => 2025-03-08 04:46:05 [RateCDR] => 1 ) [2025-03-08 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:46:05' and `end` < '2025-03-08 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:46:17] Production.INFO: count ==476 [2025-03-08 04:46:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:46:05 - End Time 2025-03-08 04:46:05 [2025-03-08 04:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632797', 'tblTempUsageDetail_20' ) start [2025-03-08 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632797', 'tblTempUsageDetail_20' ) end [2025-03-08 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632797', 'tblTempVendorCDR_20' ) start [2025-03-08 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632797', 'tblTempVendorCDR_20' ) end [2025-03-08 04:46:17] Production.INFO: ProcessCDR(1,14632797,1,1,2) [2025-03-08 04:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632797', 'tblTempUsageDetail_20' ) start [2025-03-08 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632797', 'tblTempUsageDetail_20' ) end [2025-03-08 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:46:21] Production.INFO: ==26835== Releasing lock... [2025-03-08 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:46:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-08 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:47:05 [end_date_ymd] => 2025-03-08 04:47:05 [RateCDR] => 1 ) [2025-03-08 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:47:05' and `end` < '2025-03-08 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:47:17] Production.INFO: count ==466 [2025-03-08 04:47:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:47:05 - End Time 2025-03-08 04:47:05 [2025-03-08 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632802', 'tblTempUsageDetail_20' ) start [2025-03-08 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632802', 'tblTempUsageDetail_20' ) end [2025-03-08 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632802', 'tblTempVendorCDR_20' ) start [2025-03-08 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632802', 'tblTempVendorCDR_20' ) end [2025-03-08 04:47:18] Production.INFO: ProcessCDR(1,14632802,1,1,2) [2025-03-08 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632802', 'tblTempUsageDetail_20' ) start [2025-03-08 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632802', 'tblTempUsageDetail_20' ) end [2025-03-08 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:47:21] Production.INFO: ==26909== Releasing lock... [2025-03-08 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:47:21] Production.INFO: 32 MB #Memory Used# [2025-03-08 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:48:05 [end_date_ymd] => 2025-03-08 04:48:05 [RateCDR] => 1 ) [2025-03-08 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:48:05' and `end` < '2025-03-08 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:48:17] Production.INFO: count ==455 [2025-03-08 04:48:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:48:05 - End Time 2025-03-08 04:48:05 [2025-03-08 04:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632807', 'tblTempUsageDetail_20' ) start [2025-03-08 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632807', 'tblTempUsageDetail_20' ) end [2025-03-08 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632807', 'tblTempVendorCDR_20' ) start [2025-03-08 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632807', 'tblTempVendorCDR_20' ) end [2025-03-08 04:48:17] Production.INFO: ProcessCDR(1,14632807,1,1,2) [2025-03-08 04:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632807', 'tblTempUsageDetail_20' ) start [2025-03-08 04:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632807', 'tblTempUsageDetail_20' ) end [2025-03-08 04:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:48:20] Production.INFO: ==26984== Releasing lock... [2025-03-08 04:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:48:20] Production.INFO: 32 MB #Memory Used# [2025-03-08 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:49:05 [end_date_ymd] => 2025-03-08 04:49:05 [RateCDR] => 1 ) [2025-03-08 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:49:05' and `end` < '2025-03-08 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:49:17] Production.INFO: count ==444 [2025-03-08 04:49:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:49:05 - End Time 2025-03-08 04:49:05 [2025-03-08 04:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632812', 'tblTempUsageDetail_20' ) start [2025-03-08 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632812', 'tblTempUsageDetail_20' ) end [2025-03-08 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632812', 'tblTempVendorCDR_20' ) start [2025-03-08 04:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632812', 'tblTempVendorCDR_20' ) end [2025-03-08 04:49:17] Production.INFO: ProcessCDR(1,14632812,1,1,2) [2025-03-08 04:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632812', 'tblTempUsageDetail_20' ) start [2025-03-08 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632812', 'tblTempUsageDetail_20' ) end [2025-03-08 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:49:21] Production.INFO: ==27062== Releasing lock... [2025-03-08 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:49:21] Production.INFO: 32 MB #Memory Used# [2025-03-08 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:50:06 [end_date_ymd] => 2025-03-08 04:50:06 [RateCDR] => 1 ) [2025-03-08 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:50:06' and `end` < '2025-03-08 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:50:18] Production.INFO: count ==426 [2025-03-08 04:50:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:50:06 - End Time 2025-03-08 04:50:06 [2025-03-08 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632818', 'tblTempUsageDetail_20' ) start [2025-03-08 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632818', 'tblTempUsageDetail_20' ) end [2025-03-08 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632818', 'tblTempVendorCDR_20' ) start [2025-03-08 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632818', 'tblTempVendorCDR_20' ) end [2025-03-08 04:50:18] Production.INFO: ProcessCDR(1,14632818,1,1,2) [2025-03-08 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632818', 'tblTempUsageDetail_20' ) start [2025-03-08 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632818', 'tblTempUsageDetail_20' ) end [2025-03-08 04:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:50:22] Production.INFO: ==27140== Releasing lock... [2025-03-08 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:50:22] Production.INFO: 32 MB #Memory Used# [2025-03-08 04:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:51:05 [end_date_ymd] => 2025-03-08 04:51:05 [RateCDR] => 1 ) [2025-03-08 04:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:51:05' and `end` < '2025-03-08 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:51:18] Production.INFO: count ==399 [2025-03-08 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:51:05 - End Time 2025-03-08 04:51:05 [2025-03-08 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632823', 'tblTempUsageDetail_20' ) start [2025-03-08 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632823', 'tblTempUsageDetail_20' ) end [2025-03-08 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632823', 'tblTempVendorCDR_20' ) start [2025-03-08 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632823', 'tblTempVendorCDR_20' ) end [2025-03-08 04:51:18] Production.INFO: ProcessCDR(1,14632823,1,1,2) [2025-03-08 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632823', 'tblTempUsageDetail_20' ) start [2025-03-08 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632823', 'tblTempUsageDetail_20' ) end [2025-03-08 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:51:21] Production.INFO: ==27213== Releasing lock... [2025-03-08 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:51:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:52:06 [end_date_ymd] => 2025-03-08 04:52:06 [RateCDR] => 1 ) [2025-03-08 04:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:52:06' and `end` < '2025-03-08 04:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:52:18] Production.INFO: count ==389 [2025-03-08 04:52:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:52:06 - End Time 2025-03-08 04:52:06 [2025-03-08 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632828', 'tblTempUsageDetail_20' ) start [2025-03-08 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632828', 'tblTempUsageDetail_20' ) end [2025-03-08 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632828', 'tblTempVendorCDR_20' ) start [2025-03-08 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632828', 'tblTempVendorCDR_20' ) end [2025-03-08 04:52:18] Production.INFO: ProcessCDR(1,14632828,1,1,2) [2025-03-08 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632828', 'tblTempUsageDetail_20' ) start [2025-03-08 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632828', 'tblTempUsageDetail_20' ) end [2025-03-08 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:52:22] Production.INFO: ==27325== Releasing lock... [2025-03-08 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:52:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:53:05 [end_date_ymd] => 2025-03-08 04:53:05 [RateCDR] => 1 ) [2025-03-08 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:53:05' and `end` < '2025-03-08 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:53:18] Production.INFO: count ==389 [2025-03-08 04:53:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:53:05 - End Time 2025-03-08 04:53:05 [2025-03-08 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632833', 'tblTempUsageDetail_20' ) start [2025-03-08 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632833', 'tblTempUsageDetail_20' ) end [2025-03-08 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632833', 'tblTempVendorCDR_20' ) start [2025-03-08 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632833', 'tblTempVendorCDR_20' ) end [2025-03-08 04:53:18] Production.INFO: ProcessCDR(1,14632833,1,1,2) [2025-03-08 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632833', 'tblTempUsageDetail_20' ) start [2025-03-08 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632833', 'tblTempUsageDetail_20' ) end [2025-03-08 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:53:21] Production.INFO: ==27400== Releasing lock... [2025-03-08 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:53:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:54:05 [end_date_ymd] => 2025-03-08 04:54:05 [RateCDR] => 1 ) [2025-03-08 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:54:05' and `end` < '2025-03-08 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:54:17] Production.INFO: count ==389 [2025-03-08 04:54:17] Production.ERROR: pbx CDR StartTime 2025-03-08 01:54:05 - End Time 2025-03-08 04:54:05 [2025-03-08 04:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632838', 'tblTempUsageDetail_20' ) start [2025-03-08 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632838', 'tblTempUsageDetail_20' ) end [2025-03-08 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632838', 'tblTempVendorCDR_20' ) start [2025-03-08 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632838', 'tblTempVendorCDR_20' ) end [2025-03-08 04:54:17] Production.INFO: ProcessCDR(1,14632838,1,1,2) [2025-03-08 04:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632838', 'tblTempUsageDetail_20' ) start [2025-03-08 04:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632838', 'tblTempUsageDetail_20' ) end [2025-03-08 04:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:54:20] Production.INFO: ==27471== Releasing lock... [2025-03-08 04:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:54:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:55:05 [end_date_ymd] => 2025-03-08 04:55:05 [RateCDR] => 1 ) [2025-03-08 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:55:05' and `end` < '2025-03-08 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:55:18] Production.INFO: count ==388 [2025-03-08 04:55:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:55:05 - End Time 2025-03-08 04:55:05 [2025-03-08 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632843', 'tblTempUsageDetail_20' ) start [2025-03-08 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632843', 'tblTempUsageDetail_20' ) end [2025-03-08 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632843', 'tblTempVendorCDR_20' ) start [2025-03-08 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632843', 'tblTempVendorCDR_20' ) end [2025-03-08 04:55:18] Production.INFO: ProcessCDR(1,14632843,1,1,2) [2025-03-08 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632843', 'tblTempUsageDetail_20' ) start [2025-03-08 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632843', 'tblTempUsageDetail_20' ) end [2025-03-08 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:55:21] Production.INFO: ==27545== Releasing lock... [2025-03-08 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:55:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:56:05 [end_date_ymd] => 2025-03-08 04:56:05 [RateCDR] => 1 ) [2025-03-08 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:56:05' and `end` < '2025-03-08 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:56:18] Production.INFO: count ==384 [2025-03-08 04:56:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:56:05 - End Time 2025-03-08 04:56:05 [2025-03-08 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632848', 'tblTempUsageDetail_20' ) start [2025-03-08 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632848', 'tblTempUsageDetail_20' ) end [2025-03-08 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632848', 'tblTempVendorCDR_20' ) start [2025-03-08 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632848', 'tblTempVendorCDR_20' ) end [2025-03-08 04:56:18] Production.INFO: ProcessCDR(1,14632848,1,1,2) [2025-03-08 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632848', 'tblTempUsageDetail_20' ) start [2025-03-08 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632848', 'tblTempUsageDetail_20' ) end [2025-03-08 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:56:21] Production.INFO: ==27618== Releasing lock... [2025-03-08 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:56:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 04:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:57:06 [end_date_ymd] => 2025-03-08 04:57:06 [RateCDR] => 1 ) [2025-03-08 04:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:57:06' and `end` < '2025-03-08 04:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:57:18] Production.INFO: count ==384 [2025-03-08 04:57:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:57:06 - End Time 2025-03-08 04:57:06 [2025-03-08 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632853', 'tblTempUsageDetail_20' ) start [2025-03-08 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632853', 'tblTempUsageDetail_20' ) end [2025-03-08 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632853', 'tblTempVendorCDR_20' ) start [2025-03-08 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632853', 'tblTempVendorCDR_20' ) end [2025-03-08 04:57:18] Production.INFO: ProcessCDR(1,14632853,1,1,2) [2025-03-08 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632853', 'tblTempUsageDetail_20' ) start [2025-03-08 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632853', 'tblTempUsageDetail_20' ) end [2025-03-08 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:57:21] Production.INFO: ==27691== Releasing lock... [2025-03-08 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:57:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:58:05 [end_date_ymd] => 2025-03-08 04:58:05 [RateCDR] => 1 ) [2025-03-08 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:58:05' and `end` < '2025-03-08 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:58:18] Production.INFO: count ==384 [2025-03-08 04:58:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:58:05 - End Time 2025-03-08 04:58:05 [2025-03-08 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632858', 'tblTempUsageDetail_20' ) start [2025-03-08 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632858', 'tblTempUsageDetail_20' ) end [2025-03-08 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632858', 'tblTempVendorCDR_20' ) start [2025-03-08 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632858', 'tblTempVendorCDR_20' ) end [2025-03-08 04:58:18] Production.INFO: ProcessCDR(1,14632858,1,1,2) [2025-03-08 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632858', 'tblTempUsageDetail_20' ) start [2025-03-08 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632858', 'tblTempUsageDetail_20' ) end [2025-03-08 04:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:58:21] Production.INFO: ==27762== Releasing lock... [2025-03-08 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:58:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 01:59:05 [end_date_ymd] => 2025-03-08 04:59:05 [RateCDR] => 1 ) [2025-03-08 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 01:59:05' and `end` < '2025-03-08 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 04:59:18] Production.INFO: count ==384 [2025-03-08 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-08 01:59:05 - End Time 2025-03-08 04:59:05 [2025-03-08 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632863', 'tblTempUsageDetail_20' ) start [2025-03-08 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632863', 'tblTempUsageDetail_20' ) end [2025-03-08 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632863', 'tblTempVendorCDR_20' ) start [2025-03-08 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632863', 'tblTempVendorCDR_20' ) end [2025-03-08 04:59:18] Production.INFO: ProcessCDR(1,14632863,1,1,2) [2025-03-08 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632863', 'tblTempUsageDetail_20' ) start [2025-03-08 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632863', 'tblTempUsageDetail_20' ) end [2025-03-08 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 04:59:21] Production.INFO: ==27838== Releasing lock... [2025-03-08 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 04:59:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:00:06 [end_date_ymd] => 2025-03-08 05:00:06 [RateCDR] => 1 ) [2025-03-08 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:00:06' and `end` < '2025-03-08 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:00:18] Production.INFO: count ==374 [2025-03-08 05:00:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:00:06 - End Time 2025-03-08 05:00:06 [2025-03-08 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632869', 'tblTempUsageDetail_20' ) start [2025-03-08 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632869', 'tblTempUsageDetail_20' ) end [2025-03-08 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632869', 'tblTempVendorCDR_20' ) start [2025-03-08 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632869', 'tblTempVendorCDR_20' ) end [2025-03-08 05:00:18] Production.INFO: ProcessCDR(1,14632869,1,1,2) [2025-03-08 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632869', 'tblTempUsageDetail_20' ) start [2025-03-08 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632869', 'tblTempUsageDetail_20' ) end [2025-03-08 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:00:22] Production.INFO: ==27918== Releasing lock... [2025-03-08 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:00:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:01:05 [end_date_ymd] => 2025-03-08 05:01:05 [RateCDR] => 1 ) [2025-03-08 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:01:05' and `end` < '2025-03-08 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:01:17] Production.INFO: count ==371 [2025-03-08 05:01:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:01:05 - End Time 2025-03-08 05:01:05 [2025-03-08 05:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632874', 'tblTempUsageDetail_20' ) start [2025-03-08 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632874', 'tblTempUsageDetail_20' ) end [2025-03-08 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632874', 'tblTempVendorCDR_20' ) start [2025-03-08 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632874', 'tblTempVendorCDR_20' ) end [2025-03-08 05:01:17] Production.INFO: ProcessCDR(1,14632874,1,1,2) [2025-03-08 05:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632874', 'tblTempUsageDetail_20' ) start [2025-03-08 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632874', 'tblTempUsageDetail_20' ) end [2025-03-08 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:01:21] Production.INFO: ==28002== Releasing lock... [2025-03-08 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:01:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:02:06 [end_date_ymd] => 2025-03-08 05:02:06 [RateCDR] => 1 ) [2025-03-08 05:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:02:06' and `end` < '2025-03-08 05:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:02:18] Production.INFO: count ==372 [2025-03-08 05:02:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:02:06 - End Time 2025-03-08 05:02:06 [2025-03-08 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632879', 'tblTempUsageDetail_20' ) start [2025-03-08 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632879', 'tblTempUsageDetail_20' ) end [2025-03-08 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632879', 'tblTempVendorCDR_20' ) start [2025-03-08 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632879', 'tblTempVendorCDR_20' ) end [2025-03-08 05:02:18] Production.INFO: ProcessCDR(1,14632879,1,1,2) [2025-03-08 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632879', 'tblTempUsageDetail_20' ) start [2025-03-08 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632879', 'tblTempUsageDetail_20' ) end [2025-03-08 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:02:22] Production.INFO: ==28074== Releasing lock... [2025-03-08 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:02:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:03:05 [end_date_ymd] => 2025-03-08 05:03:05 [RateCDR] => 1 ) [2025-03-08 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:03:05' and `end` < '2025-03-08 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:03:18] Production.INFO: count ==372 [2025-03-08 05:03:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:03:05 - End Time 2025-03-08 05:03:05 [2025-03-08 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632884', 'tblTempUsageDetail_20' ) start [2025-03-08 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632884', 'tblTempUsageDetail_20' ) end [2025-03-08 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632884', 'tblTempVendorCDR_20' ) start [2025-03-08 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632884', 'tblTempVendorCDR_20' ) end [2025-03-08 05:03:18] Production.INFO: ProcessCDR(1,14632884,1,1,2) [2025-03-08 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632884', 'tblTempUsageDetail_20' ) start [2025-03-08 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632884', 'tblTempUsageDetail_20' ) end [2025-03-08 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:03:22] Production.INFO: ==28147== Releasing lock... [2025-03-08 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:03:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:04:05 [end_date_ymd] => 2025-03-08 05:04:05 [RateCDR] => 1 ) [2025-03-08 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:04:05' and `end` < '2025-03-08 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:04:17] Production.INFO: count ==368 [2025-03-08 05:04:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:04:05 - End Time 2025-03-08 05:04:05 [2025-03-08 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632889', 'tblTempUsageDetail_20' ) start [2025-03-08 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632889', 'tblTempUsageDetail_20' ) end [2025-03-08 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632889', 'tblTempVendorCDR_20' ) start [2025-03-08 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632889', 'tblTempVendorCDR_20' ) end [2025-03-08 05:04:18] Production.INFO: ProcessCDR(1,14632889,1,1,2) [2025-03-08 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632889', 'tblTempUsageDetail_20' ) start [2025-03-08 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632889', 'tblTempUsageDetail_20' ) end [2025-03-08 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:04:21] Production.INFO: ==28219== Releasing lock... [2025-03-08 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:04:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:05:06 [end_date_ymd] => 2025-03-08 05:05:06 [RateCDR] => 1 ) [2025-03-08 05:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:05:06' and `end` < '2025-03-08 05:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:05:18] Production.INFO: count ==364 [2025-03-08 05:05:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:05:06 - End Time 2025-03-08 05:05:06 [2025-03-08 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632894', 'tblTempUsageDetail_20' ) start [2025-03-08 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632894', 'tblTempUsageDetail_20' ) end [2025-03-08 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632894', 'tblTempVendorCDR_20' ) start [2025-03-08 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632894', 'tblTempVendorCDR_20' ) end [2025-03-08 05:05:18] Production.INFO: ProcessCDR(1,14632894,1,1,2) [2025-03-08 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632894', 'tblTempUsageDetail_20' ) start [2025-03-08 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632894', 'tblTempUsageDetail_20' ) end [2025-03-08 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:05:21] Production.INFO: ==28294== Releasing lock... [2025-03-08 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:05:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:06:05 [end_date_ymd] => 2025-03-08 05:06:05 [RateCDR] => 1 ) [2025-03-08 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:06:05' and `end` < '2025-03-08 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:06:18] Production.INFO: count ==364 [2025-03-08 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:06:05 - End Time 2025-03-08 05:06:05 [2025-03-08 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632899', 'tblTempUsageDetail_20' ) start [2025-03-08 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632899', 'tblTempUsageDetail_20' ) end [2025-03-08 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632899', 'tblTempVendorCDR_20' ) start [2025-03-08 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632899', 'tblTempVendorCDR_20' ) end [2025-03-08 05:06:18] Production.INFO: ProcessCDR(1,14632899,1,1,2) [2025-03-08 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632899', 'tblTempUsageDetail_20' ) start [2025-03-08 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632899', 'tblTempUsageDetail_20' ) end [2025-03-08 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:06:21] Production.INFO: ==28364== Releasing lock... [2025-03-08 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:06:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:07:05 [end_date_ymd] => 2025-03-08 05:07:05 [RateCDR] => 1 ) [2025-03-08 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:07:05' and `end` < '2025-03-08 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:07:18] Production.INFO: count ==355 [2025-03-08 05:07:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:07:05 - End Time 2025-03-08 05:07:05 [2025-03-08 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632904', 'tblTempUsageDetail_20' ) start [2025-03-08 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632904', 'tblTempUsageDetail_20' ) end [2025-03-08 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632904', 'tblTempVendorCDR_20' ) start [2025-03-08 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632904', 'tblTempVendorCDR_20' ) end [2025-03-08 05:07:18] Production.INFO: ProcessCDR(1,14632904,1,1,2) [2025-03-08 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632904', 'tblTempUsageDetail_20' ) start [2025-03-08 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632904', 'tblTempUsageDetail_20' ) end [2025-03-08 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:07:21] Production.INFO: ==28480== Releasing lock... [2025-03-08 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:07:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:08:05 [end_date_ymd] => 2025-03-08 05:08:05 [RateCDR] => 1 ) [2025-03-08 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:08:05' and `end` < '2025-03-08 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:08:17] Production.INFO: count ==358 [2025-03-08 05:08:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:08:05 - End Time 2025-03-08 05:08:05 [2025-03-08 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632909', 'tblTempUsageDetail_20' ) start [2025-03-08 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632909', 'tblTempUsageDetail_20' ) end [2025-03-08 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632909', 'tblTempVendorCDR_20' ) start [2025-03-08 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632909', 'tblTempVendorCDR_20' ) end [2025-03-08 05:08:17] Production.INFO: ProcessCDR(1,14632909,1,1,2) [2025-03-08 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632909', 'tblTempUsageDetail_20' ) start [2025-03-08 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632909', 'tblTempUsageDetail_20' ) end [2025-03-08 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:08:21] Production.INFO: ==28550== Releasing lock... [2025-03-08 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:08:21] Production.INFO: 31 MB #Memory Used# [2025-03-08 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:09:05 [end_date_ymd] => 2025-03-08 05:09:05 [RateCDR] => 1 ) [2025-03-08 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:09:05' and `end` < '2025-03-08 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:09:17] Production.INFO: count ==358 [2025-03-08 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:09:05 - End Time 2025-03-08 05:09:05 [2025-03-08 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632914', 'tblTempUsageDetail_20' ) start [2025-03-08 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632914', 'tblTempUsageDetail_20' ) end [2025-03-08 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632914', 'tblTempVendorCDR_20' ) start [2025-03-08 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632914', 'tblTempVendorCDR_20' ) end [2025-03-08 05:09:17] Production.INFO: ProcessCDR(1,14632914,1,1,2) [2025-03-08 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632914', 'tblTempUsageDetail_20' ) start [2025-03-08 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632914', 'tblTempUsageDetail_20' ) end [2025-03-08 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:09:21] Production.INFO: ==28621== Releasing lock... [2025-03-08 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:09:21] Production.INFO: 31 MB #Memory Used# [2025-03-08 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:10:05 [end_date_ymd] => 2025-03-08 05:10:05 [RateCDR] => 1 ) [2025-03-08 05:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:10:05' and `end` < '2025-03-08 05:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:10:17] Production.INFO: count ==352 [2025-03-08 05:10:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:10:05 - End Time 2025-03-08 05:10:05 [2025-03-08 05:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632920', 'tblTempUsageDetail_20' ) start [2025-03-08 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632920', 'tblTempUsageDetail_20' ) end [2025-03-08 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632920', 'tblTempVendorCDR_20' ) start [2025-03-08 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632920', 'tblTempVendorCDR_20' ) end [2025-03-08 05:10:17] Production.INFO: ProcessCDR(1,14632920,1,1,2) [2025-03-08 05:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632920', 'tblTempUsageDetail_20' ) start [2025-03-08 05:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632920', 'tblTempUsageDetail_20' ) end [2025-03-08 05:10:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:10:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:10:21] Production.INFO: ==28693== Releasing lock... [2025-03-08 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:10:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:11:05 [end_date_ymd] => 2025-03-08 05:11:05 [RateCDR] => 1 ) [2025-03-08 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:11:05' and `end` < '2025-03-08 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:11:17] Production.INFO: count ==348 [2025-03-08 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:11:05 - End Time 2025-03-08 05:11:05 [2025-03-08 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632925', 'tblTempUsageDetail_20' ) start [2025-03-08 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632925', 'tblTempUsageDetail_20' ) end [2025-03-08 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632925', 'tblTempVendorCDR_20' ) start [2025-03-08 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632925', 'tblTempVendorCDR_20' ) end [2025-03-08 05:11:17] Production.INFO: ProcessCDR(1,14632925,1,1,2) [2025-03-08 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632925', 'tblTempUsageDetail_20' ) start [2025-03-08 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632925', 'tblTempUsageDetail_20' ) end [2025-03-08 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:11:21] Production.INFO: ==28768== Releasing lock... [2025-03-08 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:12:05 [end_date_ymd] => 2025-03-08 05:12:05 [RateCDR] => 1 ) [2025-03-08 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:12:05' and `end` < '2025-03-08 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:12:17] Production.INFO: count ==348 [2025-03-08 05:12:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:12:05 - End Time 2025-03-08 05:12:05 [2025-03-08 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632930', 'tblTempUsageDetail_20' ) start [2025-03-08 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632930', 'tblTempUsageDetail_20' ) end [2025-03-08 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632930', 'tblTempVendorCDR_20' ) start [2025-03-08 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632930', 'tblTempVendorCDR_20' ) end [2025-03-08 05:12:17] Production.INFO: ProcessCDR(1,14632930,1,1,2) [2025-03-08 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632930', 'tblTempUsageDetail_20' ) start [2025-03-08 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632930', 'tblTempUsageDetail_20' ) end [2025-03-08 05:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:12:20] Production.INFO: ==28838== Releasing lock... [2025-03-08 05:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:12:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:13:05 [end_date_ymd] => 2025-03-08 05:13:05 [RateCDR] => 1 ) [2025-03-08 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:13:05' and `end` < '2025-03-08 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:13:18] Production.INFO: count ==345 [2025-03-08 05:13:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:13:05 - End Time 2025-03-08 05:13:05 [2025-03-08 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632935', 'tblTempUsageDetail_20' ) start [2025-03-08 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632935', 'tblTempUsageDetail_20' ) end [2025-03-08 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632935', 'tblTempVendorCDR_20' ) start [2025-03-08 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632935', 'tblTempVendorCDR_20' ) end [2025-03-08 05:13:18] Production.INFO: ProcessCDR(1,14632935,1,1,2) [2025-03-08 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632935', 'tblTempUsageDetail_20' ) start [2025-03-08 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632935', 'tblTempUsageDetail_20' ) end [2025-03-08 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:13:21] Production.INFO: ==28908== Releasing lock... [2025-03-08 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:13:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:14:06 [end_date_ymd] => 2025-03-08 05:14:06 [RateCDR] => 1 ) [2025-03-08 05:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:14:06' and `end` < '2025-03-08 05:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:14:18] Production.INFO: count ==347 [2025-03-08 05:14:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:14:06 - End Time 2025-03-08 05:14:06 [2025-03-08 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632940', 'tblTempUsageDetail_20' ) start [2025-03-08 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632940', 'tblTempUsageDetail_20' ) end [2025-03-08 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632940', 'tblTempVendorCDR_20' ) start [2025-03-08 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632940', 'tblTempVendorCDR_20' ) end [2025-03-08 05:14:18] Production.INFO: ProcessCDR(1,14632940,1,1,2) [2025-03-08 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632940', 'tblTempUsageDetail_20' ) start [2025-03-08 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632940', 'tblTempUsageDetail_20' ) end [2025-03-08 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:14:21] Production.INFO: ==28984== Releasing lock... [2025-03-08 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:14:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:15:05 [end_date_ymd] => 2025-03-08 05:15:05 [RateCDR] => 1 ) [2025-03-08 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:15:05' and `end` < '2025-03-08 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:15:17] Production.INFO: count ==350 [2025-03-08 05:15:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:15:05 - End Time 2025-03-08 05:15:05 [2025-03-08 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632945', 'tblTempUsageDetail_20' ) start [2025-03-08 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632945', 'tblTempUsageDetail_20' ) end [2025-03-08 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632945', 'tblTempVendorCDR_20' ) start [2025-03-08 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632945', 'tblTempVendorCDR_20' ) end [2025-03-08 05:15:17] Production.INFO: ProcessCDR(1,14632945,1,1,2) [2025-03-08 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632945', 'tblTempUsageDetail_20' ) start [2025-03-08 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632945', 'tblTempUsageDetail_20' ) end [2025-03-08 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:15:20] Production.INFO: ==29056== Releasing lock... [2025-03-08 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:15:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:16:05 [end_date_ymd] => 2025-03-08 05:16:05 [RateCDR] => 1 ) [2025-03-08 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:16:05' and `end` < '2025-03-08 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:16:17] Production.INFO: count ==350 [2025-03-08 05:16:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:16:05 - End Time 2025-03-08 05:16:05 [2025-03-08 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632950', 'tblTempUsageDetail_20' ) start [2025-03-08 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632950', 'tblTempUsageDetail_20' ) end [2025-03-08 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632950', 'tblTempVendorCDR_20' ) start [2025-03-08 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632950', 'tblTempVendorCDR_20' ) end [2025-03-08 05:16:17] Production.INFO: ProcessCDR(1,14632950,1,1,2) [2025-03-08 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632950', 'tblTempUsageDetail_20' ) start [2025-03-08 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632950', 'tblTempUsageDetail_20' ) end [2025-03-08 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:16:20] Production.INFO: ==29127== Releasing lock... [2025-03-08 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:16:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:17:05 [end_date_ymd] => 2025-03-08 05:17:05 [RateCDR] => 1 ) [2025-03-08 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:17:05' and `end` < '2025-03-08 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:17:17] Production.INFO: count ==350 [2025-03-08 05:17:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:17:05 - End Time 2025-03-08 05:17:05 [2025-03-08 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632955', 'tblTempUsageDetail_20' ) start [2025-03-08 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632955', 'tblTempUsageDetail_20' ) end [2025-03-08 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632955', 'tblTempVendorCDR_20' ) start [2025-03-08 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632955', 'tblTempVendorCDR_20' ) end [2025-03-08 05:17:18] Production.INFO: ProcessCDR(1,14632955,1,1,2) [2025-03-08 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632955', 'tblTempUsageDetail_20' ) start [2025-03-08 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632955', 'tblTempUsageDetail_20' ) end [2025-03-08 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:17:21] Production.INFO: ==29199== Releasing lock... [2025-03-08 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:17:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:18:05 [end_date_ymd] => 2025-03-08 05:18:05 [RateCDR] => 1 ) [2025-03-08 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:18:05' and `end` < '2025-03-08 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:18:17] Production.INFO: count ==350 [2025-03-08 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:18:05 - End Time 2025-03-08 05:18:05 [2025-03-08 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632960', 'tblTempUsageDetail_20' ) start [2025-03-08 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632960', 'tblTempUsageDetail_20' ) end [2025-03-08 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632960', 'tblTempVendorCDR_20' ) start [2025-03-08 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632960', 'tblTempVendorCDR_20' ) end [2025-03-08 05:18:17] Production.INFO: ProcessCDR(1,14632960,1,1,2) [2025-03-08 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632960', 'tblTempUsageDetail_20' ) start [2025-03-08 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632960', 'tblTempUsageDetail_20' ) end [2025-03-08 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:18:21] Production.INFO: ==29270== Releasing lock... [2025-03-08 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:19:05 [end_date_ymd] => 2025-03-08 05:19:05 [RateCDR] => 1 ) [2025-03-08 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:19:05' and `end` < '2025-03-08 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:19:17] Production.INFO: count ==348 [2025-03-08 05:19:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:19:05 - End Time 2025-03-08 05:19:05 [2025-03-08 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632965', 'tblTempUsageDetail_20' ) start [2025-03-08 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632965', 'tblTempUsageDetail_20' ) end [2025-03-08 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632965', 'tblTempVendorCDR_20' ) start [2025-03-08 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632965', 'tblTempVendorCDR_20' ) end [2025-03-08 05:19:17] Production.INFO: ProcessCDR(1,14632965,1,1,2) [2025-03-08 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632965', 'tblTempUsageDetail_20' ) start [2025-03-08 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632965', 'tblTempUsageDetail_20' ) end [2025-03-08 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:19:20] Production.INFO: ==29346== Releasing lock... [2025-03-08 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:19:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:20:06 [end_date_ymd] => 2025-03-08 05:20:06 [RateCDR] => 1 ) [2025-03-08 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:20:06' and `end` < '2025-03-08 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:20:19] Production.INFO: count ==348 [2025-03-08 05:20:19] Production.ERROR: pbx CDR StartTime 2025-03-08 02:20:06 - End Time 2025-03-08 05:20:06 [2025-03-08 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632971', 'tblTempUsageDetail_20' ) start [2025-03-08 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632971', 'tblTempUsageDetail_20' ) end [2025-03-08 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632971', 'tblTempVendorCDR_20' ) start [2025-03-08 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632971', 'tblTempVendorCDR_20' ) end [2025-03-08 05:20:19] Production.INFO: ProcessCDR(1,14632971,1,1,2) [2025-03-08 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632971', 'tblTempUsageDetail_20' ) start [2025-03-08 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632971', 'tblTempUsageDetail_20' ) end [2025-03-08 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:20:22] Production.INFO: ==29418== Releasing lock... [2025-03-08 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:20:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 05:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:21:04 [end_date_ymd] => 2025-03-08 05:21:04 [RateCDR] => 1 ) [2025-03-08 05:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:21:04' and `end` < '2025-03-08 05:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:21:16] Production.INFO: count ==351 [2025-03-08 05:21:16] Production.ERROR: pbx CDR StartTime 2025-03-08 02:21:04 - End Time 2025-03-08 05:21:04 [2025-03-08 05:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632976', 'tblTempUsageDetail_20' ) start [2025-03-08 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632976', 'tblTempUsageDetail_20' ) end [2025-03-08 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632976', 'tblTempVendorCDR_20' ) start [2025-03-08 05:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632976', 'tblTempVendorCDR_20' ) end [2025-03-08 05:21:16] Production.INFO: ProcessCDR(1,14632976,1,1,2) [2025-03-08 05:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632976', 'tblTempUsageDetail_20' ) start [2025-03-08 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632976', 'tblTempUsageDetail_20' ) end [2025-03-08 05:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:21:20] Production.INFO: ==29489== Releasing lock... [2025-03-08 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:21:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:22:05 [end_date_ymd] => 2025-03-08 05:22:05 [RateCDR] => 1 ) [2025-03-08 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:22:05' and `end` < '2025-03-08 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:22:17] Production.INFO: count ==353 [2025-03-08 05:22:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:22:05 - End Time 2025-03-08 05:22:05 [2025-03-08 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632980', 'tblTempUsageDetail_20' ) start [2025-03-08 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632980', 'tblTempUsageDetail_20' ) end [2025-03-08 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632980', 'tblTempVendorCDR_20' ) start [2025-03-08 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632980', 'tblTempVendorCDR_20' ) end [2025-03-08 05:22:17] Production.INFO: ProcessCDR(1,14632980,1,1,2) [2025-03-08 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632980', 'tblTempUsageDetail_20' ) start [2025-03-08 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632980', 'tblTempUsageDetail_20' ) end [2025-03-08 05:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:22:20] Production.INFO: ==29559== Releasing lock... [2025-03-08 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:22:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:23:05 [end_date_ymd] => 2025-03-08 05:23:05 [RateCDR] => 1 ) [2025-03-08 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:23:05' and `end` < '2025-03-08 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:23:17] Production.INFO: count ==353 [2025-03-08 05:23:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:23:05 - End Time 2025-03-08 05:23:05 [2025-03-08 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632986', 'tblTempUsageDetail_20' ) start [2025-03-08 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632986', 'tblTempUsageDetail_20' ) end [2025-03-08 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632986', 'tblTempVendorCDR_20' ) start [2025-03-08 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632986', 'tblTempVendorCDR_20' ) end [2025-03-08 05:23:17] Production.INFO: ProcessCDR(1,14632986,1,1,2) [2025-03-08 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632986', 'tblTempUsageDetail_20' ) start [2025-03-08 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632986', 'tblTempUsageDetail_20' ) end [2025-03-08 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:23:20] Production.INFO: ==29670== Releasing lock... [2025-03-08 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:23:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:24:05 [end_date_ymd] => 2025-03-08 05:24:05 [RateCDR] => 1 ) [2025-03-08 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:24:05' and `end` < '2025-03-08 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:24:17] Production.INFO: count ==349 [2025-03-08 05:24:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:24:05 - End Time 2025-03-08 05:24:05 [2025-03-08 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632991', 'tblTempUsageDetail_20' ) start [2025-03-08 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632991', 'tblTempUsageDetail_20' ) end [2025-03-08 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632991', 'tblTempVendorCDR_20' ) start [2025-03-08 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632991', 'tblTempVendorCDR_20' ) end [2025-03-08 05:24:17] Production.INFO: ProcessCDR(1,14632991,1,1,2) [2025-03-08 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632991', 'tblTempUsageDetail_20' ) start [2025-03-08 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632991', 'tblTempUsageDetail_20' ) end [2025-03-08 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:24:21] Production.INFO: ==29741== Releasing lock... [2025-03-08 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:24:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:25:05 [end_date_ymd] => 2025-03-08 05:25:05 [RateCDR] => 1 ) [2025-03-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-03-08 02:25:05' and `end` < '2025-03-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-03-08 05:25:17] Production.INFO: count ==349 [2025-03-08 05:25:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:25:05 - End Time 2025-03-08 05:25:05 [2025-03-08 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632996', 'tblTempUsageDetail_20' ) start [2025-03-08 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14632996', 'tblTempUsageDetail_20' ) end [2025-03-08 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632996', 'tblTempVendorCDR_20' ) start [2025-03-08 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14632996', 'tblTempVendorCDR_20' ) end [2025-03-08 05:25:17] Production.INFO: ProcessCDR(1,14632996,1,1,2) [2025-03-08 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14632996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14632996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14632996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14632996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632996', 'tblTempUsageDetail_20' ) start [2025-03-08 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14632996', 'tblTempUsageDetail_20' ) end [2025-03-08 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:25:21] Production.INFO: ==29812== Releasing lock... [2025-03-08 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:26:05 [end_date_ymd] => 2025-03-08 05:26:05 [RateCDR] => 1 ) [2025-03-08 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:26:05' and `end` < '2025-03-08 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:26:17] Production.INFO: count ==349 [2025-03-08 05:26:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:26:05 - End Time 2025-03-08 05:26:05 [2025-03-08 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633001', 'tblTempUsageDetail_20' ) start [2025-03-08 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633001', 'tblTempUsageDetail_20' ) end [2025-03-08 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633001', 'tblTempVendorCDR_20' ) start [2025-03-08 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633001', 'tblTempVendorCDR_20' ) end [2025-03-08 05:26:18] Production.INFO: ProcessCDR(1,14633001,1,1,2) [2025-03-08 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633001', 'tblTempUsageDetail_20' ) start [2025-03-08 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633001', 'tblTempUsageDetail_20' ) end [2025-03-08 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:26:21] Production.INFO: ==29884== Releasing lock... [2025-03-08 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:27:05 [end_date_ymd] => 2025-03-08 05:27:05 [RateCDR] => 1 ) [2025-03-08 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:27:05' and `end` < '2025-03-08 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:27:17] Production.INFO: count ==349 [2025-03-08 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:27:05 - End Time 2025-03-08 05:27:05 [2025-03-08 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633006', 'tblTempUsageDetail_20' ) start [2025-03-08 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633006', 'tblTempUsageDetail_20' ) end [2025-03-08 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633006', 'tblTempVendorCDR_20' ) start [2025-03-08 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633006', 'tblTempVendorCDR_20' ) end [2025-03-08 05:27:17] Production.INFO: ProcessCDR(1,14633006,1,1,2) [2025-03-08 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633006', 'tblTempUsageDetail_20' ) start [2025-03-08 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633006', 'tblTempUsageDetail_20' ) end [2025-03-08 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:27:20] Production.INFO: ==29954== Releasing lock... [2025-03-08 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:27:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:28:05 [end_date_ymd] => 2025-03-08 05:28:05 [RateCDR] => 1 ) [2025-03-08 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:28:05' and `end` < '2025-03-08 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:28:17] Production.INFO: count ==349 [2025-03-08 05:28:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:28:05 - End Time 2025-03-08 05:28:05 [2025-03-08 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633011', 'tblTempUsageDetail_20' ) start [2025-03-08 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633011', 'tblTempUsageDetail_20' ) end [2025-03-08 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633011', 'tblTempVendorCDR_20' ) start [2025-03-08 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633011', 'tblTempVendorCDR_20' ) end [2025-03-08 05:28:17] Production.INFO: ProcessCDR(1,14633011,1,1,2) [2025-03-08 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633011', 'tblTempUsageDetail_20' ) start [2025-03-08 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633011', 'tblTempUsageDetail_20' ) end [2025-03-08 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:28:20] Production.INFO: ==30033== Releasing lock... [2025-03-08 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:28:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:29:05 [end_date_ymd] => 2025-03-08 05:29:05 [RateCDR] => 1 ) [2025-03-08 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:29:05' and `end` < '2025-03-08 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:29:17] Production.INFO: count ==349 [2025-03-08 05:29:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:29:05 - End Time 2025-03-08 05:29:05 [2025-03-08 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633016', 'tblTempUsageDetail_20' ) start [2025-03-08 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633016', 'tblTempUsageDetail_20' ) end [2025-03-08 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633016', 'tblTempVendorCDR_20' ) start [2025-03-08 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633016', 'tblTempVendorCDR_20' ) end [2025-03-08 05:29:17] Production.INFO: ProcessCDR(1,14633016,1,1,2) [2025-03-08 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633016', 'tblTempUsageDetail_20' ) start [2025-03-08 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633016', 'tblTempUsageDetail_20' ) end [2025-03-08 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:29:20] Production.INFO: ==30108== Releasing lock... [2025-03-08 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:29:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:30:06 [end_date_ymd] => 2025-03-08 05:30:06 [RateCDR] => 1 ) [2025-03-08 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:30:06' and `end` < '2025-03-08 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:30:18] Production.INFO: count ==341 [2025-03-08 05:30:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:30:06 - End Time 2025-03-08 05:30:06 [2025-03-08 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633021', 'tblTempUsageDetail_20' ) start [2025-03-08 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633021', 'tblTempUsageDetail_20' ) end [2025-03-08 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633021', 'tblTempVendorCDR_20' ) start [2025-03-08 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633021', 'tblTempVendorCDR_20' ) end [2025-03-08 05:30:18] Production.INFO: ProcessCDR(1,14633021,1,1,2) [2025-03-08 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633021', 'tblTempUsageDetail_20' ) start [2025-03-08 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633021', 'tblTempUsageDetail_20' ) end [2025-03-08 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:30:21] Production.INFO: ==30184== Releasing lock... [2025-03-08 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:30:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:31:06 [end_date_ymd] => 2025-03-08 05:31:06 [RateCDR] => 1 ) [2025-03-08 05:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:31:06' and `end` < '2025-03-08 05:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:31:18] Production.INFO: count ==337 [2025-03-08 05:31:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:31:06 - End Time 2025-03-08 05:31:06 [2025-03-08 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633027', 'tblTempUsageDetail_20' ) start [2025-03-08 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633027', 'tblTempUsageDetail_20' ) end [2025-03-08 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633027', 'tblTempVendorCDR_20' ) start [2025-03-08 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633027', 'tblTempVendorCDR_20' ) end [2025-03-08 05:31:18] Production.INFO: ProcessCDR(1,14633027,1,1,2) [2025-03-08 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633027', 'tblTempUsageDetail_20' ) start [2025-03-08 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633027', 'tblTempUsageDetail_20' ) end [2025-03-08 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:31:21] Production.INFO: ==30256== Releasing lock... [2025-03-08 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:31:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:32:05 [end_date_ymd] => 2025-03-08 05:32:05 [RateCDR] => 1 ) [2025-03-08 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:32:05' and `end` < '2025-03-08 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:32:17] Production.INFO: count ==337 [2025-03-08 05:32:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:32:05 - End Time 2025-03-08 05:32:05 [2025-03-08 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633032', 'tblTempUsageDetail_20' ) start [2025-03-08 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633032', 'tblTempUsageDetail_20' ) end [2025-03-08 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633032', 'tblTempVendorCDR_20' ) start [2025-03-08 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633032', 'tblTempVendorCDR_20' ) end [2025-03-08 05:32:17] Production.INFO: ProcessCDR(1,14633032,1,1,2) [2025-03-08 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633032', 'tblTempUsageDetail_20' ) start [2025-03-08 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633032', 'tblTempUsageDetail_20' ) end [2025-03-08 05:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:32:20] Production.INFO: ==30329== Releasing lock... [2025-03-08 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:32:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:33:06 [end_date_ymd] => 2025-03-08 05:33:06 [RateCDR] => 1 ) [2025-03-08 05:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:33:06' and `end` < '2025-03-08 05:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:33:17] Production.INFO: count ==337 [2025-03-08 05:33:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:33:06 - End Time 2025-03-08 05:33:06 [2025-03-08 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633037', 'tblTempUsageDetail_20' ) start [2025-03-08 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633037', 'tblTempUsageDetail_20' ) end [2025-03-08 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633037', 'tblTempVendorCDR_20' ) start [2025-03-08 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633037', 'tblTempVendorCDR_20' ) end [2025-03-08 05:33:18] Production.INFO: ProcessCDR(1,14633037,1,1,2) [2025-03-08 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633037', 'tblTempUsageDetail_20' ) start [2025-03-08 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633037', 'tblTempUsageDetail_20' ) end [2025-03-08 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:33:21] Production.INFO: ==30401== Releasing lock... [2025-03-08 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:33:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:34:05 [end_date_ymd] => 2025-03-08 05:34:05 [RateCDR] => 1 ) [2025-03-08 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:34:05' and `end` < '2025-03-08 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:34:17] Production.INFO: count ==336 [2025-03-08 05:34:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:34:05 - End Time 2025-03-08 05:34:05 [2025-03-08 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633042', 'tblTempUsageDetail_20' ) start [2025-03-08 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633042', 'tblTempUsageDetail_20' ) end [2025-03-08 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633042', 'tblTempVendorCDR_20' ) start [2025-03-08 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633042', 'tblTempVendorCDR_20' ) end [2025-03-08 05:34:17] Production.INFO: ProcessCDR(1,14633042,1,1,2) [2025-03-08 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633042', 'tblTempUsageDetail_20' ) start [2025-03-08 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633042', 'tblTempUsageDetail_20' ) end [2025-03-08 05:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:34:20] Production.INFO: ==30473== Releasing lock... [2025-03-08 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:34:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:35:05 [end_date_ymd] => 2025-03-08 05:35:05 [RateCDR] => 1 ) [2025-03-08 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:35:05' and `end` < '2025-03-08 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:35:17] Production.INFO: count ==334 [2025-03-08 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:35:05 - End Time 2025-03-08 05:35:05 [2025-03-08 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633047', 'tblTempUsageDetail_20' ) start [2025-03-08 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633047', 'tblTempUsageDetail_20' ) end [2025-03-08 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633047', 'tblTempVendorCDR_20' ) start [2025-03-08 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633047', 'tblTempVendorCDR_20' ) end [2025-03-08 05:35:18] Production.INFO: ProcessCDR(1,14633047,1,1,2) [2025-03-08 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633047', 'tblTempUsageDetail_20' ) start [2025-03-08 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633047', 'tblTempUsageDetail_20' ) end [2025-03-08 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:35:21] Production.INFO: ==30546== Releasing lock... [2025-03-08 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:35:21] Production.INFO: 31 MB #Memory Used# [2025-03-08 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:36:05 [end_date_ymd] => 2025-03-08 05:36:05 [RateCDR] => 1 ) [2025-03-08 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:36:05' and `end` < '2025-03-08 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:36:17] Production.INFO: count ==334 [2025-03-08 05:36:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:36:05 - End Time 2025-03-08 05:36:05 [2025-03-08 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633052', 'tblTempUsageDetail_20' ) start [2025-03-08 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633052', 'tblTempUsageDetail_20' ) end [2025-03-08 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633052', 'tblTempVendorCDR_20' ) start [2025-03-08 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633052', 'tblTempVendorCDR_20' ) end [2025-03-08 05:36:17] Production.INFO: ProcessCDR(1,14633052,1,1,2) [2025-03-08 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633052', 'tblTempUsageDetail_20' ) start [2025-03-08 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633052', 'tblTempUsageDetail_20' ) end [2025-03-08 05:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:36:20] Production.INFO: ==30616== Releasing lock... [2025-03-08 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:36:20] Production.INFO: 31 MB #Memory Used# [2025-03-08 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:37:05 [end_date_ymd] => 2025-03-08 05:37:05 [RateCDR] => 1 ) [2025-03-08 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:37:05' and `end` < '2025-03-08 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:37:17] Production.INFO: count ==334 [2025-03-08 05:37:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:37:05 - End Time 2025-03-08 05:37:05 [2025-03-08 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633057', 'tblTempUsageDetail_20' ) start [2025-03-08 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633057', 'tblTempUsageDetail_20' ) end [2025-03-08 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633057', 'tblTempVendorCDR_20' ) start [2025-03-08 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633057', 'tblTempVendorCDR_20' ) end [2025-03-08 05:37:17] Production.INFO: ProcessCDR(1,14633057,1,1,2) [2025-03-08 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633057', 'tblTempUsageDetail_20' ) start [2025-03-08 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633057', 'tblTempUsageDetail_20' ) end [2025-03-08 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:37:20] Production.INFO: ==30687== Releasing lock... [2025-03-08 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:37:20] Production.INFO: 31 MB #Memory Used# [2025-03-08 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:38:05 [end_date_ymd] => 2025-03-08 05:38:05 [RateCDR] => 1 ) [2025-03-08 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:38:05' and `end` < '2025-03-08 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:38:17] Production.INFO: count ==334 [2025-03-08 05:38:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:38:05 - End Time 2025-03-08 05:38:05 [2025-03-08 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633062', 'tblTempUsageDetail_20' ) start [2025-03-08 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633062', 'tblTempUsageDetail_20' ) end [2025-03-08 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633062', 'tblTempVendorCDR_20' ) start [2025-03-08 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633062', 'tblTempVendorCDR_20' ) end [2025-03-08 05:38:17] Production.INFO: ProcessCDR(1,14633062,1,1,2) [2025-03-08 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633062', 'tblTempUsageDetail_20' ) start [2025-03-08 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633062', 'tblTempUsageDetail_20' ) end [2025-03-08 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:38:20] Production.INFO: ==30806== Releasing lock... [2025-03-08 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:38:20] Production.INFO: 31 MB #Memory Used# [2025-03-08 05:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:39:06 [end_date_ymd] => 2025-03-08 05:39:06 [RateCDR] => 1 ) [2025-03-08 05:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:39:06' and `end` < '2025-03-08 05:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:39:18] Production.INFO: count ==334 [2025-03-08 05:39:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:39:06 - End Time 2025-03-08 05:39:06 [2025-03-08 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633067', 'tblTempUsageDetail_20' ) start [2025-03-08 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633067', 'tblTempUsageDetail_20' ) end [2025-03-08 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633067', 'tblTempVendorCDR_20' ) start [2025-03-08 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633067', 'tblTempVendorCDR_20' ) end [2025-03-08 05:39:18] Production.INFO: ProcessCDR(1,14633067,1,1,2) [2025-03-08 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633067', 'tblTempUsageDetail_20' ) start [2025-03-08 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633067', 'tblTempUsageDetail_20' ) end [2025-03-08 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:39:21] Production.INFO: ==30880== Releasing lock... [2025-03-08 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:39:21] Production.INFO: 31 MB #Memory Used# [2025-03-08 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:40:06 [end_date_ymd] => 2025-03-08 05:40:06 [RateCDR] => 1 ) [2025-03-08 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:40:06' and `end` < '2025-03-08 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:40:18] Production.INFO: count ==326 [2025-03-08 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:40:06 - End Time 2025-03-08 05:40:06 [2025-03-08 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633073', 'tblTempUsageDetail_20' ) start [2025-03-08 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633073', 'tblTempUsageDetail_20' ) end [2025-03-08 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633073', 'tblTempVendorCDR_20' ) start [2025-03-08 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633073', 'tblTempVendorCDR_20' ) end [2025-03-08 05:40:18] Production.INFO: ProcessCDR(1,14633073,1,1,2) [2025-03-08 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633073', 'tblTempUsageDetail_20' ) start [2025-03-08 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633073', 'tblTempUsageDetail_20' ) end [2025-03-08 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:40:21] Production.INFO: ==30955== Releasing lock... [2025-03-08 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:40:21] Production.INFO: 31 MB #Memory Used# [2025-03-08 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:41:05 [end_date_ymd] => 2025-03-08 05:41:05 [RateCDR] => 1 ) [2025-03-08 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:41:05' and `end` < '2025-03-08 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:41:17] Production.INFO: count ==301 [2025-03-08 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:41:05 - End Time 2025-03-08 05:41:05 [2025-03-08 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633078', 'tblTempUsageDetail_20' ) start [2025-03-08 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633078', 'tblTempUsageDetail_20' ) end [2025-03-08 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633078', 'tblTempVendorCDR_20' ) start [2025-03-08 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633078', 'tblTempVendorCDR_20' ) end [2025-03-08 05:41:17] Production.INFO: ProcessCDR(1,14633078,1,1,2) [2025-03-08 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633078', 'tblTempUsageDetail_20' ) start [2025-03-08 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633078', 'tblTempUsageDetail_20' ) end [2025-03-08 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:41:20] Production.INFO: ==31029== Releasing lock... [2025-03-08 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:41:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:42:05 [end_date_ymd] => 2025-03-08 05:42:05 [RateCDR] => 1 ) [2025-03-08 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:42:05' and `end` < '2025-03-08 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:42:17] Production.INFO: count ==292 [2025-03-08 05:42:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:42:05 - End Time 2025-03-08 05:42:05 [2025-03-08 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633083', 'tblTempUsageDetail_20' ) start [2025-03-08 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633083', 'tblTempUsageDetail_20' ) end [2025-03-08 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633083', 'tblTempVendorCDR_20' ) start [2025-03-08 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633083', 'tblTempVendorCDR_20' ) end [2025-03-08 05:42:17] Production.INFO: ProcessCDR(1,14633083,1,1,2) [2025-03-08 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633083', 'tblTempUsageDetail_20' ) start [2025-03-08 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633083', 'tblTempUsageDetail_20' ) end [2025-03-08 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:42:20] Production.INFO: ==31105== Releasing lock... [2025-03-08 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:42:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-08 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:43:05 [end_date_ymd] => 2025-03-08 05:43:05 [RateCDR] => 1 ) [2025-03-08 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:43:05' and `end` < '2025-03-08 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:43:17] Production.INFO: count ==292 [2025-03-08 05:43:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:43:05 - End Time 2025-03-08 05:43:05 [2025-03-08 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633088', 'tblTempUsageDetail_20' ) start [2025-03-08 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633088', 'tblTempUsageDetail_20' ) end [2025-03-08 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633088', 'tblTempVendorCDR_20' ) start [2025-03-08 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633088', 'tblTempVendorCDR_20' ) end [2025-03-08 05:43:17] Production.INFO: ProcessCDR(1,14633088,1,1,2) [2025-03-08 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633088', 'tblTempUsageDetail_20' ) start [2025-03-08 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633088', 'tblTempUsageDetail_20' ) end [2025-03-08 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:43:20] Production.INFO: ==31187== Releasing lock... [2025-03-08 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:43:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-08 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:44:05 [end_date_ymd] => 2025-03-08 05:44:05 [RateCDR] => 1 ) [2025-03-08 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:44:05' and `end` < '2025-03-08 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:44:17] Production.INFO: count ==291 [2025-03-08 05:44:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:44:05 - End Time 2025-03-08 05:44:05 [2025-03-08 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633093', 'tblTempUsageDetail_20' ) start [2025-03-08 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633093', 'tblTempUsageDetail_20' ) end [2025-03-08 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633093', 'tblTempVendorCDR_20' ) start [2025-03-08 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633093', 'tblTempVendorCDR_20' ) end [2025-03-08 05:44:17] Production.INFO: ProcessCDR(1,14633093,1,1,2) [2025-03-08 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633093', 'tblTempUsageDetail_20' ) start [2025-03-08 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633093', 'tblTempUsageDetail_20' ) end [2025-03-08 05:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:44:20] Production.INFO: ==31269== Releasing lock... [2025-03-08 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:44:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-08 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:45:05 [end_date_ymd] => 2025-03-08 05:45:05 [RateCDR] => 1 ) [2025-03-08 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:45:05' and `end` < '2025-03-08 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:45:17] Production.INFO: count ==291 [2025-03-08 05:45:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:45:05 - End Time 2025-03-08 05:45:05 [2025-03-08 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633098', 'tblTempUsageDetail_20' ) start [2025-03-08 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633098', 'tblTempUsageDetail_20' ) end [2025-03-08 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633098', 'tblTempVendorCDR_20' ) start [2025-03-08 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633098', 'tblTempVendorCDR_20' ) end [2025-03-08 05:45:17] Production.INFO: ProcessCDR(1,14633098,1,1,2) [2025-03-08 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633098', 'tblTempUsageDetail_20' ) start [2025-03-08 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633098', 'tblTempUsageDetail_20' ) end [2025-03-08 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:45:20] Production.INFO: ==31355== Releasing lock... [2025-03-08 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:45:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-08 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:46:05 [end_date_ymd] => 2025-03-08 05:46:05 [RateCDR] => 1 ) [2025-03-08 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:46:05' and `end` < '2025-03-08 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:46:17] Production.INFO: count ==288 [2025-03-08 05:46:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:46:05 - End Time 2025-03-08 05:46:05 [2025-03-08 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633103', 'tblTempUsageDetail_20' ) start [2025-03-08 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633103', 'tblTempUsageDetail_20' ) end [2025-03-08 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633103', 'tblTempVendorCDR_20' ) start [2025-03-08 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633103', 'tblTempVendorCDR_20' ) end [2025-03-08 05:46:17] Production.INFO: ProcessCDR(1,14633103,1,1,2) [2025-03-08 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633103', 'tblTempUsageDetail_20' ) start [2025-03-08 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633103', 'tblTempUsageDetail_20' ) end [2025-03-08 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:46:20] Production.INFO: ==31435== Releasing lock... [2025-03-08 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:46:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:47:05 [end_date_ymd] => 2025-03-08 05:47:05 [RateCDR] => 1 ) [2025-03-08 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:47:05' and `end` < '2025-03-08 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:47:17] Production.INFO: count ==288 [2025-03-08 05:47:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:47:05 - End Time 2025-03-08 05:47:05 [2025-03-08 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633108', 'tblTempUsageDetail_20' ) start [2025-03-08 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633108', 'tblTempUsageDetail_20' ) end [2025-03-08 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633108', 'tblTempVendorCDR_20' ) start [2025-03-08 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633108', 'tblTempVendorCDR_20' ) end [2025-03-08 05:47:17] Production.INFO: ProcessCDR(1,14633108,1,1,2) [2025-03-08 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633108', 'tblTempUsageDetail_20' ) start [2025-03-08 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633108', 'tblTempUsageDetail_20' ) end [2025-03-08 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:47:20] Production.INFO: ==31517== Releasing lock... [2025-03-08 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:47:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:48:05 [end_date_ymd] => 2025-03-08 05:48:05 [RateCDR] => 1 ) [2025-03-08 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:48:05' and `end` < '2025-03-08 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:48:17] Production.INFO: count ==288 [2025-03-08 05:48:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:48:05 - End Time 2025-03-08 05:48:05 [2025-03-08 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633113', 'tblTempUsageDetail_20' ) start [2025-03-08 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633113', 'tblTempUsageDetail_20' ) end [2025-03-08 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633113', 'tblTempVendorCDR_20' ) start [2025-03-08 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633113', 'tblTempVendorCDR_20' ) end [2025-03-08 05:48:17] Production.INFO: ProcessCDR(1,14633113,1,1,2) [2025-03-08 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633113', 'tblTempUsageDetail_20' ) start [2025-03-08 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633113', 'tblTempUsageDetail_20' ) end [2025-03-08 05:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:48:20] Production.INFO: ==31598== Releasing lock... [2025-03-08 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:48:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:49:05 [end_date_ymd] => 2025-03-08 05:49:05 [RateCDR] => 1 ) [2025-03-08 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:49:05' and `end` < '2025-03-08 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:49:17] Production.INFO: count ==285 [2025-03-08 05:49:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:49:05 - End Time 2025-03-08 05:49:05 [2025-03-08 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633118', 'tblTempUsageDetail_20' ) start [2025-03-08 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633118', 'tblTempUsageDetail_20' ) end [2025-03-08 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633118', 'tblTempVendorCDR_20' ) start [2025-03-08 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633118', 'tblTempVendorCDR_20' ) end [2025-03-08 05:49:17] Production.INFO: ProcessCDR(1,14633118,1,1,2) [2025-03-08 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633118', 'tblTempUsageDetail_20' ) start [2025-03-08 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633118', 'tblTempUsageDetail_20' ) end [2025-03-08 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:49:21] Production.INFO: ==31682== Releasing lock... [2025-03-08 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:49:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-08 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:50:06 [end_date_ymd] => 2025-03-08 05:50:06 [RateCDR] => 1 ) [2025-03-08 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:50:06' and `end` < '2025-03-08 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:50:18] Production.INFO: count ==279 [2025-03-08 05:50:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:50:06 - End Time 2025-03-08 05:50:06 [2025-03-08 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633123', 'tblTempUsageDetail_20' ) start [2025-03-08 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633123', 'tblTempUsageDetail_20' ) end [2025-03-08 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633123', 'tblTempVendorCDR_20' ) start [2025-03-08 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633123', 'tblTempVendorCDR_20' ) end [2025-03-08 05:50:18] Production.INFO: ProcessCDR(1,14633123,1,1,2) [2025-03-08 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633123', 'tblTempUsageDetail_20' ) start [2025-03-08 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633123', 'tblTempUsageDetail_20' ) end [2025-03-08 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:50:21] Production.INFO: ==31764== Releasing lock... [2025-03-08 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:50:21] Production.INFO: 30 MB #Memory Used# [2025-03-08 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:51:05 [end_date_ymd] => 2025-03-08 05:51:05 [RateCDR] => 1 ) [2025-03-08 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:51:05' and `end` < '2025-03-08 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:51:17] Production.INFO: count ==279 [2025-03-08 05:51:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:51:05 - End Time 2025-03-08 05:51:05 [2025-03-08 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633129', 'tblTempUsageDetail_20' ) start [2025-03-08 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633129', 'tblTempUsageDetail_20' ) end [2025-03-08 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633129', 'tblTempVendorCDR_20' ) start [2025-03-08 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633129', 'tblTempVendorCDR_20' ) end [2025-03-08 05:51:17] Production.INFO: ProcessCDR(1,14633129,1,1,2) [2025-03-08 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633129', 'tblTempUsageDetail_20' ) start [2025-03-08 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633129', 'tblTempUsageDetail_20' ) end [2025-03-08 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:51:20] Production.INFO: ==31845== Releasing lock... [2025-03-08 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:51:20] Production.INFO: 30 MB #Memory Used# [2025-03-08 05:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:52:06 [end_date_ymd] => 2025-03-08 05:52:06 [RateCDR] => 1 ) [2025-03-08 05:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:52:06' and `end` < '2025-03-08 05:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:52:18] Production.INFO: count ==273 [2025-03-08 05:52:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:52:06 - End Time 2025-03-08 05:52:06 [2025-03-08 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633134', 'tblTempUsageDetail_20' ) start [2025-03-08 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633134', 'tblTempUsageDetail_20' ) end [2025-03-08 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633134', 'tblTempVendorCDR_20' ) start [2025-03-08 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633134', 'tblTempVendorCDR_20' ) end [2025-03-08 05:52:18] Production.INFO: ProcessCDR(1,14633134,1,1,2) [2025-03-08 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633134', 'tblTempUsageDetail_20' ) start [2025-03-08 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633134', 'tblTempUsageDetail_20' ) end [2025-03-08 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:52:21] Production.INFO: ==31923== Releasing lock... [2025-03-08 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:52:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-08 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:53:05 [end_date_ymd] => 2025-03-08 05:53:05 [RateCDR] => 1 ) [2025-03-08 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:53:05' and `end` < '2025-03-08 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:53:17] Production.INFO: count ==272 [2025-03-08 05:53:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:53:05 - End Time 2025-03-08 05:53:05 [2025-03-08 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633139', 'tblTempUsageDetail_20' ) start [2025-03-08 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633139', 'tblTempUsageDetail_20' ) end [2025-03-08 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633139', 'tblTempVendorCDR_20' ) start [2025-03-08 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633139', 'tblTempVendorCDR_20' ) end [2025-03-08 05:53:17] Production.INFO: ProcessCDR(1,14633139,1,1,2) [2025-03-08 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633139', 'tblTempUsageDetail_20' ) start [2025-03-08 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633139', 'tblTempUsageDetail_20' ) end [2025-03-08 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:53:20] Production.INFO: ==32002== Releasing lock... [2025-03-08 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:53:20] Production.INFO: 31 MB #Memory Used# [2025-03-08 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:54:05 [end_date_ymd] => 2025-03-08 05:54:05 [RateCDR] => 1 ) [2025-03-08 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:54:05' and `end` < '2025-03-08 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:54:17] Production.INFO: count ==272 [2025-03-08 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:54:05 - End Time 2025-03-08 05:54:05 [2025-03-08 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633144', 'tblTempUsageDetail_20' ) start [2025-03-08 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633144', 'tblTempUsageDetail_20' ) end [2025-03-08 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633144', 'tblTempVendorCDR_20' ) start [2025-03-08 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633144', 'tblTempVendorCDR_20' ) end [2025-03-08 05:54:17] Production.INFO: ProcessCDR(1,14633144,1,1,2) [2025-03-08 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633144', 'tblTempUsageDetail_20' ) start [2025-03-08 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633144', 'tblTempUsageDetail_20' ) end [2025-03-08 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:54:20] Production.INFO: ==32124== Releasing lock... [2025-03-08 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:54:20] Production.INFO: 31 MB #Memory Used# [2025-03-08 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:55:05 [end_date_ymd] => 2025-03-08 05:55:05 [RateCDR] => 1 ) [2025-03-08 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:55:05' and `end` < '2025-03-08 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:55:17] Production.INFO: count ==273 [2025-03-08 05:55:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:55:05 - End Time 2025-03-08 05:55:05 [2025-03-08 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633149', 'tblTempUsageDetail_20' ) start [2025-03-08 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633149', 'tblTempUsageDetail_20' ) end [2025-03-08 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633149', 'tblTempVendorCDR_20' ) start [2025-03-08 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633149', 'tblTempVendorCDR_20' ) end [2025-03-08 05:55:18] Production.INFO: ProcessCDR(1,14633149,1,1,2) [2025-03-08 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633149', 'tblTempUsageDetail_20' ) start [2025-03-08 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633149', 'tblTempUsageDetail_20' ) end [2025-03-08 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:55:21] Production.INFO: ==32204== Releasing lock... [2025-03-08 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-08 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:56:05 [end_date_ymd] => 2025-03-08 05:56:05 [RateCDR] => 1 ) [2025-03-08 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:56:05' and `end` < '2025-03-08 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:56:17] Production.INFO: count ==275 [2025-03-08 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:56:05 - End Time 2025-03-08 05:56:05 [2025-03-08 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633154', 'tblTempUsageDetail_20' ) start [2025-03-08 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633154', 'tblTempUsageDetail_20' ) end [2025-03-08 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633154', 'tblTempVendorCDR_20' ) start [2025-03-08 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633154', 'tblTempVendorCDR_20' ) end [2025-03-08 05:56:17] Production.INFO: ProcessCDR(1,14633154,1,1,2) [2025-03-08 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633154', 'tblTempUsageDetail_20' ) start [2025-03-08 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633154', 'tblTempUsageDetail_20' ) end [2025-03-08 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:56:21] Production.INFO: ==32286== Releasing lock... [2025-03-08 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:56:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-08 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:57:05 [end_date_ymd] => 2025-03-08 05:57:05 [RateCDR] => 1 ) [2025-03-08 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:57:05' and `end` < '2025-03-08 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:57:17] Production.INFO: count ==278 [2025-03-08 05:57:17] Production.ERROR: pbx CDR StartTime 2025-03-08 02:57:05 - End Time 2025-03-08 05:57:05 [2025-03-08 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633159', 'tblTempUsageDetail_20' ) start [2025-03-08 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633159', 'tblTempUsageDetail_20' ) end [2025-03-08 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633159', 'tblTempVendorCDR_20' ) start [2025-03-08 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633159', 'tblTempVendorCDR_20' ) end [2025-03-08 05:57:17] Production.INFO: ProcessCDR(1,14633159,1,1,2) [2025-03-08 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633159', 'tblTempUsageDetail_20' ) start [2025-03-08 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633159', 'tblTempUsageDetail_20' ) end [2025-03-08 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:57:20] Production.INFO: ==32368== Releasing lock... [2025-03-08 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:57:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:58:05 [end_date_ymd] => 2025-03-08 05:58:05 [RateCDR] => 1 ) [2025-03-08 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:58:05' and `end` < '2025-03-08 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:58:17] Production.INFO: count ==278 [2025-03-08 05:58:18] Production.ERROR: pbx CDR StartTime 2025-03-08 02:58:05 - End Time 2025-03-08 05:58:05 [2025-03-08 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633164', 'tblTempUsageDetail_20' ) start [2025-03-08 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633164', 'tblTempUsageDetail_20' ) end [2025-03-08 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633164', 'tblTempVendorCDR_20' ) start [2025-03-08 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633164', 'tblTempVendorCDR_20' ) end [2025-03-08 05:58:18] Production.INFO: ProcessCDR(1,14633164,1,1,2) [2025-03-08 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633164', 'tblTempUsageDetail_20' ) start [2025-03-08 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633164', 'tblTempUsageDetail_20' ) end [2025-03-08 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:58:21] Production.INFO: ==32452== Releasing lock... [2025-03-08 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 05:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 02:59:04 [end_date_ymd] => 2025-03-08 05:59:04 [RateCDR] => 1 ) [2025-03-08 05:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 02:59:04' and `end` < '2025-03-08 05:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 05:59:16] Production.INFO: count ==278 [2025-03-08 05:59:16] Production.ERROR: pbx CDR StartTime 2025-03-08 02:59:04 - End Time 2025-03-08 05:59:04 [2025-03-08 05:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633169', 'tblTempUsageDetail_20' ) start [2025-03-08 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633169', 'tblTempUsageDetail_20' ) end [2025-03-08 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633169', 'tblTempVendorCDR_20' ) start [2025-03-08 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633169', 'tblTempVendorCDR_20' ) end [2025-03-08 05:59:16] Production.INFO: ProcessCDR(1,14633169,1,1,2) [2025-03-08 05:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:59:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 05:59:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633169', 'tblTempUsageDetail_20' ) start [2025-03-08 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633169', 'tblTempUsageDetail_20' ) end [2025-03-08 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 05:59:20] Production.INFO: ==32533== Releasing lock... [2025-03-08 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 05:59:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:00:06 [end_date_ymd] => 2025-03-08 06:00:06 [RateCDR] => 1 ) [2025-03-08 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:00:06' and `end` < '2025-03-08 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:00:18] Production.INFO: count ==270 [2025-03-08 06:00:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:00:06 - End Time 2025-03-08 06:00:06 [2025-03-08 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633174', 'tblTempUsageDetail_20' ) start [2025-03-08 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633174', 'tblTempUsageDetail_20' ) end [2025-03-08 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633174', 'tblTempVendorCDR_20' ) start [2025-03-08 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633174', 'tblTempVendorCDR_20' ) end [2025-03-08 06:00:18] Production.INFO: ProcessCDR(1,14633174,1,1,2) [2025-03-08 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633174', 'tblTempUsageDetail_20' ) start [2025-03-08 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633174', 'tblTempUsageDetail_20' ) end [2025-03-08 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:00:21] Production.INFO: ==32619== Releasing lock... [2025-03-08 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:00:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 06:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:01:04 [end_date_ymd] => 2025-03-08 06:01:04 [RateCDR] => 1 ) [2025-03-08 06:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:01:04' and `end` < '2025-03-08 06:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:01:17] Production.INFO: count ==270 [2025-03-08 06:01:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:01:04 - End Time 2025-03-08 06:01:04 [2025-03-08 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633180', 'tblTempUsageDetail_20' ) start [2025-03-08 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633180', 'tblTempUsageDetail_20' ) end [2025-03-08 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633180', 'tblTempVendorCDR_20' ) start [2025-03-08 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633180', 'tblTempVendorCDR_20' ) end [2025-03-08 06:01:17] Production.INFO: ProcessCDR(1,14633180,1,1,2) [2025-03-08 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633180', 'tblTempUsageDetail_20' ) start [2025-03-08 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633180', 'tblTempUsageDetail_20' ) end [2025-03-08 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:01:20] Production.INFO: ==32710== Releasing lock... [2025-03-08 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:01:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:02:05 [end_date_ymd] => 2025-03-08 06:02:05 [RateCDR] => 1 ) [2025-03-08 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:02:05' and `end` < '2025-03-08 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:02:17] Production.INFO: count ==270 [2025-03-08 06:02:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:02:05 - End Time 2025-03-08 06:02:05 [2025-03-08 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633185', 'tblTempUsageDetail_20' ) start [2025-03-08 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633185', 'tblTempUsageDetail_20' ) end [2025-03-08 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633185', 'tblTempVendorCDR_20' ) start [2025-03-08 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633185', 'tblTempVendorCDR_20' ) end [2025-03-08 06:02:17] Production.INFO: ProcessCDR(1,14633185,1,1,2) [2025-03-08 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633185', 'tblTempUsageDetail_20' ) start [2025-03-08 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633185', 'tblTempUsageDetail_20' ) end [2025-03-08 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:02:21] Production.INFO: ==332== Releasing lock... [2025-03-08 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 06:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:03:06 [end_date_ymd] => 2025-03-08 06:03:06 [RateCDR] => 1 ) [2025-03-08 06:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:03:06' and `end` < '2025-03-08 06:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:03:18] Production.INFO: count ==267 [2025-03-08 06:03:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:03:06 - End Time 2025-03-08 06:03:06 [2025-03-08 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633190', 'tblTempUsageDetail_20' ) start [2025-03-08 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633190', 'tblTempUsageDetail_20' ) end [2025-03-08 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633190', 'tblTempVendorCDR_20' ) start [2025-03-08 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633190', 'tblTempVendorCDR_20' ) end [2025-03-08 06:03:18] Production.INFO: ProcessCDR(1,14633190,1,1,2) [2025-03-08 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633190', 'tblTempUsageDetail_20' ) start [2025-03-08 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633190', 'tblTempUsageDetail_20' ) end [2025-03-08 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:03:21] Production.INFO: ==423== Releasing lock... [2025-03-08 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:03:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-08 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:04:05 [end_date_ymd] => 2025-03-08 06:04:05 [RateCDR] => 1 ) [2025-03-08 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:04:05' and `end` < '2025-03-08 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:04:17] Production.INFO: count ==270 [2025-03-08 06:04:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:04:05 - End Time 2025-03-08 06:04:05 [2025-03-08 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633195', 'tblTempUsageDetail_20' ) start [2025-03-08 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633195', 'tblTempUsageDetail_20' ) end [2025-03-08 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633195', 'tblTempVendorCDR_20' ) start [2025-03-08 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633195', 'tblTempVendorCDR_20' ) end [2025-03-08 06:04:17] Production.INFO: ProcessCDR(1,14633195,1,1,2) [2025-03-08 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633195', 'tblTempUsageDetail_20' ) start [2025-03-08 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633195', 'tblTempUsageDetail_20' ) end [2025-03-08 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:04:21] Production.INFO: ==505== Releasing lock... [2025-03-08 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:04:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:05:05 [end_date_ymd] => 2025-03-08 06:05:05 [RateCDR] => 1 ) [2025-03-08 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:05:05' and `end` < '2025-03-08 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:05:17] Production.INFO: count ==270 [2025-03-08 06:05:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:05:05 - End Time 2025-03-08 06:05:05 [2025-03-08 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633200', 'tblTempUsageDetail_20' ) start [2025-03-08 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633200', 'tblTempUsageDetail_20' ) end [2025-03-08 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633200', 'tblTempVendorCDR_20' ) start [2025-03-08 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633200', 'tblTempVendorCDR_20' ) end [2025-03-08 06:05:17] Production.INFO: ProcessCDR(1,14633200,1,1,2) [2025-03-08 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633200', 'tblTempUsageDetail_20' ) start [2025-03-08 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633200', 'tblTempUsageDetail_20' ) end [2025-03-08 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:05:21] Production.INFO: ==591== Releasing lock... [2025-03-08 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:06:05 [end_date_ymd] => 2025-03-08 06:06:05 [RateCDR] => 1 ) [2025-03-08 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:06:05' and `end` < '2025-03-08 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:06:17] Production.INFO: count ==270 [2025-03-08 06:06:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:06:05 - End Time 2025-03-08 06:06:05 [2025-03-08 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633205', 'tblTempUsageDetail_20' ) start [2025-03-08 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633205', 'tblTempUsageDetail_20' ) end [2025-03-08 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633205', 'tblTempVendorCDR_20' ) start [2025-03-08 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633205', 'tblTempVendorCDR_20' ) end [2025-03-08 06:06:17] Production.INFO: ProcessCDR(1,14633205,1,1,2) [2025-03-08 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633205', 'tblTempUsageDetail_20' ) start [2025-03-08 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633205', 'tblTempUsageDetail_20' ) end [2025-03-08 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:06:20] Production.INFO: ==700== Releasing lock... [2025-03-08 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:06:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:07:06 [end_date_ymd] => 2025-03-08 06:07:06 [RateCDR] => 1 ) [2025-03-08 06:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:07:06' and `end` < '2025-03-08 06:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:07:18] Production.INFO: count ==270 [2025-03-08 06:07:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:07:06 - End Time 2025-03-08 06:07:06 [2025-03-08 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633210', 'tblTempUsageDetail_20' ) start [2025-03-08 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633210', 'tblTempUsageDetail_20' ) end [2025-03-08 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633210', 'tblTempVendorCDR_20' ) start [2025-03-08 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633210', 'tblTempVendorCDR_20' ) end [2025-03-08 06:07:18] Production.INFO: ProcessCDR(1,14633210,1,1,2) [2025-03-08 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633210', 'tblTempUsageDetail_20' ) start [2025-03-08 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633210', 'tblTempUsageDetail_20' ) end [2025-03-08 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:07:21] Production.INFO: ==794== Releasing lock... [2025-03-08 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 06:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:08:04 [end_date_ymd] => 2025-03-08 06:08:04 [RateCDR] => 1 ) [2025-03-08 06:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:08:04' and `end` < '2025-03-08 06:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:08:16] Production.INFO: count ==266 [2025-03-08 06:08:16] Production.ERROR: pbx CDR StartTime 2025-03-08 03:08:04 - End Time 2025-03-08 06:08:04 [2025-03-08 06:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633215', 'tblTempUsageDetail_20' ) start [2025-03-08 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633215', 'tblTempUsageDetail_20' ) end [2025-03-08 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633215', 'tblTempVendorCDR_20' ) start [2025-03-08 06:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633215', 'tblTempVendorCDR_20' ) end [2025-03-08 06:08:16] Production.INFO: ProcessCDR(1,14633215,1,1,2) [2025-03-08 06:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:08:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:08:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633215', 'tblTempUsageDetail_20' ) start [2025-03-08 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633215', 'tblTempUsageDetail_20' ) end [2025-03-08 06:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:08:20] Production.INFO: ==879== Releasing lock... [2025-03-08 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:08:20] Production.INFO: 31 MB #Memory Used# [2025-03-08 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:09:05 [end_date_ymd] => 2025-03-08 06:09:05 [RateCDR] => 1 ) [2025-03-08 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:09:05' and `end` < '2025-03-08 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:09:18] Production.INFO: count ==258 [2025-03-08 06:09:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:09:05 - End Time 2025-03-08 06:09:05 [2025-03-08 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633220', 'tblTempUsageDetail_20' ) start [2025-03-08 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633220', 'tblTempUsageDetail_20' ) end [2025-03-08 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633220', 'tblTempVendorCDR_20' ) start [2025-03-08 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633220', 'tblTempVendorCDR_20' ) end [2025-03-08 06:09:18] Production.INFO: ProcessCDR(1,14633220,1,1,2) [2025-03-08 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633220', 'tblTempUsageDetail_20' ) start [2025-03-08 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633220', 'tblTempUsageDetail_20' ) end [2025-03-08 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:09:21] Production.INFO: ==1002== Releasing lock... [2025-03-08 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:10:06 [end_date_ymd] => 2025-03-08 06:10:06 [RateCDR] => 1 ) [2025-03-08 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:10:06' and `end` < '2025-03-08 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:10:18] Production.INFO: count ==240 [2025-03-08 06:10:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:10:06 - End Time 2025-03-08 06:10:06 [2025-03-08 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633226', 'tblTempUsageDetail_20' ) start [2025-03-08 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633226', 'tblTempUsageDetail_20' ) end [2025-03-08 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633226', 'tblTempVendorCDR_20' ) start [2025-03-08 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633226', 'tblTempVendorCDR_20' ) end [2025-03-08 06:10:18] Production.INFO: ProcessCDR(1,14633226,1,1,2) [2025-03-08 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633226', 'tblTempUsageDetail_20' ) start [2025-03-08 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633226', 'tblTempUsageDetail_20' ) end [2025-03-08 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:10:21] Production.INFO: ==1091== Releasing lock... [2025-03-08 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:10:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-08 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:11:05 [end_date_ymd] => 2025-03-08 06:11:05 [RateCDR] => 1 ) [2025-03-08 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:11:05' and `end` < '2025-03-08 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:11:17] Production.INFO: count ==232 [2025-03-08 06:11:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:11:05 - End Time 2025-03-08 06:11:05 [2025-03-08 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633231', 'tblTempUsageDetail_20' ) start [2025-03-08 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633231', 'tblTempUsageDetail_20' ) end [2025-03-08 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633231', 'tblTempVendorCDR_20' ) start [2025-03-08 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633231', 'tblTempVendorCDR_20' ) end [2025-03-08 06:11:17] Production.INFO: ProcessCDR(1,14633231,1,1,2) [2025-03-08 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633231', 'tblTempUsageDetail_20' ) start [2025-03-08 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633231', 'tblTempUsageDetail_20' ) end [2025-03-08 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:11:20] Production.INFO: ==1196== Releasing lock... [2025-03-08 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:11:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-08 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:12:05 [end_date_ymd] => 2025-03-08 06:12:05 [RateCDR] => 1 ) [2025-03-08 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:12:05' and `end` < '2025-03-08 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:12:17] Production.INFO: count ==226 [2025-03-08 06:12:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:12:05 - End Time 2025-03-08 06:12:05 [2025-03-08 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633236', 'tblTempUsageDetail_20' ) start [2025-03-08 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633236', 'tblTempUsageDetail_20' ) end [2025-03-08 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633236', 'tblTempVendorCDR_20' ) start [2025-03-08 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633236', 'tblTempVendorCDR_20' ) end [2025-03-08 06:12:17] Production.INFO: ProcessCDR(1,14633236,1,1,2) [2025-03-08 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633236', 'tblTempUsageDetail_20' ) start [2025-03-08 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633236', 'tblTempUsageDetail_20' ) end [2025-03-08 06:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:12:20] Production.INFO: ==1292== Releasing lock... [2025-03-08 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:12:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-08 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:13:05 [end_date_ymd] => 2025-03-08 06:13:05 [RateCDR] => 1 ) [2025-03-08 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:13:05' and `end` < '2025-03-08 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:13:17] Production.INFO: count ==219 [2025-03-08 06:13:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:13:05 - End Time 2025-03-08 06:13:05 [2025-03-08 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633241', 'tblTempUsageDetail_20' ) start [2025-03-08 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633241', 'tblTempUsageDetail_20' ) end [2025-03-08 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633241', 'tblTempVendorCDR_20' ) start [2025-03-08 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633241', 'tblTempVendorCDR_20' ) end [2025-03-08 06:13:17] Production.INFO: ProcessCDR(1,14633241,1,1,2) [2025-03-08 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633241', 'tblTempUsageDetail_20' ) start [2025-03-08 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633241', 'tblTempUsageDetail_20' ) end [2025-03-08 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:13:20] Production.INFO: ==1386== Releasing lock... [2025-03-08 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:13:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:14:05 [end_date_ymd] => 2025-03-08 06:14:05 [RateCDR] => 1 ) [2025-03-08 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:14:05' and `end` < '2025-03-08 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:14:17] Production.INFO: count ==215 [2025-03-08 06:14:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:14:05 - End Time 2025-03-08 06:14:05 [2025-03-08 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633246', 'tblTempUsageDetail_20' ) start [2025-03-08 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633246', 'tblTempUsageDetail_20' ) end [2025-03-08 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633246', 'tblTempVendorCDR_20' ) start [2025-03-08 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633246', 'tblTempVendorCDR_20' ) end [2025-03-08 06:14:17] Production.INFO: ProcessCDR(1,14633246,1,1,2) [2025-03-08 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633246', 'tblTempUsageDetail_20' ) start [2025-03-08 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633246', 'tblTempUsageDetail_20' ) end [2025-03-08 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:14:20] Production.INFO: ==1475== Releasing lock... [2025-03-08 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:14:20] Production.INFO: 30 MB #Memory Used# [2025-03-08 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:15:05 [end_date_ymd] => 2025-03-08 06:15:05 [RateCDR] => 1 ) [2025-03-08 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:15:05' and `end` < '2025-03-08 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:15:17] Production.INFO: count ==211 [2025-03-08 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:15:05 - End Time 2025-03-08 06:15:05 [2025-03-08 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633251', 'tblTempUsageDetail_20' ) start [2025-03-08 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633251', 'tblTempUsageDetail_20' ) end [2025-03-08 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633251', 'tblTempVendorCDR_20' ) start [2025-03-08 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633251', 'tblTempVendorCDR_20' ) end [2025-03-08 06:15:17] Production.INFO: ProcessCDR(1,14633251,1,1,2) [2025-03-08 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633251', 'tblTempUsageDetail_20' ) start [2025-03-08 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633251', 'tblTempUsageDetail_20' ) end [2025-03-08 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:15:21] Production.INFO: ==1605== Releasing lock... [2025-03-08 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:15:21] Production.INFO: 30 MB #Memory Used# [2025-03-08 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:16:05 [end_date_ymd] => 2025-03-08 06:16:05 [RateCDR] => 1 ) [2025-03-08 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:16:05' and `end` < '2025-03-08 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:16:17] Production.INFO: count ==201 [2025-03-08 06:16:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:16:05 - End Time 2025-03-08 06:16:05 [2025-03-08 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633256', 'tblTempUsageDetail_20' ) start [2025-03-08 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633256', 'tblTempUsageDetail_20' ) end [2025-03-08 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633256', 'tblTempVendorCDR_20' ) start [2025-03-08 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633256', 'tblTempVendorCDR_20' ) end [2025-03-08 06:16:17] Production.INFO: ProcessCDR(1,14633256,1,1,2) [2025-03-08 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633256', 'tblTempUsageDetail_20' ) start [2025-03-08 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633256', 'tblTempUsageDetail_20' ) end [2025-03-08 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:16:20] Production.INFO: ==1696== Releasing lock... [2025-03-08 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:16:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:17:05 [end_date_ymd] => 2025-03-08 06:17:05 [RateCDR] => 1 ) [2025-03-08 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:17:05' and `end` < '2025-03-08 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:17:17] Production.INFO: count ==193 [2025-03-08 06:17:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:17:05 - End Time 2025-03-08 06:17:05 [2025-03-08 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633261', 'tblTempUsageDetail_20' ) start [2025-03-08 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633261', 'tblTempUsageDetail_20' ) end [2025-03-08 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633261', 'tblTempVendorCDR_20' ) start [2025-03-08 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633261', 'tblTempVendorCDR_20' ) end [2025-03-08 06:17:17] Production.INFO: ProcessCDR(1,14633261,1,1,2) [2025-03-08 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633261', 'tblTempUsageDetail_20' ) start [2025-03-08 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633261', 'tblTempUsageDetail_20' ) end [2025-03-08 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:17:20] Production.INFO: ==1791== Releasing lock... [2025-03-08 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:17:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:18:06 [end_date_ymd] => 2025-03-08 06:18:06 [RateCDR] => 1 ) [2025-03-08 06:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:18:06' and `end` < '2025-03-08 06:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:18:17] Production.INFO: count ==189 [2025-03-08 06:18:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:18:06 - End Time 2025-03-08 06:18:06 [2025-03-08 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633266', 'tblTempUsageDetail_20' ) start [2025-03-08 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633266', 'tblTempUsageDetail_20' ) end [2025-03-08 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633266', 'tblTempVendorCDR_20' ) start [2025-03-08 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633266', 'tblTempVendorCDR_20' ) end [2025-03-08 06:18:18] Production.INFO: ProcessCDR(1,14633266,1,1,2) [2025-03-08 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633266', 'tblTempUsageDetail_20' ) start [2025-03-08 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633266', 'tblTempUsageDetail_20' ) end [2025-03-08 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:18:21] Production.INFO: ==1886== Releasing lock... [2025-03-08 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:18:21] Production.INFO: 30 MB #Memory Used# [2025-03-08 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:19:05 [end_date_ymd] => 2025-03-08 06:19:05 [RateCDR] => 1 ) [2025-03-08 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:19:05' and `end` < '2025-03-08 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:19:17] Production.INFO: count ==179 [2025-03-08 06:19:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:19:05 - End Time 2025-03-08 06:19:05 [2025-03-08 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633271', 'tblTempUsageDetail_20' ) start [2025-03-08 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633271', 'tblTempUsageDetail_20' ) end [2025-03-08 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633271', 'tblTempVendorCDR_20' ) start [2025-03-08 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633271', 'tblTempVendorCDR_20' ) end [2025-03-08 06:19:17] Production.INFO: ProcessCDR(1,14633271,1,1,2) [2025-03-08 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633271', 'tblTempUsageDetail_20' ) start [2025-03-08 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633271', 'tblTempUsageDetail_20' ) end [2025-03-08 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:19:20] Production.INFO: ==1978== Releasing lock... [2025-03-08 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:19:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-08 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:20:06 [end_date_ymd] => 2025-03-08 06:20:06 [RateCDR] => 1 ) [2025-03-08 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:20:06' and `end` < '2025-03-08 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:20:18] Production.INFO: count ==163 [2025-03-08 06:20:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:20:06 - End Time 2025-03-08 06:20:06 [2025-03-08 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633277', 'tblTempUsageDetail_20' ) start [2025-03-08 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633277', 'tblTempUsageDetail_20' ) end [2025-03-08 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633277', 'tblTempVendorCDR_20' ) start [2025-03-08 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633277', 'tblTempVendorCDR_20' ) end [2025-03-08 06:20:18] Production.INFO: ProcessCDR(1,14633277,1,1,2) [2025-03-08 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633277', 'tblTempUsageDetail_20' ) start [2025-03-08 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633277', 'tblTempUsageDetail_20' ) end [2025-03-08 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:20:22] Production.INFO: ==2070== Releasing lock... [2025-03-08 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:20:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:21:05 [end_date_ymd] => 2025-03-08 06:21:05 [RateCDR] => 1 ) [2025-03-08 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:21:05' and `end` < '2025-03-08 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:21:17] Production.INFO: count ==154 [2025-03-08 06:21:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:21:05 - End Time 2025-03-08 06:21:05 [2025-03-08 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633282', 'tblTempUsageDetail_20' ) start [2025-03-08 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633282', 'tblTempUsageDetail_20' ) end [2025-03-08 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633282', 'tblTempVendorCDR_20' ) start [2025-03-08 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633282', 'tblTempVendorCDR_20' ) end [2025-03-08 06:21:17] Production.INFO: ProcessCDR(1,14633282,1,1,2) [2025-03-08 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633282', 'tblTempUsageDetail_20' ) start [2025-03-08 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633282', 'tblTempUsageDetail_20' ) end [2025-03-08 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:21:20] Production.INFO: ==2172== Releasing lock... [2025-03-08 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:21:20] Production.INFO: 29 MB #Memory Used# [2025-03-08 06:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:22:06 [end_date_ymd] => 2025-03-08 06:22:06 [RateCDR] => 1 ) [2025-03-08 06:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:22:06' and `end` < '2025-03-08 06:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:22:18] Production.INFO: count ==154 [2025-03-08 06:22:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:22:06 - End Time 2025-03-08 06:22:06 [2025-03-08 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633287', 'tblTempUsageDetail_20' ) start [2025-03-08 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633287', 'tblTempUsageDetail_20' ) end [2025-03-08 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633287', 'tblTempVendorCDR_20' ) start [2025-03-08 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633287', 'tblTempVendorCDR_20' ) end [2025-03-08 06:22:18] Production.INFO: ProcessCDR(1,14633287,1,1,2) [2025-03-08 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633287', 'tblTempUsageDetail_20' ) start [2025-03-08 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633287', 'tblTempUsageDetail_20' ) end [2025-03-08 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:22:22] Production.INFO: ==2268== Releasing lock... [2025-03-08 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:22:22] Production.INFO: 29 MB #Memory Used# [2025-03-08 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:23:05 [end_date_ymd] => 2025-03-08 06:23:05 [RateCDR] => 1 ) [2025-03-08 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:23:05' and `end` < '2025-03-08 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:23:17] Production.INFO: count ==154 [2025-03-08 06:23:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:23:05 - End Time 2025-03-08 06:23:05 [2025-03-08 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633292', 'tblTempUsageDetail_20' ) start [2025-03-08 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633292', 'tblTempUsageDetail_20' ) end [2025-03-08 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633292', 'tblTempVendorCDR_20' ) start [2025-03-08 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633292', 'tblTempVendorCDR_20' ) end [2025-03-08 06:23:17] Production.INFO: ProcessCDR(1,14633292,1,1,2) [2025-03-08 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633292', 'tblTempUsageDetail_20' ) start [2025-03-08 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633292', 'tblTempUsageDetail_20' ) end [2025-03-08 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:23:20] Production.INFO: ==2366== Releasing lock... [2025-03-08 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:23:20] Production.INFO: 29 MB #Memory Used# [2025-03-08 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:24:05 [end_date_ymd] => 2025-03-08 06:24:05 [RateCDR] => 1 ) [2025-03-08 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:24:05' and `end` < '2025-03-08 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:24:17] Production.INFO: count ==152 [2025-03-08 06:24:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:24:05 - End Time 2025-03-08 06:24:05 [2025-03-08 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633297', 'tblTempUsageDetail_20' ) start [2025-03-08 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633297', 'tblTempUsageDetail_20' ) end [2025-03-08 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633297', 'tblTempVendorCDR_20' ) start [2025-03-08 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633297', 'tblTempVendorCDR_20' ) end [2025-03-08 06:24:17] Production.INFO: ProcessCDR(1,14633297,1,1,2) [2025-03-08 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633297', 'tblTempUsageDetail_20' ) start [2025-03-08 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633297', 'tblTempUsageDetail_20' ) end [2025-03-08 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:24:21] Production.INFO: ==2453== Releasing lock... [2025-03-08 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:25:04 [end_date_ymd] => 2025-03-08 06:25:04 [RateCDR] => 1 ) [2025-03-08 06: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-03-08 03:25:04' and `end` < '2025-03-08 06: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-03-08 06:25:17] Production.INFO: count ==151 [2025-03-08 06:25:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:25:04 - End Time 2025-03-08 06:25:04 [2025-03-08 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633302', 'tblTempUsageDetail_20' ) start [2025-03-08 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633302', 'tblTempUsageDetail_20' ) end [2025-03-08 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633302', 'tblTempVendorCDR_20' ) start [2025-03-08 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633302', 'tblTempVendorCDR_20' ) end [2025-03-08 06:25:17] Production.INFO: ProcessCDR(1,14633302,1,1,2) [2025-03-08 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633302', 'tblTempUsageDetail_20' ) start [2025-03-08 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633302', 'tblTempUsageDetail_20' ) end [2025-03-08 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:25:20] Production.INFO: ==2579== Releasing lock... [2025-03-08 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:25:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:26:05 [end_date_ymd] => 2025-03-08 06:26:05 [RateCDR] => 1 ) [2025-03-08 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:26:05' and `end` < '2025-03-08 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:26:17] Production.INFO: count ==150 [2025-03-08 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:26:05 - End Time 2025-03-08 06:26:05 [2025-03-08 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633307', 'tblTempUsageDetail_20' ) start [2025-03-08 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633307', 'tblTempUsageDetail_20' ) end [2025-03-08 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633307', 'tblTempVendorCDR_20' ) start [2025-03-08 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633307', 'tblTempVendorCDR_20' ) end [2025-03-08 06:26:17] Production.INFO: ProcessCDR(1,14633307,1,1,2) [2025-03-08 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633307', 'tblTempUsageDetail_20' ) start [2025-03-08 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633307', 'tblTempUsageDetail_20' ) end [2025-03-08 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:26:20] Production.INFO: ==2670== Releasing lock... [2025-03-08 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:26:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-08 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:27:05 [end_date_ymd] => 2025-03-08 06:27:05 [RateCDR] => 1 ) [2025-03-08 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:27:05' and `end` < '2025-03-08 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:27:17] Production.INFO: count ==153 [2025-03-08 06:27:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:27:05 - End Time 2025-03-08 06:27:05 [2025-03-08 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633312', 'tblTempUsageDetail_20' ) start [2025-03-08 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633312', 'tblTempUsageDetail_20' ) end [2025-03-08 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633312', 'tblTempVendorCDR_20' ) start [2025-03-08 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633312', 'tblTempVendorCDR_20' ) end [2025-03-08 06:27:17] Production.INFO: ProcessCDR(1,14633312,1,1,2) [2025-03-08 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633312', 'tblTempUsageDetail_20' ) start [2025-03-08 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633312', 'tblTempUsageDetail_20' ) end [2025-03-08 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:27:20] Production.INFO: ==2759== Releasing lock... [2025-03-08 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:27:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:28:05 [end_date_ymd] => 2025-03-08 06:28:05 [RateCDR] => 1 ) [2025-03-08 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:28:05' and `end` < '2025-03-08 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:28:17] Production.INFO: count ==153 [2025-03-08 06:28:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:28:05 - End Time 2025-03-08 06:28:05 [2025-03-08 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633317', 'tblTempUsageDetail_20' ) start [2025-03-08 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633317', 'tblTempUsageDetail_20' ) end [2025-03-08 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633317', 'tblTempVendorCDR_20' ) start [2025-03-08 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633317', 'tblTempVendorCDR_20' ) end [2025-03-08 06:28:17] Production.INFO: ProcessCDR(1,14633317,1,1,2) [2025-03-08 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633317', 'tblTempUsageDetail_20' ) start [2025-03-08 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633317', 'tblTempUsageDetail_20' ) end [2025-03-08 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:28:20] Production.INFO: ==2855== Releasing lock... [2025-03-08 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:28:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:29:06 [end_date_ymd] => 2025-03-08 06:29:06 [RateCDR] => 1 ) [2025-03-08 06:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:29:06' and `end` < '2025-03-08 06:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:29:18] Production.INFO: count ==153 [2025-03-08 06:29:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:29:06 - End Time 2025-03-08 06:29:06 [2025-03-08 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633322', 'tblTempUsageDetail_20' ) start [2025-03-08 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633322', 'tblTempUsageDetail_20' ) end [2025-03-08 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633322', 'tblTempVendorCDR_20' ) start [2025-03-08 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633322', 'tblTempVendorCDR_20' ) end [2025-03-08 06:29:18] Production.INFO: ProcessCDR(1,14633322,1,1,2) [2025-03-08 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633322', 'tblTempUsageDetail_20' ) start [2025-03-08 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633322', 'tblTempUsageDetail_20' ) end [2025-03-08 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:29:22] Production.INFO: ==2944== Releasing lock... [2025-03-08 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:29:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:30:06 [end_date_ymd] => 2025-03-08 06:30:06 [RateCDR] => 1 ) [2025-03-08 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:30:06' and `end` < '2025-03-08 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:30:18] Production.INFO: count ==147 [2025-03-08 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:30:06 - End Time 2025-03-08 06:30:06 [2025-03-08 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633328', 'tblTempUsageDetail_20' ) start [2025-03-08 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633328', 'tblTempUsageDetail_20' ) end [2025-03-08 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633328', 'tblTempVendorCDR_20' ) start [2025-03-08 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633328', 'tblTempVendorCDR_20' ) end [2025-03-08 06:30:18] Production.INFO: ProcessCDR(1,14633328,1,1,2) [2025-03-08 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633328', 'tblTempUsageDetail_20' ) start [2025-03-08 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633328', 'tblTempUsageDetail_20' ) end [2025-03-08 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:30:21] Production.INFO: ==3036== Releasing lock... [2025-03-08 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:30:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:31:06 [end_date_ymd] => 2025-03-08 06:31:06 [RateCDR] => 1 ) [2025-03-08 06:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:31:06' and `end` < '2025-03-08 06:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:31:18] Production.INFO: count ==147 [2025-03-08 06:31:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:31:06 - End Time 2025-03-08 06:31:06 [2025-03-08 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633333', 'tblTempUsageDetail_20' ) start [2025-03-08 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633333', 'tblTempUsageDetail_20' ) end [2025-03-08 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633333', 'tblTempVendorCDR_20' ) start [2025-03-08 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633333', 'tblTempVendorCDR_20' ) end [2025-03-08 06:31:18] Production.INFO: ProcessCDR(1,14633333,1,1,2) [2025-03-08 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633333', 'tblTempUsageDetail_20' ) start [2025-03-08 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633333', 'tblTempUsageDetail_20' ) end [2025-03-08 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:31:21] Production.INFO: ==3131== Releasing lock... [2025-03-08 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:32:05 [end_date_ymd] => 2025-03-08 06:32:05 [RateCDR] => 1 ) [2025-03-08 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:32:05' and `end` < '2025-03-08 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:32:17] Production.INFO: count ==145 [2025-03-08 06:32:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:32:05 - End Time 2025-03-08 06:32:05 [2025-03-08 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633338', 'tblTempUsageDetail_20' ) start [2025-03-08 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633338', 'tblTempUsageDetail_20' ) end [2025-03-08 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633338', 'tblTempVendorCDR_20' ) start [2025-03-08 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633338', 'tblTempVendorCDR_20' ) end [2025-03-08 06:32:17] Production.INFO: ProcessCDR(1,14633338,1,1,2) [2025-03-08 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633338', 'tblTempUsageDetail_20' ) start [2025-03-08 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633338', 'tblTempUsageDetail_20' ) end [2025-03-08 06:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:32:20] Production.INFO: ==3215== Releasing lock... [2025-03-08 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:32:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:33:05 [end_date_ymd] => 2025-03-08 06:33:05 [RateCDR] => 1 ) [2025-03-08 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:33:05' and `end` < '2025-03-08 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:33:18] Production.INFO: count ==145 [2025-03-08 06:33:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:33:05 - End Time 2025-03-08 06:33:05 [2025-03-08 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633343', 'tblTempUsageDetail_20' ) start [2025-03-08 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633343', 'tblTempUsageDetail_20' ) end [2025-03-08 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633343', 'tblTempVendorCDR_20' ) start [2025-03-08 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633343', 'tblTempVendorCDR_20' ) end [2025-03-08 06:33:18] Production.INFO: ProcessCDR(1,14633343,1,1,2) [2025-03-08 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633343', 'tblTempUsageDetail_20' ) start [2025-03-08 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633343', 'tblTempUsageDetail_20' ) end [2025-03-08 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:33:21] Production.INFO: ==3306== Releasing lock... [2025-03-08 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:34:05 [end_date_ymd] => 2025-03-08 06:34:05 [RateCDR] => 1 ) [2025-03-08 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:34:05' and `end` < '2025-03-08 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:34:17] Production.INFO: count ==144 [2025-03-08 06:34:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:34:05 - End Time 2025-03-08 06:34:05 [2025-03-08 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633348', 'tblTempUsageDetail_20' ) start [2025-03-08 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633348', 'tblTempUsageDetail_20' ) end [2025-03-08 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633348', 'tblTempVendorCDR_20' ) start [2025-03-08 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633348', 'tblTempVendorCDR_20' ) end [2025-03-08 06:34:17] Production.INFO: ProcessCDR(1,14633348,1,1,2) [2025-03-08 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633348', 'tblTempUsageDetail_20' ) start [2025-03-08 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633348', 'tblTempUsageDetail_20' ) end [2025-03-08 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:34:20] Production.INFO: ==3391== Releasing lock... [2025-03-08 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:34:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:35:05 [end_date_ymd] => 2025-03-08 06:35:05 [RateCDR] => 1 ) [2025-03-08 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:35:05' and `end` < '2025-03-08 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:35:17] Production.INFO: count ==144 [2025-03-08 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:35:05 - End Time 2025-03-08 06:35:05 [2025-03-08 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633353', 'tblTempUsageDetail_20' ) start [2025-03-08 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633353', 'tblTempUsageDetail_20' ) end [2025-03-08 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633353', 'tblTempVendorCDR_20' ) start [2025-03-08 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633353', 'tblTempVendorCDR_20' ) end [2025-03-08 06:35:17] Production.INFO: ProcessCDR(1,14633353,1,1,2) [2025-03-08 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633353', 'tblTempUsageDetail_20' ) start [2025-03-08 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633353', 'tblTempUsageDetail_20' ) end [2025-03-08 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:35:20] Production.INFO: ==3479== Releasing lock... [2025-03-08 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:35:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:36:05 [end_date_ymd] => 2025-03-08 06:36:05 [RateCDR] => 1 ) [2025-03-08 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:36:05' and `end` < '2025-03-08 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:36:17] Production.INFO: count ==144 [2025-03-08 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:36:05 - End Time 2025-03-08 06:36:05 [2025-03-08 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633358', 'tblTempUsageDetail_20' ) start [2025-03-08 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633358', 'tblTempUsageDetail_20' ) end [2025-03-08 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633358', 'tblTempVendorCDR_20' ) start [2025-03-08 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633358', 'tblTempVendorCDR_20' ) end [2025-03-08 06:36:17] Production.INFO: ProcessCDR(1,14633358,1,1,2) [2025-03-08 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633358', 'tblTempUsageDetail_20' ) start [2025-03-08 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633358', 'tblTempUsageDetail_20' ) end [2025-03-08 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:36:21] Production.INFO: ==3571== Releasing lock... [2025-03-08 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:37:05 [end_date_ymd] => 2025-03-08 06:37:05 [RateCDR] => 1 ) [2025-03-08 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:37:05' and `end` < '2025-03-08 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:37:17] Production.INFO: count ==144 [2025-03-08 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:37:05 - End Time 2025-03-08 06:37:05 [2025-03-08 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633363', 'tblTempUsageDetail_20' ) start [2025-03-08 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633363', 'tblTempUsageDetail_20' ) end [2025-03-08 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633363', 'tblTempVendorCDR_20' ) start [2025-03-08 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633363', 'tblTempVendorCDR_20' ) end [2025-03-08 06:37:17] Production.INFO: ProcessCDR(1,14633363,1,1,2) [2025-03-08 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633363', 'tblTempUsageDetail_20' ) start [2025-03-08 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633363', 'tblTempUsageDetail_20' ) end [2025-03-08 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:37:20] Production.INFO: ==3652== Releasing lock... [2025-03-08 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:37:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:38:05 [end_date_ymd] => 2025-03-08 06:38:05 [RateCDR] => 1 ) [2025-03-08 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:38:05' and `end` < '2025-03-08 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:38:18] Production.INFO: count ==144 [2025-03-08 06:38:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:38:05 - End Time 2025-03-08 06:38:05 [2025-03-08 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633368', 'tblTempUsageDetail_20' ) start [2025-03-08 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633368', 'tblTempUsageDetail_20' ) end [2025-03-08 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633368', 'tblTempVendorCDR_20' ) start [2025-03-08 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633368', 'tblTempVendorCDR_20' ) end [2025-03-08 06:38:18] Production.INFO: ProcessCDR(1,14633368,1,1,2) [2025-03-08 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633368', 'tblTempUsageDetail_20' ) start [2025-03-08 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633368', 'tblTempUsageDetail_20' ) end [2025-03-08 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:38:21] Production.INFO: ==3744== Releasing lock... [2025-03-08 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:39:05 [end_date_ymd] => 2025-03-08 06:39:05 [RateCDR] => 1 ) [2025-03-08 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:39:05' and `end` < '2025-03-08 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:39:17] Production.INFO: count ==144 [2025-03-08 06:39:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:39:05 - End Time 2025-03-08 06:39:05 [2025-03-08 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633373', 'tblTempUsageDetail_20' ) start [2025-03-08 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633373', 'tblTempUsageDetail_20' ) end [2025-03-08 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633373', 'tblTempVendorCDR_20' ) start [2025-03-08 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633373', 'tblTempVendorCDR_20' ) end [2025-03-08 06:39:17] Production.INFO: ProcessCDR(1,14633373,1,1,2) [2025-03-08 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633373', 'tblTempUsageDetail_20' ) start [2025-03-08 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633373', 'tblTempUsageDetail_20' ) end [2025-03-08 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:39:20] Production.INFO: ==3832== Releasing lock... [2025-03-08 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:39:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:40:06 [end_date_ymd] => 2025-03-08 06:40:06 [RateCDR] => 1 ) [2025-03-08 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:40:06' and `end` < '2025-03-08 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:40:18] Production.INFO: count ==136 [2025-03-08 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:40:06 - End Time 2025-03-08 06:40:06 [2025-03-08 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633379', 'tblTempUsageDetail_20' ) start [2025-03-08 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633379', 'tblTempUsageDetail_20' ) end [2025-03-08 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633379', 'tblTempVendorCDR_20' ) start [2025-03-08 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633379', 'tblTempVendorCDR_20' ) end [2025-03-08 06:40:18] Production.INFO: ProcessCDR(1,14633379,1,1,2) [2025-03-08 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633379', 'tblTempUsageDetail_20' ) start [2025-03-08 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633379', 'tblTempUsageDetail_20' ) end [2025-03-08 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:40:21] Production.INFO: ==3959== Releasing lock... [2025-03-08 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:40:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:41:05 [end_date_ymd] => 2025-03-08 06:41:05 [RateCDR] => 1 ) [2025-03-08 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:41:05' and `end` < '2025-03-08 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:41:17] Production.INFO: count ==139 [2025-03-08 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:41:05 - End Time 2025-03-08 06:41:05 [2025-03-08 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633384', 'tblTempUsageDetail_20' ) start [2025-03-08 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633384', 'tblTempUsageDetail_20' ) end [2025-03-08 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633384', 'tblTempVendorCDR_20' ) start [2025-03-08 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633384', 'tblTempVendorCDR_20' ) end [2025-03-08 06:41:17] Production.INFO: ProcessCDR(1,14633384,1,1,2) [2025-03-08 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633384', 'tblTempUsageDetail_20' ) start [2025-03-08 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633384', 'tblTempUsageDetail_20' ) end [2025-03-08 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:41:20] Production.INFO: ==4049== Releasing lock... [2025-03-08 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:41:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:42:05 [end_date_ymd] => 2025-03-08 06:42:05 [RateCDR] => 1 ) [2025-03-08 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:42:05' and `end` < '2025-03-08 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:42:17] Production.INFO: count ==139 [2025-03-08 06:42:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:42:05 - End Time 2025-03-08 06:42:05 [2025-03-08 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633389', 'tblTempUsageDetail_20' ) start [2025-03-08 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633389', 'tblTempUsageDetail_20' ) end [2025-03-08 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633389', 'tblTempVendorCDR_20' ) start [2025-03-08 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633389', 'tblTempVendorCDR_20' ) end [2025-03-08 06:42:17] Production.INFO: ProcessCDR(1,14633389,1,1,2) [2025-03-08 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633389', 'tblTempUsageDetail_20' ) start [2025-03-08 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633389', 'tblTempUsageDetail_20' ) end [2025-03-08 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:42:20] Production.INFO: ==4135== Releasing lock... [2025-03-08 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:42:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:43:05 [end_date_ymd] => 2025-03-08 06:43:05 [RateCDR] => 1 ) [2025-03-08 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:43:05' and `end` < '2025-03-08 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:43:17] Production.INFO: count ==137 [2025-03-08 06:43:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:43:05 - End Time 2025-03-08 06:43:05 [2025-03-08 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633394', 'tblTempUsageDetail_20' ) start [2025-03-08 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633394', 'tblTempUsageDetail_20' ) end [2025-03-08 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633394', 'tblTempVendorCDR_20' ) start [2025-03-08 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633394', 'tblTempVendorCDR_20' ) end [2025-03-08 06:43:17] Production.INFO: ProcessCDR(1,14633394,1,1,2) [2025-03-08 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633394', 'tblTempUsageDetail_20' ) start [2025-03-08 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633394', 'tblTempUsageDetail_20' ) end [2025-03-08 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:43:21] Production.INFO: ==4219== Releasing lock... [2025-03-08 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:44:05 [end_date_ymd] => 2025-03-08 06:44:05 [RateCDR] => 1 ) [2025-03-08 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:44:05' and `end` < '2025-03-08 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:44:17] Production.INFO: count ==130 [2025-03-08 06:44:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:44:05 - End Time 2025-03-08 06:44:05 [2025-03-08 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633399', 'tblTempUsageDetail_20' ) start [2025-03-08 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633399', 'tblTempUsageDetail_20' ) end [2025-03-08 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633399', 'tblTempVendorCDR_20' ) start [2025-03-08 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633399', 'tblTempVendorCDR_20' ) end [2025-03-08 06:44:17] Production.INFO: ProcessCDR(1,14633399,1,1,2) [2025-03-08 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633399', 'tblTempUsageDetail_20' ) start [2025-03-08 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633399', 'tblTempUsageDetail_20' ) end [2025-03-08 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:44:20] Production.INFO: ==4306== Releasing lock... [2025-03-08 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:44:20] Production.INFO: 29 MB #Memory Used# [2025-03-08 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:45:05 [end_date_ymd] => 2025-03-08 06:45:05 [RateCDR] => 1 ) [2025-03-08 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:45:05' and `end` < '2025-03-08 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:45:17] Production.INFO: count ==120 [2025-03-08 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:45:05 - End Time 2025-03-08 06:45:05 [2025-03-08 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633404', 'tblTempUsageDetail_20' ) start [2025-03-08 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633404', 'tblTempUsageDetail_20' ) end [2025-03-08 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633404', 'tblTempVendorCDR_20' ) start [2025-03-08 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633404', 'tblTempVendorCDR_20' ) end [2025-03-08 06:45:17] Production.INFO: ProcessCDR(1,14633404,1,1,2) [2025-03-08 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633404', 'tblTempUsageDetail_20' ) start [2025-03-08 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633404', 'tblTempUsageDetail_20' ) end [2025-03-08 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:45:21] Production.INFO: ==4388== Releasing lock... [2025-03-08 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-08 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:46:05 [end_date_ymd] => 2025-03-08 06:46:05 [RateCDR] => 1 ) [2025-03-08 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:46:05' and `end` < '2025-03-08 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:46:17] Production.INFO: count ==114 [2025-03-08 06:46:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:46:05 - End Time 2025-03-08 06:46:05 [2025-03-08 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633409', 'tblTempUsageDetail_20' ) start [2025-03-08 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633409', 'tblTempUsageDetail_20' ) end [2025-03-08 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633409', 'tblTempVendorCDR_20' ) start [2025-03-08 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633409', 'tblTempVendorCDR_20' ) end [2025-03-08 06:46:17] Production.INFO: ProcessCDR(1,14633409,1,1,2) [2025-03-08 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633409', 'tblTempUsageDetail_20' ) start [2025-03-08 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633409', 'tblTempUsageDetail_20' ) end [2025-03-08 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:46:20] Production.INFO: ==4474== Releasing lock... [2025-03-08 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:46:20] Production.INFO: 29 MB #Memory Used# [2025-03-08 06:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:47:06 [end_date_ymd] => 2025-03-08 06:47:06 [RateCDR] => 1 ) [2025-03-08 06:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:47:06' and `end` < '2025-03-08 06:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:47:18] Production.INFO: count ==100 [2025-03-08 06:47:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:47:06 - End Time 2025-03-08 06:47:06 [2025-03-08 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633414', 'tblTempUsageDetail_20' ) start [2025-03-08 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633414', 'tblTempUsageDetail_20' ) end [2025-03-08 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633414', 'tblTempVendorCDR_20' ) start [2025-03-08 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633414', 'tblTempVendorCDR_20' ) end [2025-03-08 06:47:18] Production.INFO: ProcessCDR(1,14633414,1,1,2) [2025-03-08 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633414', 'tblTempUsageDetail_20' ) start [2025-03-08 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633414', 'tblTempUsageDetail_20' ) end [2025-03-08 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:47:21] Production.INFO: ==4554== Releasing lock... [2025-03-08 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:47:21] Production.INFO: 29 MB #Memory Used# [2025-03-08 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:48:05 [end_date_ymd] => 2025-03-08 06:48:05 [RateCDR] => 1 ) [2025-03-08 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:48:05' and `end` < '2025-03-08 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:48:17] Production.INFO: count ==100 [2025-03-08 06:48:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:48:05 - End Time 2025-03-08 06:48:05 [2025-03-08 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633419', 'tblTempUsageDetail_20' ) start [2025-03-08 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633419', 'tblTempUsageDetail_20' ) end [2025-03-08 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633419', 'tblTempVendorCDR_20' ) start [2025-03-08 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633419', 'tblTempVendorCDR_20' ) end [2025-03-08 06:48:17] Production.INFO: ProcessCDR(1,14633419,1,1,2) [2025-03-08 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633419', 'tblTempUsageDetail_20' ) start [2025-03-08 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633419', 'tblTempUsageDetail_20' ) end [2025-03-08 06:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:48:20] Production.INFO: ==4643== Releasing lock... [2025-03-08 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:48:20] Production.INFO: 29 MB #Memory Used# [2025-03-08 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:49:05 [end_date_ymd] => 2025-03-08 06:49:05 [RateCDR] => 1 ) [2025-03-08 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:49:05' and `end` < '2025-03-08 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:49:17] Production.INFO: count ==97 [2025-03-08 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:49:05 - End Time 2025-03-08 06:49:05 [2025-03-08 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633424', 'tblTempUsageDetail_20' ) start [2025-03-08 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633424', 'tblTempUsageDetail_20' ) end [2025-03-08 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633424', 'tblTempVendorCDR_20' ) start [2025-03-08 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633424', 'tblTempVendorCDR_20' ) end [2025-03-08 06:49:17] Production.INFO: ProcessCDR(1,14633424,1,1,2) [2025-03-08 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633424', 'tblTempUsageDetail_20' ) start [2025-03-08 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633424', 'tblTempUsageDetail_20' ) end [2025-03-08 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:49:21] Production.INFO: ==4724== Releasing lock... [2025-03-08 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:49:21] Production.INFO: 29 MB #Memory Used# [2025-03-08 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:50:06 [end_date_ymd] => 2025-03-08 06:50:06 [RateCDR] => 1 ) [2025-03-08 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:50:06' and `end` < '2025-03-08 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:50:18] Production.INFO: count ==89 [2025-03-08 06:50:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:50:06 - End Time 2025-03-08 06:50:06 [2025-03-08 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633429', 'tblTempUsageDetail_20' ) start [2025-03-08 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633429', 'tblTempUsageDetail_20' ) end [2025-03-08 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633429', 'tblTempVendorCDR_20' ) start [2025-03-08 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633429', 'tblTempVendorCDR_20' ) end [2025-03-08 06:50:18] Production.INFO: ProcessCDR(1,14633429,1,1,2) [2025-03-08 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633429', 'tblTempUsageDetail_20' ) start [2025-03-08 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633429', 'tblTempUsageDetail_20' ) end [2025-03-08 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:50:21] Production.INFO: ==4804== Releasing lock... [2025-03-08 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:50:21] Production.INFO: 29 MB #Memory Used# [2025-03-08 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:51:05 [end_date_ymd] => 2025-03-08 06:51:05 [RateCDR] => 1 ) [2025-03-08 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:51:05' and `end` < '2025-03-08 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:51:17] Production.INFO: count ==86 [2025-03-08 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:51:05 - End Time 2025-03-08 06:51:05 [2025-03-08 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633435', 'tblTempUsageDetail_20' ) start [2025-03-08 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633435', 'tblTempUsageDetail_20' ) end [2025-03-08 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633435', 'tblTempVendorCDR_20' ) start [2025-03-08 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633435', 'tblTempVendorCDR_20' ) end [2025-03-08 06:51:17] Production.INFO: ProcessCDR(1,14633435,1,1,2) [2025-03-08 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633435', 'tblTempUsageDetail_20' ) start [2025-03-08 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633435', 'tblTempUsageDetail_20' ) end [2025-03-08 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:51:20] Production.INFO: ==4887== Releasing lock... [2025-03-08 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:51:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:52:05 [end_date_ymd] => 2025-03-08 06:52:05 [RateCDR] => 1 ) [2025-03-08 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:52:05' and `end` < '2025-03-08 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:52:17] Production.INFO: count ==86 [2025-03-08 06:52:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:52:05 - End Time 2025-03-08 06:52:05 [2025-03-08 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633440', 'tblTempUsageDetail_20' ) start [2025-03-08 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633440', 'tblTempUsageDetail_20' ) end [2025-03-08 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633440', 'tblTempVendorCDR_20' ) start [2025-03-08 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633440', 'tblTempVendorCDR_20' ) end [2025-03-08 06:52:17] Production.INFO: ProcessCDR(1,14633440,1,1,2) [2025-03-08 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633440', 'tblTempUsageDetail_20' ) start [2025-03-08 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633440', 'tblTempUsageDetail_20' ) end [2025-03-08 06:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:52:20] Production.INFO: ==4964== Releasing lock... [2025-03-08 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:52:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:53:05 [end_date_ymd] => 2025-03-08 06:53:05 [RateCDR] => 1 ) [2025-03-08 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:53:05' and `end` < '2025-03-08 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:53:17] Production.INFO: count ==86 [2025-03-08 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:53:05 - End Time 2025-03-08 06:53:05 [2025-03-08 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633445', 'tblTempUsageDetail_20' ) start [2025-03-08 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633445', 'tblTempUsageDetail_20' ) end [2025-03-08 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633445', 'tblTempVendorCDR_20' ) start [2025-03-08 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633445', 'tblTempVendorCDR_20' ) end [2025-03-08 06:53:17] Production.INFO: ProcessCDR(1,14633445,1,1,2) [2025-03-08 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633445', 'tblTempUsageDetail_20' ) start [2025-03-08 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633445', 'tblTempUsageDetail_20' ) end [2025-03-08 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:53:20] Production.INFO: ==5050== Releasing lock... [2025-03-08 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:53:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 06:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:54:06 [end_date_ymd] => 2025-03-08 06:54:06 [RateCDR] => 1 ) [2025-03-08 06:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:54:06' and `end` < '2025-03-08 06:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:54:18] Production.INFO: count ==86 [2025-03-08 06:54:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:54:06 - End Time 2025-03-08 06:54:06 [2025-03-08 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633450', 'tblTempUsageDetail_20' ) start [2025-03-08 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633450', 'tblTempUsageDetail_20' ) end [2025-03-08 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633450', 'tblTempVendorCDR_20' ) start [2025-03-08 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633450', 'tblTempVendorCDR_20' ) end [2025-03-08 06:54:18] Production.INFO: ProcessCDR(1,14633450,1,1,2) [2025-03-08 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633450', 'tblTempUsageDetail_20' ) start [2025-03-08 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633450', 'tblTempUsageDetail_20' ) end [2025-03-08 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:54:21] Production.INFO: ==5134== Releasing lock... [2025-03-08 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:55:05 [end_date_ymd] => 2025-03-08 06:55:05 [RateCDR] => 1 ) [2025-03-08 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:55:05' and `end` < '2025-03-08 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:55:17] Production.INFO: count ==86 [2025-03-08 06:55:17] Production.ERROR: pbx CDR StartTime 2025-03-08 03:55:05 - End Time 2025-03-08 06:55:05 [2025-03-08 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633455', 'tblTempUsageDetail_20' ) start [2025-03-08 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633455', 'tblTempUsageDetail_20' ) end [2025-03-08 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633455', 'tblTempVendorCDR_20' ) start [2025-03-08 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633455', 'tblTempVendorCDR_20' ) end [2025-03-08 06:55:17] Production.INFO: ProcessCDR(1,14633455,1,1,2) [2025-03-08 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633455', 'tblTempUsageDetail_20' ) start [2025-03-08 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633455', 'tblTempUsageDetail_20' ) end [2025-03-08 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:55:20] Production.INFO: ==5212== Releasing lock... [2025-03-08 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:55:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 06:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:56:06 [end_date_ymd] => 2025-03-08 06:56:06 [RateCDR] => 1 ) [2025-03-08 06:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:56:06' and `end` < '2025-03-08 06:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:56:18] Production.INFO: count ==86 [2025-03-08 06:56:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:56:06 - End Time 2025-03-08 06:56:06 [2025-03-08 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633460', 'tblTempUsageDetail_20' ) start [2025-03-08 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633460', 'tblTempUsageDetail_20' ) end [2025-03-08 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633460', 'tblTempVendorCDR_20' ) start [2025-03-08 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633460', 'tblTempVendorCDR_20' ) end [2025-03-08 06:56:18] Production.INFO: ProcessCDR(1,14633460,1,1,2) [2025-03-08 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633460', 'tblTempUsageDetail_20' ) start [2025-03-08 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633460', 'tblTempUsageDetail_20' ) end [2025-03-08 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:56:21] Production.INFO: ==5335== Releasing lock... [2025-03-08 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 06:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:57:04 [end_date_ymd] => 2025-03-08 06:57:04 [RateCDR] => 1 ) [2025-03-08 06:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:57:04' and `end` < '2025-03-08 06:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:57:16] Production.INFO: count ==86 [2025-03-08 06:57:16] Production.ERROR: pbx CDR StartTime 2025-03-08 03:57:04 - End Time 2025-03-08 06:57:04 [2025-03-08 06:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633465', 'tblTempUsageDetail_20' ) start [2025-03-08 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633465', 'tblTempUsageDetail_20' ) end [2025-03-08 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633465', 'tblTempVendorCDR_20' ) start [2025-03-08 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633465', 'tblTempVendorCDR_20' ) end [2025-03-08 06:57:16] Production.INFO: ProcessCDR(1,14633465,1,1,2) [2025-03-08 06:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633465', 'tblTempUsageDetail_20' ) start [2025-03-08 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633465', 'tblTempUsageDetail_20' ) end [2025-03-08 06:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:57:20] Production.INFO: ==5412== Releasing lock... [2025-03-08 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:57:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 06:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:58:06 [end_date_ymd] => 2025-03-08 06:58:06 [RateCDR] => 1 ) [2025-03-08 06:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:58:06' and `end` < '2025-03-08 06:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:58:18] Production.INFO: count ==86 [2025-03-08 06:58:18] Production.ERROR: pbx CDR StartTime 2025-03-08 03:58:06 - End Time 2025-03-08 06:58:06 [2025-03-08 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633470', 'tblTempUsageDetail_20' ) start [2025-03-08 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633470', 'tblTempUsageDetail_20' ) end [2025-03-08 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633470', 'tblTempVendorCDR_20' ) start [2025-03-08 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633470', 'tblTempVendorCDR_20' ) end [2025-03-08 06:58:18] Production.INFO: ProcessCDR(1,14633470,1,1,2) [2025-03-08 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633470', 'tblTempUsageDetail_20' ) start [2025-03-08 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633470', 'tblTempUsageDetail_20' ) end [2025-03-08 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:58:21] Production.INFO: ==5496== Releasing lock... [2025-03-08 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 06:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 03:59:04 [end_date_ymd] => 2025-03-08 06:59:04 [RateCDR] => 1 ) [2025-03-08 06:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 03:59:04' and `end` < '2025-03-08 06:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 06:59:16] Production.INFO: count ==86 [2025-03-08 06:59:16] Production.ERROR: pbx CDR StartTime 2025-03-08 03:59:04 - End Time 2025-03-08 06:59:04 [2025-03-08 06:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 06:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633475', 'tblTempUsageDetail_20' ) start [2025-03-08 06:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633475', 'tblTempUsageDetail_20' ) end [2025-03-08 06:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633475', 'tblTempVendorCDR_20' ) start [2025-03-08 06:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633475', 'tblTempVendorCDR_20' ) end [2025-03-08 06:59:16] Production.INFO: ProcessCDR(1,14633475,1,1,2) [2025-03-08 06:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:59:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 06:59:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633475', 'tblTempUsageDetail_20' ) start [2025-03-08 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633475', 'tblTempUsageDetail_20' ) end [2025-03-08 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 06:59:20] Production.INFO: ==5580== Releasing lock... [2025-03-08 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 06:59:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:00:06 [end_date_ymd] => 2025-03-08 07:00:06 [RateCDR] => 1 ) [2025-03-08 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:00:06' and `end` < '2025-03-08 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:00:18] Production.INFO: count ==94 [2025-03-08 07:00:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:00:06 - End Time 2025-03-08 07:00:06 [2025-03-08 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633481', 'tblTempUsageDetail_20' ) start [2025-03-08 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633481', 'tblTempUsageDetail_20' ) end [2025-03-08 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633481', 'tblTempVendorCDR_20' ) start [2025-03-08 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633481', 'tblTempVendorCDR_20' ) end [2025-03-08 07:00:18] Production.INFO: ProcessCDR(1,14633481,1,1,2) [2025-03-08 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633481', 'tblTempUsageDetail_20' ) start [2025-03-08 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633481', 'tblTempUsageDetail_20' ) end [2025-03-08 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:00:21] Production.INFO: ==5661== Releasing lock... [2025-03-08 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:00:21] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:01:05 [end_date_ymd] => 2025-03-08 07:01:05 [RateCDR] => 1 ) [2025-03-08 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:01:05' and `end` < '2025-03-08 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:01:18] Production.INFO: count ==92 [2025-03-08 07:01:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:01:05 - End Time 2025-03-08 07:01:05 [2025-03-08 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633486', 'tblTempUsageDetail_20' ) start [2025-03-08 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633486', 'tblTempUsageDetail_20' ) end [2025-03-08 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633486', 'tblTempVendorCDR_20' ) start [2025-03-08 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633486', 'tblTempVendorCDR_20' ) end [2025-03-08 07:01:18] Production.INFO: ProcessCDR(1,14633486,1,1,2) [2025-03-08 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633486', 'tblTempUsageDetail_20' ) start [2025-03-08 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633486', 'tblTempUsageDetail_20' ) end [2025-03-08 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:01:21] Production.INFO: ==5755== Releasing lock... [2025-03-08 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-08 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:02:05 [end_date_ymd] => 2025-03-08 07:02:05 [RateCDR] => 1 ) [2025-03-08 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:02:05' and `end` < '2025-03-08 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:02:17] Production.INFO: count ==94 [2025-03-08 07:02:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:02:05 - End Time 2025-03-08 07:02:05 [2025-03-08 07:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633491', 'tblTempUsageDetail_20' ) start [2025-03-08 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633491', 'tblTempUsageDetail_20' ) end [2025-03-08 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633491', 'tblTempVendorCDR_20' ) start [2025-03-08 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633491', 'tblTempVendorCDR_20' ) end [2025-03-08 07:02:17] Production.INFO: ProcessCDR(1,14633491,1,1,2) [2025-03-08 07:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633491', 'tblTempUsageDetail_20' ) start [2025-03-08 07:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633491', 'tblTempUsageDetail_20' ) end [2025-03-08 07:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:02:20] Production.INFO: ==5911== Releasing lock... [2025-03-08 07:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:02:20] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:03:05 [end_date_ymd] => 2025-03-08 07:03:05 [RateCDR] => 1 ) [2025-03-08 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:03:05' and `end` < '2025-03-08 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:03:17] Production.INFO: count ==94 [2025-03-08 07:03:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:03:05 - End Time 2025-03-08 07:03:05 [2025-03-08 07:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633496', 'tblTempUsageDetail_20' ) start [2025-03-08 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633496', 'tblTempUsageDetail_20' ) end [2025-03-08 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633496', 'tblTempVendorCDR_20' ) start [2025-03-08 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633496', 'tblTempVendorCDR_20' ) end [2025-03-08 07:03:17] Production.INFO: ProcessCDR(1,14633496,1,1,2) [2025-03-08 07:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633496', 'tblTempUsageDetail_20' ) start [2025-03-08 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633496', 'tblTempUsageDetail_20' ) end [2025-03-08 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:03:21] Production.INFO: ==5991== Releasing lock... [2025-03-08 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:03:21] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:04:06 [end_date_ymd] => 2025-03-08 07:04:06 [RateCDR] => 1 ) [2025-03-08 07:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:04:06' and `end` < '2025-03-08 07:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:04:19] Production.INFO: count ==94 [2025-03-08 07:04:19] Production.ERROR: pbx CDR StartTime 2025-03-08 04:04:06 - End Time 2025-03-08 07:04:06 [2025-03-08 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633501', 'tblTempUsageDetail_20' ) start [2025-03-08 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633501', 'tblTempUsageDetail_20' ) end [2025-03-08 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633501', 'tblTempVendorCDR_20' ) start [2025-03-08 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633501', 'tblTempVendorCDR_20' ) end [2025-03-08 07:04:19] Production.INFO: ProcessCDR(1,14633501,1,1,2) [2025-03-08 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633501', 'tblTempUsageDetail_20' ) start [2025-03-08 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633501', 'tblTempUsageDetail_20' ) end [2025-03-08 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:04:22] Production.INFO: ==6068== Releasing lock... [2025-03-08 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:04:22] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:05:05 [end_date_ymd] => 2025-03-08 07:05:05 [RateCDR] => 1 ) [2025-03-08 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:05:05' and `end` < '2025-03-08 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:05:17] Production.INFO: count ==94 [2025-03-08 07:05:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:05:05 - End Time 2025-03-08 07:05:05 [2025-03-08 07:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633506', 'tblTempUsageDetail_20' ) start [2025-03-08 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633506', 'tblTempUsageDetail_20' ) end [2025-03-08 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633506', 'tblTempVendorCDR_20' ) start [2025-03-08 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633506', 'tblTempVendorCDR_20' ) end [2025-03-08 07:05:18] Production.INFO: ProcessCDR(1,14633506,1,1,2) [2025-03-08 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633506', 'tblTempUsageDetail_20' ) start [2025-03-08 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633506', 'tblTempUsageDetail_20' ) end [2025-03-08 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:05:21] Production.INFO: ==6223== Releasing lock... [2025-03-08 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:05:21] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:06:05 [end_date_ymd] => 2025-03-08 07:06:05 [RateCDR] => 1 ) [2025-03-08 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:06:05' and `end` < '2025-03-08 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:06:18] Production.INFO: count ==94 [2025-03-08 07:06:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:06:05 - End Time 2025-03-08 07:06:05 [2025-03-08 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633511', 'tblTempUsageDetail_20' ) start [2025-03-08 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633511', 'tblTempUsageDetail_20' ) end [2025-03-08 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633511', 'tblTempVendorCDR_20' ) start [2025-03-08 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633511', 'tblTempVendorCDR_20' ) end [2025-03-08 07:06:18] Production.INFO: ProcessCDR(1,14633511,1,1,2) [2025-03-08 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633511', 'tblTempUsageDetail_20' ) start [2025-03-08 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633511', 'tblTempUsageDetail_20' ) end [2025-03-08 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:06:21] Production.INFO: ==6303== Releasing lock... [2025-03-08 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:06:21] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:07:05 [end_date_ymd] => 2025-03-08 07:07:05 [RateCDR] => 1 ) [2025-03-08 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:07:05' and `end` < '2025-03-08 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:07:17] Production.INFO: count ==94 [2025-03-08 07:07:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:07:05 - End Time 2025-03-08 07:07:05 [2025-03-08 07:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633516', 'tblTempUsageDetail_20' ) start [2025-03-08 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633516', 'tblTempUsageDetail_20' ) end [2025-03-08 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633516', 'tblTempVendorCDR_20' ) start [2025-03-08 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633516', 'tblTempVendorCDR_20' ) end [2025-03-08 07:07:17] Production.INFO: ProcessCDR(1,14633516,1,1,2) [2025-03-08 07:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633516', 'tblTempUsageDetail_20' ) start [2025-03-08 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633516', 'tblTempUsageDetail_20' ) end [2025-03-08 07:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:07:20] Production.INFO: ==6376== Releasing lock... [2025-03-08 07:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:07:20] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:08:05 [end_date_ymd] => 2025-03-08 07:08:05 [RateCDR] => 1 ) [2025-03-08 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:08:05' and `end` < '2025-03-08 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:08:18] Production.INFO: count ==94 [2025-03-08 07:08:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:08:05 - End Time 2025-03-08 07:08:05 [2025-03-08 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633521', 'tblTempUsageDetail_20' ) start [2025-03-08 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633521', 'tblTempUsageDetail_20' ) end [2025-03-08 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633521', 'tblTempVendorCDR_20' ) start [2025-03-08 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633521', 'tblTempVendorCDR_20' ) end [2025-03-08 07:08:18] Production.INFO: ProcessCDR(1,14633521,1,1,2) [2025-03-08 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633521', 'tblTempUsageDetail_20' ) start [2025-03-08 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633521', 'tblTempUsageDetail_20' ) end [2025-03-08 07:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:08:21] Production.INFO: ==6455== Releasing lock... [2025-03-08 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:08:21] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:09:04 [end_date_ymd] => 2025-03-08 07:09:04 [RateCDR] => 1 ) [2025-03-08 07:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:09:04' and `end` < '2025-03-08 07:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:09:16] Production.INFO: count ==98 [2025-03-08 07:09:16] Production.ERROR: pbx CDR StartTime 2025-03-08 04:09:04 - End Time 2025-03-08 07:09:04 [2025-03-08 07:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633526', 'tblTempUsageDetail_20' ) start [2025-03-08 07:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633526', 'tblTempUsageDetail_20' ) end [2025-03-08 07:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633526', 'tblTempVendorCDR_20' ) start [2025-03-08 07:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633526', 'tblTempVendorCDR_20' ) end [2025-03-08 07:09:16] Production.INFO: ProcessCDR(1,14633526,1,1,2) [2025-03-08 07:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633526', 'tblTempUsageDetail_20' ) start [2025-03-08 07:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633526', 'tblTempUsageDetail_20' ) end [2025-03-08 07:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:09:20] Production.INFO: ==6604== Releasing lock... [2025-03-08 07:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:09:20] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:10:06 [end_date_ymd] => 2025-03-08 07:10:06 [RateCDR] => 1 ) [2025-03-08 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:10:06' and `end` < '2025-03-08 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:10:18] Production.INFO: count ==106 [2025-03-08 07:10:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:10:06 - End Time 2025-03-08 07:10:06 [2025-03-08 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633532', 'tblTempUsageDetail_20' ) start [2025-03-08 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633532', 'tblTempUsageDetail_20' ) end [2025-03-08 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633532', 'tblTempVendorCDR_20' ) start [2025-03-08 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633532', 'tblTempVendorCDR_20' ) end [2025-03-08 07:10:18] Production.INFO: ProcessCDR(1,14633532,1,1,2) [2025-03-08 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633532', 'tblTempUsageDetail_20' ) start [2025-03-08 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633532', 'tblTempUsageDetail_20' ) end [2025-03-08 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:10:22] Production.INFO: ==6681== Releasing lock... [2025-03-08 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:10:22] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:11:04 [end_date_ymd] => 2025-03-08 07:11:04 [RateCDR] => 1 ) [2025-03-08 07:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:11:04' and `end` < '2025-03-08 07:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:11:17] Production.INFO: count ==110 [2025-03-08 07:11:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:11:04 - End Time 2025-03-08 07:11:04 [2025-03-08 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633537', 'tblTempUsageDetail_20' ) start [2025-03-08 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633537', 'tblTempUsageDetail_20' ) end [2025-03-08 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633537', 'tblTempVendorCDR_20' ) start [2025-03-08 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633537', 'tblTempVendorCDR_20' ) end [2025-03-08 07:11:17] Production.INFO: ProcessCDR(1,14633537,1,1,2) [2025-03-08 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633537', 'tblTempUsageDetail_20' ) start [2025-03-08 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633537', 'tblTempUsageDetail_20' ) end [2025-03-08 07:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:11:20] Production.INFO: ==6799== Releasing lock... [2025-03-08 07:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:11:20] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:12:06 [end_date_ymd] => 2025-03-08 07:12:06 [RateCDR] => 1 ) [2025-03-08 07:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:12:06' and `end` < '2025-03-08 07:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:12:18] Production.INFO: count ==110 [2025-03-08 07:12:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:12:06 - End Time 2025-03-08 07:12:06 [2025-03-08 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633542', 'tblTempUsageDetail_20' ) start [2025-03-08 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633542', 'tblTempUsageDetail_20' ) end [2025-03-08 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633542', 'tblTempVendorCDR_20' ) start [2025-03-08 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633542', 'tblTempVendorCDR_20' ) end [2025-03-08 07:12:18] Production.INFO: ProcessCDR(1,14633542,1,1,2) [2025-03-08 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633542', 'tblTempUsageDetail_20' ) start [2025-03-08 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633542', 'tblTempUsageDetail_20' ) end [2025-03-08 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:12:21] Production.INFO: ==6952== Releasing lock... [2025-03-08 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:12:21] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:13:04 [end_date_ymd] => 2025-03-08 07:13:04 [RateCDR] => 1 ) [2025-03-08 07:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:13:04' and `end` < '2025-03-08 07:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:13:17] Production.INFO: count ==109 [2025-03-08 07:13:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:13:04 - End Time 2025-03-08 07:13:04 [2025-03-08 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633547', 'tblTempUsageDetail_20' ) start [2025-03-08 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633547', 'tblTempUsageDetail_20' ) end [2025-03-08 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633547', 'tblTempVendorCDR_20' ) start [2025-03-08 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633547', 'tblTempVendorCDR_20' ) end [2025-03-08 07:13:17] Production.INFO: ProcessCDR(1,14633547,1,1,2) [2025-03-08 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633547', 'tblTempUsageDetail_20' ) start [2025-03-08 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633547', 'tblTempUsageDetail_20' ) end [2025-03-08 07:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:13:20] Production.INFO: ==7026== Releasing lock... [2025-03-08 07:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:13:20] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:14:05 [end_date_ymd] => 2025-03-08 07:14:05 [RateCDR] => 1 ) [2025-03-08 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:14:05' and `end` < '2025-03-08 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:14:18] Production.INFO: count ==107 [2025-03-08 07:14:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:14:05 - End Time 2025-03-08 07:14:05 [2025-03-08 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633552', 'tblTempUsageDetail_20' ) start [2025-03-08 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633552', 'tblTempUsageDetail_20' ) end [2025-03-08 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633552', 'tblTempVendorCDR_20' ) start [2025-03-08 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633552', 'tblTempVendorCDR_20' ) end [2025-03-08 07:14:18] Production.INFO: ProcessCDR(1,14633552,1,1,2) [2025-03-08 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633552', 'tblTempUsageDetail_20' ) start [2025-03-08 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633552', 'tblTempUsageDetail_20' ) end [2025-03-08 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:14:21] Production.INFO: ==7101== Releasing lock... [2025-03-08 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:14:21] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:15:04 [end_date_ymd] => 2025-03-08 07:15:04 [RateCDR] => 1 ) [2025-03-08 07:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:15:04' and `end` < '2025-03-08 07:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:15:17] Production.INFO: count ==108 [2025-03-08 07:15:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:15:04 - End Time 2025-03-08 07:15:04 [2025-03-08 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633557', 'tblTempUsageDetail_20' ) start [2025-03-08 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633557', 'tblTempUsageDetail_20' ) end [2025-03-08 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633557', 'tblTempVendorCDR_20' ) start [2025-03-08 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633557', 'tblTempVendorCDR_20' ) end [2025-03-08 07:15:17] Production.INFO: ProcessCDR(1,14633557,1,1,2) [2025-03-08 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633557', 'tblTempUsageDetail_20' ) start [2025-03-08 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633557', 'tblTempUsageDetail_20' ) end [2025-03-08 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:15:22] Production.INFO: ==7185== Releasing lock... [2025-03-08 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:15:22] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:16:05 [end_date_ymd] => 2025-03-08 07:16:05 [RateCDR] => 1 ) [2025-03-08 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:16:05' and `end` < '2025-03-08 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:16:17] Production.INFO: count ==109 [2025-03-08 07:16:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:16:05 - End Time 2025-03-08 07:16:05 [2025-03-08 07:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633562', 'tblTempUsageDetail_20' ) start [2025-03-08 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633562', 'tblTempUsageDetail_20' ) end [2025-03-08 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633562', 'tblTempVendorCDR_20' ) start [2025-03-08 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633562', 'tblTempVendorCDR_20' ) end [2025-03-08 07:16:17] Production.INFO: ProcessCDR(1,14633562,1,1,2) [2025-03-08 07:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633562', 'tblTempUsageDetail_20' ) start [2025-03-08 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633562', 'tblTempUsageDetail_20' ) end [2025-03-08 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:16:22] Production.INFO: ==7341== Releasing lock... [2025-03-08 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:16:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-08 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:17:06 [end_date_ymd] => 2025-03-08 07:17:06 [RateCDR] => 1 ) [2025-03-08 07:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:17:06' and `end` < '2025-03-08 07:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:17:18] Production.INFO: count ==110 [2025-03-08 07:17:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:17:06 - End Time 2025-03-08 07:17:06 [2025-03-08 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633567', 'tblTempUsageDetail_20' ) start [2025-03-08 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633567', 'tblTempUsageDetail_20' ) end [2025-03-08 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633567', 'tblTempVendorCDR_20' ) start [2025-03-08 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633567', 'tblTempVendorCDR_20' ) end [2025-03-08 07:17:18] Production.INFO: ProcessCDR(1,14633567,1,1,2) [2025-03-08 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633567', 'tblTempUsageDetail_20' ) start [2025-03-08 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633567', 'tblTempUsageDetail_20' ) end [2025-03-08 07:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:17:24] Production.INFO: ==7471== Releasing lock... [2025-03-08 07:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:17:24] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:18:06 [end_date_ymd] => 2025-03-08 07:18:06 [RateCDR] => 1 ) [2025-03-08 07:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:18:06' and `end` < '2025-03-08 07:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:18:18] Production.INFO: count ==110 [2025-03-08 07:18:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:18:06 - End Time 2025-03-08 07:18:06 [2025-03-08 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633572', 'tblTempUsageDetail_20' ) start [2025-03-08 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633572', 'tblTempUsageDetail_20' ) end [2025-03-08 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633572', 'tblTempVendorCDR_20' ) start [2025-03-08 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633572', 'tblTempVendorCDR_20' ) end [2025-03-08 07:18:18] Production.INFO: ProcessCDR(1,14633572,1,1,2) [2025-03-08 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633572', 'tblTempUsageDetail_20' ) start [2025-03-08 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633572', 'tblTempUsageDetail_20' ) end [2025-03-08 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:18:22] Production.INFO: ==7603== Releasing lock... [2025-03-08 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:18:22] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:19:06 [end_date_ymd] => 2025-03-08 07:19:06 [RateCDR] => 1 ) [2025-03-08 07:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:19:06' and `end` < '2025-03-08 07:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:19:18] Production.INFO: count ==110 [2025-03-08 07:19:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:19:06 - End Time 2025-03-08 07:19:06 [2025-03-08 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633577', 'tblTempUsageDetail_20' ) start [2025-03-08 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633577', 'tblTempUsageDetail_20' ) end [2025-03-08 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633577', 'tblTempVendorCDR_20' ) start [2025-03-08 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633577', 'tblTempVendorCDR_20' ) end [2025-03-08 07:19:18] Production.INFO: ProcessCDR(1,14633577,1,1,2) [2025-03-08 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633577', 'tblTempUsageDetail_20' ) start [2025-03-08 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633577', 'tblTempUsageDetail_20' ) end [2025-03-08 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:19:22] Production.INFO: ==7736== Releasing lock... [2025-03-08 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:19:22] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:20:06 [end_date_ymd] => 2025-03-08 07:20:06 [RateCDR] => 1 ) [2025-03-08 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:20:06' and `end` < '2025-03-08 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:20:18] Production.INFO: count ==111 [2025-03-08 07:20:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:20:06 - End Time 2025-03-08 07:20:06 [2025-03-08 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633583', 'tblTempUsageDetail_20' ) start [2025-03-08 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633583', 'tblTempUsageDetail_20' ) end [2025-03-08 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633583', 'tblTempVendorCDR_20' ) start [2025-03-08 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633583', 'tblTempVendorCDR_20' ) end [2025-03-08 07:20:18] Production.INFO: ProcessCDR(1,14633583,1,1,2) [2025-03-08 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633583', 'tblTempUsageDetail_20' ) start [2025-03-08 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633583', 'tblTempUsageDetail_20' ) end [2025-03-08 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:20:23] Production.INFO: ==7867== Releasing lock... [2025-03-08 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:20:23] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:21:05 [end_date_ymd] => 2025-03-08 07:21:05 [RateCDR] => 1 ) [2025-03-08 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:21:05' and `end` < '2025-03-08 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:21:18] Production.INFO: count ==117 [2025-03-08 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:21:05 - End Time 2025-03-08 07:21:05 [2025-03-08 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633588', 'tblTempUsageDetail_20' ) start [2025-03-08 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633588', 'tblTempUsageDetail_20' ) end [2025-03-08 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633588', 'tblTempVendorCDR_20' ) start [2025-03-08 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633588', 'tblTempVendorCDR_20' ) end [2025-03-08 07:21:18] Production.INFO: ProcessCDR(1,14633588,1,1,2) [2025-03-08 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633588', 'tblTempUsageDetail_20' ) start [2025-03-08 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633588', 'tblTempUsageDetail_20' ) end [2025-03-08 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:21:21] Production.INFO: ==7999== Releasing lock... [2025-03-08 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-08 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:22:05 [end_date_ymd] => 2025-03-08 07:22:05 [RateCDR] => 1 ) [2025-03-08 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:22:05' and `end` < '2025-03-08 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:22:17] Production.INFO: count ==117 [2025-03-08 07:22:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:22:05 - End Time 2025-03-08 07:22:05 [2025-03-08 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633593', 'tblTempUsageDetail_20' ) start [2025-03-08 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633593', 'tblTempUsageDetail_20' ) end [2025-03-08 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633593', 'tblTempVendorCDR_20' ) start [2025-03-08 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633593', 'tblTempVendorCDR_20' ) end [2025-03-08 07:22:18] Production.INFO: ProcessCDR(1,14633593,1,1,2) [2025-03-08 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633593', 'tblTempUsageDetail_20' ) start [2025-03-08 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633593', 'tblTempUsageDetail_20' ) end [2025-03-08 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:22:21] Production.INFO: ==8125== Releasing lock... [2025-03-08 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-08 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:23:05 [end_date_ymd] => 2025-03-08 07:23:05 [RateCDR] => 1 ) [2025-03-08 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:23:05' and `end` < '2025-03-08 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:23:17] Production.INFO: count ==117 [2025-03-08 07:23:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:23:05 - End Time 2025-03-08 07:23:05 [2025-03-08 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633598', 'tblTempUsageDetail_20' ) start [2025-03-08 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633598', 'tblTempUsageDetail_20' ) end [2025-03-08 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633598', 'tblTempVendorCDR_20' ) start [2025-03-08 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633598', 'tblTempVendorCDR_20' ) end [2025-03-08 07:23:17] Production.INFO: ProcessCDR(1,14633598,1,1,2) [2025-03-08 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633598', 'tblTempUsageDetail_20' ) start [2025-03-08 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633598', 'tblTempUsageDetail_20' ) end [2025-03-08 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:23:21] Production.INFO: ==8270== Releasing lock... [2025-03-08 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-08 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:24:05 [end_date_ymd] => 2025-03-08 07:24:05 [RateCDR] => 1 ) [2025-03-08 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:24:05' and `end` < '2025-03-08 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:24:17] Production.INFO: count ==118 [2025-03-08 07:24:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:24:05 - End Time 2025-03-08 07:24:05 [2025-03-08 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633603', 'tblTempUsageDetail_20' ) start [2025-03-08 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633603', 'tblTempUsageDetail_20' ) end [2025-03-08 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633603', 'tblTempVendorCDR_20' ) start [2025-03-08 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633603', 'tblTempVendorCDR_20' ) end [2025-03-08 07:24:18] Production.INFO: ProcessCDR(1,14633603,1,1,2) [2025-03-08 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633603', 'tblTempUsageDetail_20' ) start [2025-03-08 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633603', 'tblTempUsageDetail_20' ) end [2025-03-08 07:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:24:23] Production.INFO: ==8445== Releasing lock... [2025-03-08 07:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:24:23] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:25:05 [end_date_ymd] => 2025-03-08 07:25:05 [RateCDR] => 1 ) [2025-03-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-03-08 04:25:05' and `end` < '2025-03-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-03-08 07:25:17] Production.INFO: count ==121 [2025-03-08 07:25:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:25:05 - End Time 2025-03-08 07:25:05 [2025-03-08 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633608', 'tblTempUsageDetail_20' ) start [2025-03-08 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633608', 'tblTempUsageDetail_20' ) end [2025-03-08 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633608', 'tblTempVendorCDR_20' ) start [2025-03-08 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633608', 'tblTempVendorCDR_20' ) end [2025-03-08 07:25:17] Production.INFO: ProcessCDR(1,14633608,1,1,2) [2025-03-08 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633608', 'tblTempUsageDetail_20' ) start [2025-03-08 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633608', 'tblTempUsageDetail_20' ) end [2025-03-08 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:25:20] Production.INFO: ==8625== Releasing lock... [2025-03-08 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:25:20] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:26:05 [end_date_ymd] => 2025-03-08 07:26:05 [RateCDR] => 1 ) [2025-03-08 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:26:05' and `end` < '2025-03-08 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:26:17] Production.INFO: count ==121 [2025-03-08 07:26:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:26:05 - End Time 2025-03-08 07:26:05 [2025-03-08 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633613', 'tblTempUsageDetail_20' ) start [2025-03-08 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633613', 'tblTempUsageDetail_20' ) end [2025-03-08 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633613', 'tblTempVendorCDR_20' ) start [2025-03-08 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633613', 'tblTempVendorCDR_20' ) end [2025-03-08 07:26:18] Production.INFO: ProcessCDR(1,14633613,1,1,2) [2025-03-08 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633613', 'tblTempUsageDetail_20' ) start [2025-03-08 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633613', 'tblTempUsageDetail_20' ) end [2025-03-08 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:26:21] Production.INFO: ==8828== Releasing lock... [2025-03-08 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:26:21] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:27:05 [end_date_ymd] => 2025-03-08 07:27:05 [RateCDR] => 1 ) [2025-03-08 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:27:05' and `end` < '2025-03-08 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:27:17] Production.INFO: count ==117 [2025-03-08 07:27:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:27:05 - End Time 2025-03-08 07:27:05 [2025-03-08 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633618', 'tblTempUsageDetail_20' ) start [2025-03-08 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633618', 'tblTempUsageDetail_20' ) end [2025-03-08 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633618', 'tblTempVendorCDR_20' ) start [2025-03-08 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633618', 'tblTempVendorCDR_20' ) end [2025-03-08 07:27:18] Production.INFO: ProcessCDR(1,14633618,1,1,2) [2025-03-08 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633618', 'tblTempUsageDetail_20' ) start [2025-03-08 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633618', 'tblTempUsageDetail_20' ) end [2025-03-08 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:27:21] Production.INFO: ==8998== Releasing lock... [2025-03-08 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:27:21] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:28:06 [end_date_ymd] => 2025-03-08 07:28:06 [RateCDR] => 1 ) [2025-03-08 07:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:28:06' and `end` < '2025-03-08 07:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:28:18] Production.INFO: count ==109 [2025-03-08 07:28:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:28:06 - End Time 2025-03-08 07:28:06 [2025-03-08 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633623', 'tblTempUsageDetail_20' ) start [2025-03-08 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633623', 'tblTempUsageDetail_20' ) end [2025-03-08 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633623', 'tblTempVendorCDR_20' ) start [2025-03-08 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633623', 'tblTempVendorCDR_20' ) end [2025-03-08 07:28:18] Production.INFO: ProcessCDR(1,14633623,1,1,2) [2025-03-08 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633623', 'tblTempUsageDetail_20' ) start [2025-03-08 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633623', 'tblTempUsageDetail_20' ) end [2025-03-08 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:28:21] Production.INFO: ==9174== Releasing lock... [2025-03-08 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:29:05 [end_date_ymd] => 2025-03-08 07:29:05 [RateCDR] => 1 ) [2025-03-08 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:29:05' and `end` < '2025-03-08 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:29:17] Production.INFO: count ==99 [2025-03-08 07:29:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:29:05 - End Time 2025-03-08 07:29:05 [2025-03-08 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633628', 'tblTempUsageDetail_20' ) start [2025-03-08 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633628', 'tblTempUsageDetail_20' ) end [2025-03-08 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633628', 'tblTempVendorCDR_20' ) start [2025-03-08 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633628', 'tblTempVendorCDR_20' ) end [2025-03-08 07:29:17] Production.INFO: ProcessCDR(1,14633628,1,1,2) [2025-03-08 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633628', 'tblTempUsageDetail_20' ) start [2025-03-08 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633628', 'tblTempUsageDetail_20' ) end [2025-03-08 07:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:29:20] Production.INFO: ==9343== Releasing lock... [2025-03-08 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:29:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:30:06 [end_date_ymd] => 2025-03-08 07:30:06 [RateCDR] => 1 ) [2025-03-08 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:30:06' and `end` < '2025-03-08 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:30:19] Production.INFO: count ==94 [2025-03-08 07:30:19] Production.ERROR: pbx CDR StartTime 2025-03-08 04:30:06 - End Time 2025-03-08 07:30:06 [2025-03-08 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633633', 'tblTempUsageDetail_20' ) start [2025-03-08 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633633', 'tblTempUsageDetail_20' ) end [2025-03-08 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633633', 'tblTempVendorCDR_20' ) start [2025-03-08 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633633', 'tblTempVendorCDR_20' ) end [2025-03-08 07:30:19] Production.INFO: ProcessCDR(1,14633633,1,1,2) [2025-03-08 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633633', 'tblTempUsageDetail_20' ) start [2025-03-08 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633633', 'tblTempUsageDetail_20' ) end [2025-03-08 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:30:22] Production.INFO: ==9524== Releasing lock... [2025-03-08 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:31:05 [end_date_ymd] => 2025-03-08 07:31:05 [RateCDR] => 1 ) [2025-03-08 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:31:05' and `end` < '2025-03-08 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:31:17] Production.INFO: count ==94 [2025-03-08 07:31:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:31:05 - End Time 2025-03-08 07:31:05 [2025-03-08 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633639', 'tblTempUsageDetail_20' ) start [2025-03-08 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633639', 'tblTempUsageDetail_20' ) end [2025-03-08 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633639', 'tblTempVendorCDR_20' ) start [2025-03-08 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633639', 'tblTempVendorCDR_20' ) end [2025-03-08 07:31:17] Production.INFO: ProcessCDR(1,14633639,1,1,2) [2025-03-08 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633639', 'tblTempUsageDetail_20' ) start [2025-03-08 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633639', 'tblTempUsageDetail_20' ) end [2025-03-08 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:31:21] Production.INFO: ==9678== Releasing lock... [2025-03-08 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:32:06 [end_date_ymd] => 2025-03-08 07:32:06 [RateCDR] => 1 ) [2025-03-08 07:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:32:06' and `end` < '2025-03-08 07:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:32:18] Production.INFO: count ==94 [2025-03-08 07:32:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:32:06 - End Time 2025-03-08 07:32:06 [2025-03-08 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633644', 'tblTempUsageDetail_20' ) start [2025-03-08 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633644', 'tblTempUsageDetail_20' ) end [2025-03-08 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633644', 'tblTempVendorCDR_20' ) start [2025-03-08 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633644', 'tblTempVendorCDR_20' ) end [2025-03-08 07:32:18] Production.INFO: ProcessCDR(1,14633644,1,1,2) [2025-03-08 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633644', 'tblTempUsageDetail_20' ) start [2025-03-08 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633644', 'tblTempUsageDetail_20' ) end [2025-03-08 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:32:22] Production.INFO: ==9790== Releasing lock... [2025-03-08 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:32:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:33:05 [end_date_ymd] => 2025-03-08 07:33:05 [RateCDR] => 1 ) [2025-03-08 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:33:05' and `end` < '2025-03-08 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:33:17] Production.INFO: count ==95 [2025-03-08 07:33:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:33:05 - End Time 2025-03-08 07:33:05 [2025-03-08 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633649', 'tblTempUsageDetail_20' ) start [2025-03-08 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633649', 'tblTempUsageDetail_20' ) end [2025-03-08 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633649', 'tblTempVendorCDR_20' ) start [2025-03-08 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633649', 'tblTempVendorCDR_20' ) end [2025-03-08 07:33:17] Production.INFO: ProcessCDR(1,14633649,1,1,2) [2025-03-08 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633649', 'tblTempUsageDetail_20' ) start [2025-03-08 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633649', 'tblTempUsageDetail_20' ) end [2025-03-08 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:33:22] Production.INFO: ==9901== Releasing lock... [2025-03-08 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:33:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:34:06 [end_date_ymd] => 2025-03-08 07:34:06 [RateCDR] => 1 ) [2025-03-08 07:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:34:06' and `end` < '2025-03-08 07:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:34:18] Production.INFO: count ==95 [2025-03-08 07:34:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:34:06 - End Time 2025-03-08 07:34:06 [2025-03-08 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633654', 'tblTempUsageDetail_20' ) start [2025-03-08 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633654', 'tblTempUsageDetail_20' ) end [2025-03-08 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633654', 'tblTempVendorCDR_20' ) start [2025-03-08 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633654', 'tblTempVendorCDR_20' ) end [2025-03-08 07:34:18] Production.INFO: ProcessCDR(1,14633654,1,1,2) [2025-03-08 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633654', 'tblTempUsageDetail_20' ) start [2025-03-08 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633654', 'tblTempUsageDetail_20' ) end [2025-03-08 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:34:21] Production.INFO: ==10018== Releasing lock... [2025-03-08 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:35:05 [end_date_ymd] => 2025-03-08 07:35:05 [RateCDR] => 1 ) [2025-03-08 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:35:05' and `end` < '2025-03-08 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:35:17] Production.INFO: count ==95 [2025-03-08 07:35:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:35:05 - End Time 2025-03-08 07:35:05 [2025-03-08 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633659', 'tblTempUsageDetail_20' ) start [2025-03-08 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633659', 'tblTempUsageDetail_20' ) end [2025-03-08 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633659', 'tblTempVendorCDR_20' ) start [2025-03-08 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633659', 'tblTempVendorCDR_20' ) end [2025-03-08 07:35:17] Production.INFO: ProcessCDR(1,14633659,1,1,2) [2025-03-08 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633659', 'tblTempUsageDetail_20' ) start [2025-03-08 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633659', 'tblTempUsageDetail_20' ) end [2025-03-08 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:35:20] Production.INFO: ==10131== Releasing lock... [2025-03-08 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:35:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:36:05 [end_date_ymd] => 2025-03-08 07:36:05 [RateCDR] => 1 ) [2025-03-08 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:36:05' and `end` < '2025-03-08 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:36:17] Production.INFO: count ==95 [2025-03-08 07:36:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:36:05 - End Time 2025-03-08 07:36:05 [2025-03-08 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633664', 'tblTempUsageDetail_20' ) start [2025-03-08 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633664', 'tblTempUsageDetail_20' ) end [2025-03-08 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633664', 'tblTempVendorCDR_20' ) start [2025-03-08 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633664', 'tblTempVendorCDR_20' ) end [2025-03-08 07:36:17] Production.INFO: ProcessCDR(1,14633664,1,1,2) [2025-03-08 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633664', 'tblTempUsageDetail_20' ) start [2025-03-08 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633664', 'tblTempUsageDetail_20' ) end [2025-03-08 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:36:21] Production.INFO: ==10238== Releasing lock... [2025-03-08 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:37:05 [end_date_ymd] => 2025-03-08 07:37:05 [RateCDR] => 1 ) [2025-03-08 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:37:05' and `end` < '2025-03-08 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:37:17] Production.INFO: count ==99 [2025-03-08 07:37:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:37:05 - End Time 2025-03-08 07:37:05 [2025-03-08 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633669', 'tblTempUsageDetail_20' ) start [2025-03-08 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633669', 'tblTempUsageDetail_20' ) end [2025-03-08 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633669', 'tblTempVendorCDR_20' ) start [2025-03-08 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633669', 'tblTempVendorCDR_20' ) end [2025-03-08 07:37:17] Production.INFO: ProcessCDR(1,14633669,1,1,2) [2025-03-08 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633669', 'tblTempUsageDetail_20' ) start [2025-03-08 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633669', 'tblTempUsageDetail_20' ) end [2025-03-08 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:37:21] Production.INFO: ==10312== Releasing lock... [2025-03-08 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:38:05 [end_date_ymd] => 2025-03-08 07:38:05 [RateCDR] => 1 ) [2025-03-08 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:38:05' and `end` < '2025-03-08 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:38:18] Production.INFO: count ==99 [2025-03-08 07:38:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:38:05 - End Time 2025-03-08 07:38:05 [2025-03-08 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633674', 'tblTempUsageDetail_20' ) start [2025-03-08 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633674', 'tblTempUsageDetail_20' ) end [2025-03-08 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633674', 'tblTempVendorCDR_20' ) start [2025-03-08 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633674', 'tblTempVendorCDR_20' ) end [2025-03-08 07:38:18] Production.INFO: ProcessCDR(1,14633674,1,1,2) [2025-03-08 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633674', 'tblTempUsageDetail_20' ) start [2025-03-08 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633674', 'tblTempUsageDetail_20' ) end [2025-03-08 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:38:21] Production.INFO: ==10382== Releasing lock... [2025-03-08 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:39:05 [end_date_ymd] => 2025-03-08 07:39:05 [RateCDR] => 1 ) [2025-03-08 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:39:05' and `end` < '2025-03-08 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:39:17] Production.INFO: count ==99 [2025-03-08 07:39:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:39:05 - End Time 2025-03-08 07:39:05 [2025-03-08 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633679', 'tblTempUsageDetail_20' ) start [2025-03-08 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633679', 'tblTempUsageDetail_20' ) end [2025-03-08 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633679', 'tblTempVendorCDR_20' ) start [2025-03-08 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633679', 'tblTempVendorCDR_20' ) end [2025-03-08 07:39:17] Production.INFO: ProcessCDR(1,14633679,1,1,2) [2025-03-08 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633679', 'tblTempUsageDetail_20' ) start [2025-03-08 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633679', 'tblTempUsageDetail_20' ) end [2025-03-08 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:39:20] Production.INFO: ==10456== Releasing lock... [2025-03-08 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:39:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:40:06 [end_date_ymd] => 2025-03-08 07:40:06 [RateCDR] => 1 ) [2025-03-08 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:40:06' and `end` < '2025-03-08 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:40:18] Production.INFO: count ==107 [2025-03-08 07:40:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:40:06 - End Time 2025-03-08 07:40:06 [2025-03-08 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633684', 'tblTempUsageDetail_20' ) start [2025-03-08 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633684', 'tblTempUsageDetail_20' ) end [2025-03-08 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633684', 'tblTempVendorCDR_20' ) start [2025-03-08 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633684', 'tblTempVendorCDR_20' ) end [2025-03-08 07:40:18] Production.INFO: ProcessCDR(1,14633684,1,1,2) [2025-03-08 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633684', 'tblTempUsageDetail_20' ) start [2025-03-08 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633684', 'tblTempUsageDetail_20' ) end [2025-03-08 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:40:21] Production.INFO: ==10534== Releasing lock... [2025-03-08 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:41:05 [end_date_ymd] => 2025-03-08 07:41:05 [RateCDR] => 1 ) [2025-03-08 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:41:05' and `end` < '2025-03-08 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:41:17] Production.INFO: count ==107 [2025-03-08 07:41:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:41:05 - End Time 2025-03-08 07:41:05 [2025-03-08 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633690', 'tblTempUsageDetail_20' ) start [2025-03-08 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633690', 'tblTempUsageDetail_20' ) end [2025-03-08 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633690', 'tblTempVendorCDR_20' ) start [2025-03-08 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633690', 'tblTempVendorCDR_20' ) end [2025-03-08 07:41:17] Production.INFO: ProcessCDR(1,14633690,1,1,2) [2025-03-08 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633690', 'tblTempUsageDetail_20' ) start [2025-03-08 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633690', 'tblTempUsageDetail_20' ) end [2025-03-08 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:41:20] Production.INFO: ==10609== Releasing lock... [2025-03-08 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:41:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:42:05 [end_date_ymd] => 2025-03-08 07:42:05 [RateCDR] => 1 ) [2025-03-08 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:42:05' and `end` < '2025-03-08 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:42:17] Production.INFO: count ==107 [2025-03-08 07:42:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:42:05 - End Time 2025-03-08 07:42:05 [2025-03-08 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633695', 'tblTempUsageDetail_20' ) start [2025-03-08 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633695', 'tblTempUsageDetail_20' ) end [2025-03-08 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633695', 'tblTempVendorCDR_20' ) start [2025-03-08 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633695', 'tblTempVendorCDR_20' ) end [2025-03-08 07:42:17] Production.INFO: ProcessCDR(1,14633695,1,1,2) [2025-03-08 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633695', 'tblTempUsageDetail_20' ) start [2025-03-08 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633695', 'tblTempUsageDetail_20' ) end [2025-03-08 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:42:21] Production.INFO: ==10724== Releasing lock... [2025-03-08 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:43:06 [end_date_ymd] => 2025-03-08 07:43:06 [RateCDR] => 1 ) [2025-03-08 07:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:43:06' and `end` < '2025-03-08 07:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:43:18] Production.INFO: count ==107 [2025-03-08 07:43:18] Production.ERROR: pbx CDR StartTime 2025-03-08 04:43:06 - End Time 2025-03-08 07:43:06 [2025-03-08 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633700', 'tblTempUsageDetail_20' ) start [2025-03-08 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633700', 'tblTempUsageDetail_20' ) end [2025-03-08 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633700', 'tblTempVendorCDR_20' ) start [2025-03-08 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633700', 'tblTempVendorCDR_20' ) end [2025-03-08 07:43:18] Production.INFO: ProcessCDR(1,14633700,1,1,2) [2025-03-08 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633700', 'tblTempUsageDetail_20' ) start [2025-03-08 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633700', 'tblTempUsageDetail_20' ) end [2025-03-08 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:43:21] Production.INFO: ==10799== Releasing lock... [2025-03-08 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:44:05 [end_date_ymd] => 2025-03-08 07:44:05 [RateCDR] => 1 ) [2025-03-08 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:44:05' and `end` < '2025-03-08 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:44:17] Production.INFO: count ==107 [2025-03-08 07:44:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:44:05 - End Time 2025-03-08 07:44:05 [2025-03-08 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633705', 'tblTempUsageDetail_20' ) start [2025-03-08 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633705', 'tblTempUsageDetail_20' ) end [2025-03-08 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633705', 'tblTempVendorCDR_20' ) start [2025-03-08 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633705', 'tblTempVendorCDR_20' ) end [2025-03-08 07:44:17] Production.INFO: ProcessCDR(1,14633705,1,1,2) [2025-03-08 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633705', 'tblTempUsageDetail_20' ) start [2025-03-08 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633705', 'tblTempUsageDetail_20' ) end [2025-03-08 07:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:44:20] Production.INFO: ==10870== Releasing lock... [2025-03-08 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:44:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:45:05 [end_date_ymd] => 2025-03-08 07:45:05 [RateCDR] => 1 ) [2025-03-08 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:45:05' and `end` < '2025-03-08 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:45:17] Production.INFO: count ==107 [2025-03-08 07:45:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:45:05 - End Time 2025-03-08 07:45:05 [2025-03-08 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633710', 'tblTempUsageDetail_20' ) start [2025-03-08 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633710', 'tblTempUsageDetail_20' ) end [2025-03-08 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633710', 'tblTempVendorCDR_20' ) start [2025-03-08 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633710', 'tblTempVendorCDR_20' ) end [2025-03-08 07:45:17] Production.INFO: ProcessCDR(1,14633710,1,1,2) [2025-03-08 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633710', 'tblTempUsageDetail_20' ) start [2025-03-08 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633710', 'tblTempUsageDetail_20' ) end [2025-03-08 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:45:20] Production.INFO: ==10947== Releasing lock... [2025-03-08 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:45:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:46:05 [end_date_ymd] => 2025-03-08 07:46:05 [RateCDR] => 1 ) [2025-03-08 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:46:05' and `end` < '2025-03-08 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:46:17] Production.INFO: count ==107 [2025-03-08 07:46:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:46:05 - End Time 2025-03-08 07:46:05 [2025-03-08 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633715', 'tblTempUsageDetail_20' ) start [2025-03-08 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633715', 'tblTempUsageDetail_20' ) end [2025-03-08 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633715', 'tblTempVendorCDR_20' ) start [2025-03-08 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633715', 'tblTempVendorCDR_20' ) end [2025-03-08 07:46:17] Production.INFO: ProcessCDR(1,14633715,1,1,2) [2025-03-08 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633715', 'tblTempUsageDetail_20' ) start [2025-03-08 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633715', 'tblTempUsageDetail_20' ) end [2025-03-08 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:46:20] Production.INFO: ==11022== Releasing lock... [2025-03-08 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:46:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:47:05 [end_date_ymd] => 2025-03-08 07:47:05 [RateCDR] => 1 ) [2025-03-08 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:47:05' and `end` < '2025-03-08 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:47:17] Production.INFO: count ==107 [2025-03-08 07:47:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:47:05 - End Time 2025-03-08 07:47:05 [2025-03-08 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633720', 'tblTempUsageDetail_20' ) start [2025-03-08 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633720', 'tblTempUsageDetail_20' ) end [2025-03-08 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633720', 'tblTempVendorCDR_20' ) start [2025-03-08 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633720', 'tblTempVendorCDR_20' ) end [2025-03-08 07:47:17] Production.INFO: ProcessCDR(1,14633720,1,1,2) [2025-03-08 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633720', 'tblTempUsageDetail_20' ) start [2025-03-08 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633720', 'tblTempUsageDetail_20' ) end [2025-03-08 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:47:21] Production.INFO: ==11098== Releasing lock... [2025-03-08 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:48:05 [end_date_ymd] => 2025-03-08 07:48:05 [RateCDR] => 1 ) [2025-03-08 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:48:05' and `end` < '2025-03-08 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:48:17] Production.INFO: count ==107 [2025-03-08 07:48:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:48:05 - End Time 2025-03-08 07:48:05 [2025-03-08 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633725', 'tblTempUsageDetail_20' ) start [2025-03-08 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633725', 'tblTempUsageDetail_20' ) end [2025-03-08 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633725', 'tblTempVendorCDR_20' ) start [2025-03-08 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633725', 'tblTempVendorCDR_20' ) end [2025-03-08 07:48:17] Production.INFO: ProcessCDR(1,14633725,1,1,2) [2025-03-08 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633725', 'tblTempUsageDetail_20' ) start [2025-03-08 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633725', 'tblTempUsageDetail_20' ) end [2025-03-08 07:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:48:20] Production.INFO: ==11169== Releasing lock... [2025-03-08 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:48:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:49:05 [end_date_ymd] => 2025-03-08 07:49:05 [RateCDR] => 1 ) [2025-03-08 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:49:05' and `end` < '2025-03-08 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:49:17] Production.INFO: count ==107 [2025-03-08 07:49:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:49:05 - End Time 2025-03-08 07:49:05 [2025-03-08 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633730', 'tblTempUsageDetail_20' ) start [2025-03-08 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633730', 'tblTempUsageDetail_20' ) end [2025-03-08 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633730', 'tblTempVendorCDR_20' ) start [2025-03-08 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633730', 'tblTempVendorCDR_20' ) end [2025-03-08 07:49:17] Production.INFO: ProcessCDR(1,14633730,1,1,2) [2025-03-08 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633730', 'tblTempUsageDetail_20' ) start [2025-03-08 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633730', 'tblTempUsageDetail_20' ) end [2025-03-08 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:49:21] Production.INFO: ==11245== Releasing lock... [2025-03-08 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:50:05 [end_date_ymd] => 2025-03-08 07:50:05 [RateCDR] => 1 ) [2025-03-08 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:50:05' and `end` < '2025-03-08 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:50:17] Production.INFO: count ==107 [2025-03-08 07:50:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:50:05 - End Time 2025-03-08 07:50:05 [2025-03-08 07:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633736', 'tblTempUsageDetail_20' ) start [2025-03-08 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633736', 'tblTempUsageDetail_20' ) end [2025-03-08 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633736', 'tblTempVendorCDR_20' ) start [2025-03-08 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633736', 'tblTempVendorCDR_20' ) end [2025-03-08 07:50:17] Production.INFO: ProcessCDR(1,14633736,1,1,2) [2025-03-08 07:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633736', 'tblTempUsageDetail_20' ) start [2025-03-08 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633736', 'tblTempUsageDetail_20' ) end [2025-03-08 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:50:21] Production.INFO: ==11320== Releasing lock... [2025-03-08 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:51:05 [end_date_ymd] => 2025-03-08 07:51:05 [RateCDR] => 1 ) [2025-03-08 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:51:05' and `end` < '2025-03-08 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:51:17] Production.INFO: count ==107 [2025-03-08 07:51:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:51:05 - End Time 2025-03-08 07:51:05 [2025-03-08 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633741', 'tblTempUsageDetail_20' ) start [2025-03-08 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633741', 'tblTempUsageDetail_20' ) end [2025-03-08 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633741', 'tblTempVendorCDR_20' ) start [2025-03-08 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633741', 'tblTempVendorCDR_20' ) end [2025-03-08 07:51:17] Production.INFO: ProcessCDR(1,14633741,1,1,2) [2025-03-08 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633741', 'tblTempUsageDetail_20' ) start [2025-03-08 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633741', 'tblTempUsageDetail_20' ) end [2025-03-08 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:51:20] Production.INFO: ==11395== Releasing lock... [2025-03-08 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:51:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:52:05 [end_date_ymd] => 2025-03-08 07:52:05 [RateCDR] => 1 ) [2025-03-08 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:52:05' and `end` < '2025-03-08 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:52:17] Production.INFO: count ==108 [2025-03-08 07:52:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:52:05 - End Time 2025-03-08 07:52:05 [2025-03-08 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633746', 'tblTempUsageDetail_20' ) start [2025-03-08 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633746', 'tblTempUsageDetail_20' ) end [2025-03-08 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633746', 'tblTempVendorCDR_20' ) start [2025-03-08 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633746', 'tblTempVendorCDR_20' ) end [2025-03-08 07:52:17] Production.INFO: ProcessCDR(1,14633746,1,1,2) [2025-03-08 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633746', 'tblTempUsageDetail_20' ) start [2025-03-08 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633746', 'tblTempUsageDetail_20' ) end [2025-03-08 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:52:22] Production.INFO: ==11467== Releasing lock... [2025-03-08 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:53:05 [end_date_ymd] => 2025-03-08 07:53:05 [RateCDR] => 1 ) [2025-03-08 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:53:05' and `end` < '2025-03-08 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:53:17] Production.INFO: count ==108 [2025-03-08 07:53:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:53:05 - End Time 2025-03-08 07:53:05 [2025-03-08 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633751', 'tblTempUsageDetail_20' ) start [2025-03-08 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633751', 'tblTempUsageDetail_20' ) end [2025-03-08 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633751', 'tblTempVendorCDR_20' ) start [2025-03-08 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633751', 'tblTempVendorCDR_20' ) end [2025-03-08 07:53:17] Production.INFO: ProcessCDR(1,14633751,1,1,2) [2025-03-08 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633751', 'tblTempUsageDetail_20' ) start [2025-03-08 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633751', 'tblTempUsageDetail_20' ) end [2025-03-08 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:53:21] Production.INFO: ==11541== Releasing lock... [2025-03-08 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:54:05 [end_date_ymd] => 2025-03-08 07:54:05 [RateCDR] => 1 ) [2025-03-08 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:54:05' and `end` < '2025-03-08 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:54:17] Production.INFO: count ==108 [2025-03-08 07:54:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:54:05 - End Time 2025-03-08 07:54:05 [2025-03-08 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633756', 'tblTempUsageDetail_20' ) start [2025-03-08 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633756', 'tblTempUsageDetail_20' ) end [2025-03-08 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633756', 'tblTempVendorCDR_20' ) start [2025-03-08 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633756', 'tblTempVendorCDR_20' ) end [2025-03-08 07:54:17] Production.INFO: ProcessCDR(1,14633756,1,1,2) [2025-03-08 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633756', 'tblTempUsageDetail_20' ) start [2025-03-08 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633756', 'tblTempUsageDetail_20' ) end [2025-03-08 07:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:54:20] Production.INFO: ==11619== Releasing lock... [2025-03-08 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:54:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:55:05 [end_date_ymd] => 2025-03-08 07:55:05 [RateCDR] => 1 ) [2025-03-08 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:55:05' and `end` < '2025-03-08 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:55:17] Production.INFO: count ==108 [2025-03-08 07:55:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:55:05 - End Time 2025-03-08 07:55:05 [2025-03-08 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633757', 'tblTempUsageDetail_20' ) start [2025-03-08 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633757', 'tblTempUsageDetail_20' ) end [2025-03-08 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633757', 'tblTempVendorCDR_20' ) start [2025-03-08 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633757', 'tblTempVendorCDR_20' ) end [2025-03-08 07:55:17] Production.INFO: ProcessCDR(1,14633757,1,1,2) [2025-03-08 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633757', 'tblTempUsageDetail_20' ) start [2025-03-08 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633757', 'tblTempUsageDetail_20' ) end [2025-03-08 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:55:20] Production.INFO: ==11690== Releasing lock... [2025-03-08 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:55:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:56:04 [end_date_ymd] => 2025-03-08 07:56:04 [RateCDR] => 1 ) [2025-03-08 07:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:56:04' and `end` < '2025-03-08 07:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:56:16] Production.INFO: count ==108 [2025-03-08 07:56:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:56:04 - End Time 2025-03-08 07:56:04 [2025-03-08 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633766', 'tblTempUsageDetail_20' ) start [2025-03-08 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633766', 'tblTempUsageDetail_20' ) end [2025-03-08 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633766', 'tblTempVendorCDR_20' ) start [2025-03-08 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633766', 'tblTempVendorCDR_20' ) end [2025-03-08 07:56:17] Production.INFO: ProcessCDR(1,14633766,1,1,2) [2025-03-08 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633766', 'tblTempUsageDetail_20' ) start [2025-03-08 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633766', 'tblTempUsageDetail_20' ) end [2025-03-08 07:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:56:20] Production.INFO: ==11762== Releasing lock... [2025-03-08 07:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:56:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:57:05 [end_date_ymd] => 2025-03-08 07:57:05 [RateCDR] => 1 ) [2025-03-08 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:57:05' and `end` < '2025-03-08 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:57:17] Production.INFO: count ==109 [2025-03-08 07:57:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:57:05 - End Time 2025-03-08 07:57:05 [2025-03-08 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633771', 'tblTempUsageDetail_20' ) start [2025-03-08 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633771', 'tblTempUsageDetail_20' ) end [2025-03-08 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633771', 'tblTempVendorCDR_20' ) start [2025-03-08 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633771', 'tblTempVendorCDR_20' ) end [2025-03-08 07:57:17] Production.INFO: ProcessCDR(1,14633771,1,1,2) [2025-03-08 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633771', 'tblTempUsageDetail_20' ) start [2025-03-08 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633771', 'tblTempUsageDetail_20' ) end [2025-03-08 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:57:20] Production.INFO: ==11879== Releasing lock... [2025-03-08 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:57:20] Production.INFO: 29 MB #Memory Used# [2025-03-08 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:58:05 [end_date_ymd] => 2025-03-08 07:58:05 [RateCDR] => 1 ) [2025-03-08 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:58:05' and `end` < '2025-03-08 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:58:17] Production.INFO: count ==110 [2025-03-08 07:58:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:58:05 - End Time 2025-03-08 07:58:05 [2025-03-08 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633776', 'tblTempUsageDetail_20' ) start [2025-03-08 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633776', 'tblTempUsageDetail_20' ) end [2025-03-08 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633776', 'tblTempVendorCDR_20' ) start [2025-03-08 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633776', 'tblTempVendorCDR_20' ) end [2025-03-08 07:58:17] Production.INFO: ProcessCDR(1,14633776,1,1,2) [2025-03-08 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633776', 'tblTempUsageDetail_20' ) start [2025-03-08 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633776', 'tblTempUsageDetail_20' ) end [2025-03-08 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:58:22] Production.INFO: ==11950== Releasing lock... [2025-03-08 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-08 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 04:59:05 [end_date_ymd] => 2025-03-08 07:59:05 [RateCDR] => 1 ) [2025-03-08 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 04:59:05' and `end` < '2025-03-08 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 07:59:17] Production.INFO: count ==118 [2025-03-08 07:59:17] Production.ERROR: pbx CDR StartTime 2025-03-08 04:59:05 - End Time 2025-03-08 07:59:05 [2025-03-08 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633781', 'tblTempUsageDetail_20' ) start [2025-03-08 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633781', 'tblTempUsageDetail_20' ) end [2025-03-08 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633781', 'tblTempVendorCDR_20' ) start [2025-03-08 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633781', 'tblTempVendorCDR_20' ) end [2025-03-08 07:59:17] Production.INFO: ProcessCDR(1,14633781,1,1,2) [2025-03-08 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633781', 'tblTempUsageDetail_20' ) start [2025-03-08 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633781', 'tblTempUsageDetail_20' ) end [2025-03-08 07:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 07:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 07:59:20] Production.INFO: ==12025== Releasing lock... [2025-03-08 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 07:59:20] Production.INFO: 29 MB #Memory Used# [2025-03-08 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:00:06 [end_date_ymd] => 2025-03-08 08:00:06 [RateCDR] => 1 ) [2025-03-08 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:00:06' and `end` < '2025-03-08 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:00:18] Production.INFO: count ==129 [2025-03-08 08:00:18] Production.ERROR: pbx CDR StartTime 2025-03-08 05:00:06 - End Time 2025-03-08 08:00:06 [2025-03-08 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633786', 'tblTempUsageDetail_20' ) start [2025-03-08 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633786', 'tblTempUsageDetail_20' ) end [2025-03-08 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633786', 'tblTempVendorCDR_20' ) start [2025-03-08 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633786', 'tblTempVendorCDR_20' ) end [2025-03-08 08:00:18] Production.INFO: ProcessCDR(1,14633786,1,1,2) [2025-03-08 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633786', 'tblTempUsageDetail_20' ) start [2025-03-08 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633786', 'tblTempUsageDetail_20' ) end [2025-03-08 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:00:23] Production.INFO: ==12101== Releasing lock... [2025-03-08 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:00:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-08 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:01:05 [end_date_ymd] => 2025-03-08 08:01:05 [RateCDR] => 1 ) [2025-03-08 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:01:05' and `end` < '2025-03-08 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:01:17] Production.INFO: count ==140 [2025-03-08 08:01:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:01:05 - End Time 2025-03-08 08:01:05 [2025-03-08 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633792', 'tblTempUsageDetail_20' ) start [2025-03-08 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633792', 'tblTempUsageDetail_20' ) end [2025-03-08 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633792', 'tblTempVendorCDR_20' ) start [2025-03-08 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633792', 'tblTempVendorCDR_20' ) end [2025-03-08 08:01:17] Production.INFO: ProcessCDR(1,14633792,1,1,2) [2025-03-08 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633792', 'tblTempUsageDetail_20' ) start [2025-03-08 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633792', 'tblTempUsageDetail_20' ) end [2025-03-08 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:01:21] Production.INFO: ==12190== Releasing lock... [2025-03-08 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:02:05 [end_date_ymd] => 2025-03-08 08:02:05 [RateCDR] => 1 ) [2025-03-08 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:02:05' and `end` < '2025-03-08 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:02:17] Production.INFO: count ==139 [2025-03-08 08:02:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:02:05 - End Time 2025-03-08 08:02:05 [2025-03-08 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633797', 'tblTempUsageDetail_20' ) start [2025-03-08 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633797', 'tblTempUsageDetail_20' ) end [2025-03-08 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633797', 'tblTempVendorCDR_20' ) start [2025-03-08 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633797', 'tblTempVendorCDR_20' ) end [2025-03-08 08:02:17] Production.INFO: ProcessCDR(1,14633797,1,1,2) [2025-03-08 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633797', 'tblTempUsageDetail_20' ) start [2025-03-08 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633797', 'tblTempUsageDetail_20' ) end [2025-03-08 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:02:21] Production.INFO: ==12263== Releasing lock... [2025-03-08 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:03:05 [end_date_ymd] => 2025-03-08 08:03:05 [RateCDR] => 1 ) [2025-03-08 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:03:05' and `end` < '2025-03-08 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:03:17] Production.INFO: count ==143 [2025-03-08 08:03:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:03:05 - End Time 2025-03-08 08:03:05 [2025-03-08 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633802', 'tblTempUsageDetail_20' ) start [2025-03-08 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633802', 'tblTempUsageDetail_20' ) end [2025-03-08 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633802', 'tblTempVendorCDR_20' ) start [2025-03-08 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633802', 'tblTempVendorCDR_20' ) end [2025-03-08 08:03:17] Production.INFO: ProcessCDR(1,14633802,1,1,2) [2025-03-08 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633802', 'tblTempUsageDetail_20' ) start [2025-03-08 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633802', 'tblTempUsageDetail_20' ) end [2025-03-08 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:03:21] Production.INFO: ==12333== Releasing lock... [2025-03-08 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:04:05 [end_date_ymd] => 2025-03-08 08:04:05 [RateCDR] => 1 ) [2025-03-08 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:04:05' and `end` < '2025-03-08 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:04:17] Production.INFO: count ==151 [2025-03-08 08:04:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:04:05 - End Time 2025-03-08 08:04:05 [2025-03-08 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633807', 'tblTempUsageDetail_20' ) start [2025-03-08 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633807', 'tblTempUsageDetail_20' ) end [2025-03-08 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633807', 'tblTempVendorCDR_20' ) start [2025-03-08 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633807', 'tblTempVendorCDR_20' ) end [2025-03-08 08:04:17] Production.INFO: ProcessCDR(1,14633807,1,1,2) [2025-03-08 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633807', 'tblTempUsageDetail_20' ) start [2025-03-08 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633807', 'tblTempUsageDetail_20' ) end [2025-03-08 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:04:21] Production.INFO: ==12405== Releasing lock... [2025-03-08 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-08 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:05:05 [end_date_ymd] => 2025-03-08 08:05:05 [RateCDR] => 1 ) [2025-03-08 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:05:05' and `end` < '2025-03-08 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:05:17] Production.INFO: count ==154 [2025-03-08 08:05:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:05:05 - End Time 2025-03-08 08:05:05 [2025-03-08 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633812', 'tblTempUsageDetail_20' ) start [2025-03-08 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633812', 'tblTempUsageDetail_20' ) end [2025-03-08 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633812', 'tblTempVendorCDR_20' ) start [2025-03-08 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633812', 'tblTempVendorCDR_20' ) end [2025-03-08 08:05:17] Production.INFO: ProcessCDR(1,14633812,1,1,2) [2025-03-08 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633812', 'tblTempUsageDetail_20' ) start [2025-03-08 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633812', 'tblTempUsageDetail_20' ) end [2025-03-08 08:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:05:20] Production.INFO: ==12476== Releasing lock... [2025-03-08 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:05:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:06:05 [end_date_ymd] => 2025-03-08 08:06:05 [RateCDR] => 1 ) [2025-03-08 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:06:05' and `end` < '2025-03-08 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:06:17] Production.INFO: count ==156 [2025-03-08 08:06:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:06:05 - End Time 2025-03-08 08:06:05 [2025-03-08 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633817', 'tblTempUsageDetail_20' ) start [2025-03-08 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633817', 'tblTempUsageDetail_20' ) end [2025-03-08 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633817', 'tblTempVendorCDR_20' ) start [2025-03-08 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633817', 'tblTempVendorCDR_20' ) end [2025-03-08 08:06:17] Production.INFO: ProcessCDR(1,14633817,1,1,2) [2025-03-08 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633817', 'tblTempUsageDetail_20' ) start [2025-03-08 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633817', 'tblTempUsageDetail_20' ) end [2025-03-08 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:06:21] Production.INFO: ==12553== Releasing lock... [2025-03-08 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-08 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:07:05 [end_date_ymd] => 2025-03-08 08:07:05 [RateCDR] => 1 ) [2025-03-08 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:07:05' and `end` < '2025-03-08 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:07:17] Production.INFO: count ==165 [2025-03-08 08:07:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:07:05 - End Time 2025-03-08 08:07:05 [2025-03-08 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633822', 'tblTempUsageDetail_20' ) start [2025-03-08 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633822', 'tblTempUsageDetail_20' ) end [2025-03-08 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633822', 'tblTempVendorCDR_20' ) start [2025-03-08 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633822', 'tblTempVendorCDR_20' ) end [2025-03-08 08:07:17] Production.INFO: ProcessCDR(1,14633822,1,1,2) [2025-03-08 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633822', 'tblTempUsageDetail_20' ) start [2025-03-08 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633822', 'tblTempUsageDetail_20' ) end [2025-03-08 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:07:21] Production.INFO: ==12624== Releasing lock... [2025-03-08 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-08 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:08:05 [end_date_ymd] => 2025-03-08 08:08:05 [RateCDR] => 1 ) [2025-03-08 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:08:05' and `end` < '2025-03-08 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:08:17] Production.INFO: count ==162 [2025-03-08 08:08:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:08:05 - End Time 2025-03-08 08:08:05 [2025-03-08 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633827', 'tblTempUsageDetail_20' ) start [2025-03-08 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633827', 'tblTempUsageDetail_20' ) end [2025-03-08 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633827', 'tblTempVendorCDR_20' ) start [2025-03-08 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633827', 'tblTempVendorCDR_20' ) end [2025-03-08 08:08:17] Production.INFO: ProcessCDR(1,14633827,1,1,2) [2025-03-08 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633827', 'tblTempUsageDetail_20' ) start [2025-03-08 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633827', 'tblTempUsageDetail_20' ) end [2025-03-08 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:08:21] Production.INFO: ==12699== Releasing lock... [2025-03-08 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:08:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:09:06 [end_date_ymd] => 2025-03-08 08:09:06 [RateCDR] => 1 ) [2025-03-08 08:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:09:06' and `end` < '2025-03-08 08:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:09:17] Production.INFO: count ==162 [2025-03-08 08:09:18] Production.ERROR: pbx CDR StartTime 2025-03-08 05:09:06 - End Time 2025-03-08 08:09:06 [2025-03-08 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633832', 'tblTempUsageDetail_20' ) start [2025-03-08 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633832', 'tblTempUsageDetail_20' ) end [2025-03-08 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633832', 'tblTempVendorCDR_20' ) start [2025-03-08 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633832', 'tblTempVendorCDR_20' ) end [2025-03-08 08:09:18] Production.INFO: ProcessCDR(1,14633832,1,1,2) [2025-03-08 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633832', 'tblTempUsageDetail_20' ) start [2025-03-08 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633832', 'tblTempUsageDetail_20' ) end [2025-03-08 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:09:21] Production.INFO: ==12815== Releasing lock... [2025-03-08 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:10:05 [end_date_ymd] => 2025-03-08 08:10:05 [RateCDR] => 1 ) [2025-03-08 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:10:05' and `end` < '2025-03-08 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:10:17] Production.INFO: count ==174 [2025-03-08 08:10:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:10:05 - End Time 2025-03-08 08:10:05 [2025-03-08 08:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633838', 'tblTempUsageDetail_20' ) start [2025-03-08 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633838', 'tblTempUsageDetail_20' ) end [2025-03-08 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633838', 'tblTempVendorCDR_20' ) start [2025-03-08 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633838', 'tblTempVendorCDR_20' ) end [2025-03-08 08:10:17] Production.INFO: ProcessCDR(1,14633838,1,1,2) [2025-03-08 08:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633838', 'tblTempUsageDetail_20' ) start [2025-03-08 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633838', 'tblTempUsageDetail_20' ) end [2025-03-08 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:10:21] Production.INFO: ==12925== Releasing lock... [2025-03-08 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:10:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:11:05 [end_date_ymd] => 2025-03-08 08:11:05 [RateCDR] => 1 ) [2025-03-08 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:11:05' and `end` < '2025-03-08 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:11:17] Production.INFO: count ==178 [2025-03-08 08:11:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:11:05 - End Time 2025-03-08 08:11:05 [2025-03-08 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633843', 'tblTempUsageDetail_20' ) start [2025-03-08 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633843', 'tblTempUsageDetail_20' ) end [2025-03-08 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633843', 'tblTempVendorCDR_20' ) start [2025-03-08 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633843', 'tblTempVendorCDR_20' ) end [2025-03-08 08:11:17] Production.INFO: ProcessCDR(1,14633843,1,1,2) [2025-03-08 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633843', 'tblTempUsageDetail_20' ) start [2025-03-08 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633843', 'tblTempUsageDetail_20' ) end [2025-03-08 08:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:11:20] Production.INFO: ==13010== Releasing lock... [2025-03-08 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:11:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-08 08:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:12:04 [end_date_ymd] => 2025-03-08 08:12:04 [RateCDR] => 1 ) [2025-03-08 08:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:12:04' and `end` < '2025-03-08 08:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:12:17] Production.INFO: count ==175 [2025-03-08 08:12:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:12:04 - End Time 2025-03-08 08:12:04 [2025-03-08 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633848', 'tblTempUsageDetail_20' ) start [2025-03-08 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633848', 'tblTempUsageDetail_20' ) end [2025-03-08 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633848', 'tblTempVendorCDR_20' ) start [2025-03-08 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633848', 'tblTempVendorCDR_20' ) end [2025-03-08 08:12:17] Production.INFO: ProcessCDR(1,14633848,1,1,2) [2025-03-08 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633848', 'tblTempUsageDetail_20' ) start [2025-03-08 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633848', 'tblTempUsageDetail_20' ) end [2025-03-08 08:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:12:20] Production.INFO: ==13082== Releasing lock... [2025-03-08 08:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:12:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:13:05 [end_date_ymd] => 2025-03-08 08:13:05 [RateCDR] => 1 ) [2025-03-08 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:13:05' and `end` < '2025-03-08 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:13:17] Production.INFO: count ==180 [2025-03-08 08:13:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:13:05 - End Time 2025-03-08 08:13:05 [2025-03-08 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633853', 'tblTempUsageDetail_20' ) start [2025-03-08 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633853', 'tblTempUsageDetail_20' ) end [2025-03-08 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633853', 'tblTempVendorCDR_20' ) start [2025-03-08 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633853', 'tblTempVendorCDR_20' ) end [2025-03-08 08:13:17] Production.INFO: ProcessCDR(1,14633853,1,1,2) [2025-03-08 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633853', 'tblTempUsageDetail_20' ) start [2025-03-08 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633853', 'tblTempUsageDetail_20' ) end [2025-03-08 08:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:13:20] Production.INFO: ==13200== Releasing lock... [2025-03-08 08:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:13:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-08 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:14:06 [end_date_ymd] => 2025-03-08 08:14:06 [RateCDR] => 1 ) [2025-03-08 08:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:14:06' and `end` < '2025-03-08 08:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:14:18] Production.INFO: count ==180 [2025-03-08 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-08 05:14:06 - End Time 2025-03-08 08:14:06 [2025-03-08 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633858', 'tblTempUsageDetail_20' ) start [2025-03-08 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633858', 'tblTempUsageDetail_20' ) end [2025-03-08 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633858', 'tblTempVendorCDR_20' ) start [2025-03-08 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633858', 'tblTempVendorCDR_20' ) end [2025-03-08 08:14:18] Production.INFO: ProcessCDR(1,14633858,1,1,2) [2025-03-08 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633858', 'tblTempUsageDetail_20' ) start [2025-03-08 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633858', 'tblTempUsageDetail_20' ) end [2025-03-08 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:14:21] Production.INFO: ==13271== Releasing lock... [2025-03-08 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-08 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:15:05 [end_date_ymd] => 2025-03-08 08:15:05 [RateCDR] => 1 ) [2025-03-08 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:15:05' and `end` < '2025-03-08 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:15:17] Production.INFO: count ==177 [2025-03-08 08:15:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:15:05 - End Time 2025-03-08 08:15:05 [2025-03-08 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633863', 'tblTempUsageDetail_20' ) start [2025-03-08 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633863', 'tblTempUsageDetail_20' ) end [2025-03-08 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633863', 'tblTempVendorCDR_20' ) start [2025-03-08 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633863', 'tblTempVendorCDR_20' ) end [2025-03-08 08:15:17] Production.INFO: ProcessCDR(1,14633863,1,1,2) [2025-03-08 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633863', 'tblTempUsageDetail_20' ) start [2025-03-08 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633863', 'tblTempUsageDetail_20' ) end [2025-03-08 08:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:15:20] Production.INFO: ==13347== Releasing lock... [2025-03-08 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:15:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:16:06 [end_date_ymd] => 2025-03-08 08:16:06 [RateCDR] => 1 ) [2025-03-08 08:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:16:06' and `end` < '2025-03-08 08:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:16:18] Production.INFO: count ==177 [2025-03-08 08:16:18] Production.ERROR: pbx CDR StartTime 2025-03-08 05:16:06 - End Time 2025-03-08 08:16:06 [2025-03-08 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633868', 'tblTempUsageDetail_20' ) start [2025-03-08 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633868', 'tblTempUsageDetail_20' ) end [2025-03-08 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633868', 'tblTempVendorCDR_20' ) start [2025-03-08 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633868', 'tblTempVendorCDR_20' ) end [2025-03-08 08:16:18] Production.INFO: ProcessCDR(1,14633868,1,1,2) [2025-03-08 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633868', 'tblTempUsageDetail_20' ) start [2025-03-08 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633868', 'tblTempUsageDetail_20' ) end [2025-03-08 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:16:21] Production.INFO: ==13420== Releasing lock... [2025-03-08 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:16:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-08 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:17:05 [end_date_ymd] => 2025-03-08 08:17:05 [RateCDR] => 1 ) [2025-03-08 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:17:05' and `end` < '2025-03-08 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:17:17] Production.INFO: count ==177 [2025-03-08 08:17:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:17:05 - End Time 2025-03-08 08:17:05 [2025-03-08 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633873', 'tblTempUsageDetail_20' ) start [2025-03-08 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633873', 'tblTempUsageDetail_20' ) end [2025-03-08 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633873', 'tblTempVendorCDR_20' ) start [2025-03-08 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633873', 'tblTempVendorCDR_20' ) end [2025-03-08 08:17:17] Production.INFO: ProcessCDR(1,14633873,1,1,2) [2025-03-08 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633873', 'tblTempUsageDetail_20' ) start [2025-03-08 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633873', 'tblTempUsageDetail_20' ) end [2025-03-08 08:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:17:20] Production.INFO: ==13496== Releasing lock... [2025-03-08 08:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:17:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:18:05 [end_date_ymd] => 2025-03-08 08:18:05 [RateCDR] => 1 ) [2025-03-08 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:18:05' and `end` < '2025-03-08 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:18:17] Production.INFO: count ==177 [2025-03-08 08:18:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:18:05 - End Time 2025-03-08 08:18:05 [2025-03-08 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633878', 'tblTempUsageDetail_20' ) start [2025-03-08 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633878', 'tblTempUsageDetail_20' ) end [2025-03-08 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633878', 'tblTempVendorCDR_20' ) start [2025-03-08 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633878', 'tblTempVendorCDR_20' ) end [2025-03-08 08:18:17] Production.INFO: ProcessCDR(1,14633878,1,1,2) [2025-03-08 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633878', 'tblTempUsageDetail_20' ) start [2025-03-08 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633878', 'tblTempUsageDetail_20' ) end [2025-03-08 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:18:21] Production.INFO: ==13577== Releasing lock... [2025-03-08 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:18:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:19:05 [end_date_ymd] => 2025-03-08 08:19:05 [RateCDR] => 1 ) [2025-03-08 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:19:05' and `end` < '2025-03-08 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:19:17] Production.INFO: count ==177 [2025-03-08 08:19:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:19:05 - End Time 2025-03-08 08:19:05 [2025-03-08 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633883', 'tblTempUsageDetail_20' ) start [2025-03-08 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633883', 'tblTempUsageDetail_20' ) end [2025-03-08 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633883', 'tblTempVendorCDR_20' ) start [2025-03-08 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633883', 'tblTempVendorCDR_20' ) end [2025-03-08 08:19:17] Production.INFO: ProcessCDR(1,14633883,1,1,2) [2025-03-08 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633883', 'tblTempUsageDetail_20' ) start [2025-03-08 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633883', 'tblTempUsageDetail_20' ) end [2025-03-08 08:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:19:20] Production.INFO: ==13654== Releasing lock... [2025-03-08 08:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:19:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:20:07 [end_date_ymd] => 2025-03-08 08:20:07 [RateCDR] => 1 ) [2025-03-08 08:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:20:07' and `end` < '2025-03-08 08:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:20:19] Production.INFO: count ==169 [2025-03-08 08:20:19] Production.ERROR: pbx CDR StartTime 2025-03-08 05:20:07 - End Time 2025-03-08 08:20:07 [2025-03-08 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633889', 'tblTempUsageDetail_20' ) start [2025-03-08 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633889', 'tblTempUsageDetail_20' ) end [2025-03-08 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633889', 'tblTempVendorCDR_20' ) start [2025-03-08 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633889', 'tblTempVendorCDR_20' ) end [2025-03-08 08:20:19] Production.INFO: ProcessCDR(1,14633889,1,1,2) [2025-03-08 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633889', 'tblTempUsageDetail_20' ) start [2025-03-08 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633889', 'tblTempUsageDetail_20' ) end [2025-03-08 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:20:22] Production.INFO: ==13728== Releasing lock... [2025-03-08 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:20:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:21:05 [end_date_ymd] => 2025-03-08 08:21:05 [RateCDR] => 1 ) [2025-03-08 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:21:05' and `end` < '2025-03-08 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:21:17] Production.INFO: count ==166 [2025-03-08 08:21:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:21:05 - End Time 2025-03-08 08:21:05 [2025-03-08 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633894', 'tblTempUsageDetail_20' ) start [2025-03-08 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633894', 'tblTempUsageDetail_20' ) end [2025-03-08 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633894', 'tblTempVendorCDR_20' ) start [2025-03-08 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633894', 'tblTempVendorCDR_20' ) end [2025-03-08 08:21:17] Production.INFO: ProcessCDR(1,14633894,1,1,2) [2025-03-08 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633894', 'tblTempUsageDetail_20' ) start [2025-03-08 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633894', 'tblTempUsageDetail_20' ) end [2025-03-08 08:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:21:20] Production.INFO: ==13800== Releasing lock... [2025-03-08 08:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:21:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-08 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:22:05 [end_date_ymd] => 2025-03-08 08:22:05 [RateCDR] => 1 ) [2025-03-08 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:22:05' and `end` < '2025-03-08 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:22:18] Production.INFO: count ==163 [2025-03-08 08:22:18] Production.ERROR: pbx CDR StartTime 2025-03-08 05:22:05 - End Time 2025-03-08 08:22:05 [2025-03-08 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633899', 'tblTempUsageDetail_20' ) start [2025-03-08 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633899', 'tblTempUsageDetail_20' ) end [2025-03-08 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633899', 'tblTempVendorCDR_20' ) start [2025-03-08 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633899', 'tblTempVendorCDR_20' ) end [2025-03-08 08:22:18] Production.INFO: ProcessCDR(1,14633899,1,1,2) [2025-03-08 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633899', 'tblTempUsageDetail_20' ) start [2025-03-08 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633899', 'tblTempUsageDetail_20' ) end [2025-03-08 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:22:21] Production.INFO: ==13869== Releasing lock... [2025-03-08 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:23:05 [end_date_ymd] => 2025-03-08 08:23:05 [RateCDR] => 1 ) [2025-03-08 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:23:05' and `end` < '2025-03-08 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:23:17] Production.INFO: count ==165 [2025-03-08 08:23:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:23:05 - End Time 2025-03-08 08:23:05 [2025-03-08 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633904', 'tblTempUsageDetail_20' ) start [2025-03-08 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633904', 'tblTempUsageDetail_20' ) end [2025-03-08 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633904', 'tblTempVendorCDR_20' ) start [2025-03-08 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633904', 'tblTempVendorCDR_20' ) end [2025-03-08 08:23:17] Production.INFO: ProcessCDR(1,14633904,1,1,2) [2025-03-08 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633904', 'tblTempUsageDetail_20' ) start [2025-03-08 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633904', 'tblTempUsageDetail_20' ) end [2025-03-08 08:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:23:20] Production.INFO: ==13939== Releasing lock... [2025-03-08 08:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:23:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-08 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:24:06 [end_date_ymd] => 2025-03-08 08:24:06 [RateCDR] => 1 ) [2025-03-08 08:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:24:06' and `end` < '2025-03-08 08:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:24:18] Production.INFO: count ==165 [2025-03-08 08:24:18] Production.ERROR: pbx CDR StartTime 2025-03-08 05:24:06 - End Time 2025-03-08 08:24:06 [2025-03-08 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633909', 'tblTempUsageDetail_20' ) start [2025-03-08 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633909', 'tblTempUsageDetail_20' ) end [2025-03-08 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633909', 'tblTempVendorCDR_20' ) start [2025-03-08 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633909', 'tblTempVendorCDR_20' ) end [2025-03-08 08:24:18] Production.INFO: ProcessCDR(1,14633909,1,1,2) [2025-03-08 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633909', 'tblTempUsageDetail_20' ) start [2025-03-08 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633909', 'tblTempUsageDetail_20' ) end [2025-03-08 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:24:21] Production.INFO: ==14009== Releasing lock... [2025-03-08 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-08 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:25:05 [end_date_ymd] => 2025-03-08 08:25:05 [RateCDR] => 1 ) [2025-03-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-03-08 05:25:05' and `end` < '2025-03-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-03-08 08:25:17] Production.INFO: count ==168 [2025-03-08 08:25:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:25:05 - End Time 2025-03-08 08:25:05 [2025-03-08 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633914', 'tblTempUsageDetail_20' ) start [2025-03-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633914', 'tblTempUsageDetail_20' ) end [2025-03-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633914', 'tblTempVendorCDR_20' ) start [2025-03-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633914', 'tblTempVendorCDR_20' ) end [2025-03-08 08:25:17] Production.INFO: ProcessCDR(1,14633914,1,1,2) [2025-03-08 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633914', 'tblTempUsageDetail_20' ) start [2025-03-08 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633914', 'tblTempUsageDetail_20' ) end [2025-03-08 08:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:25:20] Production.INFO: ==14082== Releasing lock... [2025-03-08 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:25:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:26:06 [end_date_ymd] => 2025-03-08 08:26:06 [RateCDR] => 1 ) [2025-03-08 08:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:26:06' and `end` < '2025-03-08 08:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:26:18] Production.INFO: count ==168 [2025-03-08 08:26:18] Production.ERROR: pbx CDR StartTime 2025-03-08 05:26:06 - End Time 2025-03-08 08:26:06 [2025-03-08 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633919', 'tblTempUsageDetail_20' ) start [2025-03-08 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633919', 'tblTempUsageDetail_20' ) end [2025-03-08 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633919', 'tblTempVendorCDR_20' ) start [2025-03-08 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633919', 'tblTempVendorCDR_20' ) end [2025-03-08 08:26:18] Production.INFO: ProcessCDR(1,14633919,1,1,2) [2025-03-08 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633919', 'tblTempUsageDetail_20' ) start [2025-03-08 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633919', 'tblTempUsageDetail_20' ) end [2025-03-08 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:26:21] Production.INFO: ==14155== Releasing lock... [2025-03-08 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:27:05 [end_date_ymd] => 2025-03-08 08:27:05 [RateCDR] => 1 ) [2025-03-08 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:27:05' and `end` < '2025-03-08 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:27:17] Production.INFO: count ==168 [2025-03-08 08:27:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:27:05 - End Time 2025-03-08 08:27:05 [2025-03-08 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633924', 'tblTempUsageDetail_20' ) start [2025-03-08 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633924', 'tblTempUsageDetail_20' ) end [2025-03-08 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633924', 'tblTempVendorCDR_20' ) start [2025-03-08 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633924', 'tblTempVendorCDR_20' ) end [2025-03-08 08:27:17] Production.INFO: ProcessCDR(1,14633924,1,1,2) [2025-03-08 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633924', 'tblTempUsageDetail_20' ) start [2025-03-08 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633924', 'tblTempUsageDetail_20' ) end [2025-03-08 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:27:21] Production.INFO: ==14225== Releasing lock... [2025-03-08 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:28:05 [end_date_ymd] => 2025-03-08 08:28:05 [RateCDR] => 1 ) [2025-03-08 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:28:05' and `end` < '2025-03-08 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:28:17] Production.INFO: count ==168 [2025-03-08 08:28:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:28:05 - End Time 2025-03-08 08:28:05 [2025-03-08 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633929', 'tblTempUsageDetail_20' ) start [2025-03-08 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633929', 'tblTempUsageDetail_20' ) end [2025-03-08 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633929', 'tblTempVendorCDR_20' ) start [2025-03-08 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633929', 'tblTempVendorCDR_20' ) end [2025-03-08 08:28:17] Production.INFO: ProcessCDR(1,14633929,1,1,2) [2025-03-08 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633929', 'tblTempUsageDetail_20' ) start [2025-03-08 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633929', 'tblTempUsageDetail_20' ) end [2025-03-08 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:28:21] Production.INFO: ==14338== Releasing lock... [2025-03-08 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:28:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:29:05 [end_date_ymd] => 2025-03-08 08:29:05 [RateCDR] => 1 ) [2025-03-08 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:29:05' and `end` < '2025-03-08 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:29:17] Production.INFO: count ==168 [2025-03-08 08:29:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:29:05 - End Time 2025-03-08 08:29:05 [2025-03-08 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633934', 'tblTempUsageDetail_20' ) start [2025-03-08 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633934', 'tblTempUsageDetail_20' ) end [2025-03-08 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633934', 'tblTempVendorCDR_20' ) start [2025-03-08 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633934', 'tblTempVendorCDR_20' ) end [2025-03-08 08:29:17] Production.INFO: ProcessCDR(1,14633934,1,1,2) [2025-03-08 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633934', 'tblTempUsageDetail_20' ) start [2025-03-08 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633934', 'tblTempUsageDetail_20' ) end [2025-03-08 08:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:29:20] Production.INFO: ==14408== Releasing lock... [2025-03-08 08:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:29:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:30:06 [end_date_ymd] => 2025-03-08 08:30:06 [RateCDR] => 1 ) [2025-03-08 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:30:06' and `end` < '2025-03-08 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:30:18] Production.INFO: count ==170 [2025-03-08 08:30:18] Production.ERROR: pbx CDR StartTime 2025-03-08 05:30:06 - End Time 2025-03-08 08:30:06 [2025-03-08 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633939', 'tblTempUsageDetail_20' ) start [2025-03-08 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633939', 'tblTempUsageDetail_20' ) end [2025-03-08 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633939', 'tblTempVendorCDR_20' ) start [2025-03-08 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633939', 'tblTempVendorCDR_20' ) end [2025-03-08 08:30:18] Production.INFO: ProcessCDR(1,14633939,1,1,2) [2025-03-08 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633939', 'tblTempUsageDetail_20' ) start [2025-03-08 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633939', 'tblTempUsageDetail_20' ) end [2025-03-08 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:30:22] Production.INFO: ==14483== Releasing lock... [2025-03-08 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:30:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-08 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:31:05 [end_date_ymd] => 2025-03-08 08:31:05 [RateCDR] => 1 ) [2025-03-08 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:31:05' and `end` < '2025-03-08 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:31:17] Production.INFO: count ==170 [2025-03-08 08:31:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:31:05 - End Time 2025-03-08 08:31:05 [2025-03-08 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633945', 'tblTempUsageDetail_20' ) start [2025-03-08 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633945', 'tblTempUsageDetail_20' ) end [2025-03-08 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633945', 'tblTempVendorCDR_20' ) start [2025-03-08 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633945', 'tblTempVendorCDR_20' ) end [2025-03-08 08:31:17] Production.INFO: ProcessCDR(1,14633945,1,1,2) [2025-03-08 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633945', 'tblTempUsageDetail_20' ) start [2025-03-08 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633945', 'tblTempUsageDetail_20' ) end [2025-03-08 08:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:31:20] Production.INFO: ==14556== Releasing lock... [2025-03-08 08:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:31:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-08 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:32:06 [end_date_ymd] => 2025-03-08 08:32:06 [RateCDR] => 1 ) [2025-03-08 08:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:32:06' and `end` < '2025-03-08 08:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:32:18] Production.INFO: count ==170 [2025-03-08 08:32:18] Production.ERROR: pbx CDR StartTime 2025-03-08 05:32:06 - End Time 2025-03-08 08:32:06 [2025-03-08 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633950', 'tblTempUsageDetail_20' ) start [2025-03-08 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633950', 'tblTempUsageDetail_20' ) end [2025-03-08 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633950', 'tblTempVendorCDR_20' ) start [2025-03-08 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633950', 'tblTempVendorCDR_20' ) end [2025-03-08 08:32:18] Production.INFO: ProcessCDR(1,14633950,1,1,2) [2025-03-08 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633950', 'tblTempUsageDetail_20' ) start [2025-03-08 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633950', 'tblTempUsageDetail_20' ) end [2025-03-08 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:32:22] Production.INFO: ==14631== Releasing lock... [2025-03-08 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:32:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-08 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:33:05 [end_date_ymd] => 2025-03-08 08:33:05 [RateCDR] => 1 ) [2025-03-08 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:33:05' and `end` < '2025-03-08 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:33:17] Production.INFO: count ==170 [2025-03-08 08:33:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:33:05 - End Time 2025-03-08 08:33:05 [2025-03-08 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633955', 'tblTempUsageDetail_20' ) start [2025-03-08 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633955', 'tblTempUsageDetail_20' ) end [2025-03-08 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633955', 'tblTempVendorCDR_20' ) start [2025-03-08 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633955', 'tblTempVendorCDR_20' ) end [2025-03-08 08:33:17] Production.INFO: ProcessCDR(1,14633955,1,1,2) [2025-03-08 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633955', 'tblTempUsageDetail_20' ) start [2025-03-08 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633955', 'tblTempUsageDetail_20' ) end [2025-03-08 08:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:33:20] Production.INFO: ==14707== Releasing lock... [2025-03-08 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:33:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-08 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:34:06 [end_date_ymd] => 2025-03-08 08:34:06 [RateCDR] => 1 ) [2025-03-08 08:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:34:06' and `end` < '2025-03-08 08:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:34:18] Production.INFO: count ==170 [2025-03-08 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-08 05:34:06 - End Time 2025-03-08 08:34:06 [2025-03-08 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633960', 'tblTempUsageDetail_20' ) start [2025-03-08 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633960', 'tblTempUsageDetail_20' ) end [2025-03-08 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633960', 'tblTempVendorCDR_20' ) start [2025-03-08 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633960', 'tblTempVendorCDR_20' ) end [2025-03-08 08:34:18] Production.INFO: ProcessCDR(1,14633960,1,1,2) [2025-03-08 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633960', 'tblTempUsageDetail_20' ) start [2025-03-08 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633960', 'tblTempUsageDetail_20' ) end [2025-03-08 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:34:21] Production.INFO: ==14778== Releasing lock... [2025-03-08 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:34:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-08 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:35:05 [end_date_ymd] => 2025-03-08 08:35:05 [RateCDR] => 1 ) [2025-03-08 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:35:05' and `end` < '2025-03-08 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:35:17] Production.INFO: count ==173 [2025-03-08 08:35:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:35:05 - End Time 2025-03-08 08:35:05 [2025-03-08 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633965', 'tblTempUsageDetail_20' ) start [2025-03-08 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633965', 'tblTempUsageDetail_20' ) end [2025-03-08 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633965', 'tblTempVendorCDR_20' ) start [2025-03-08 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633965', 'tblTempVendorCDR_20' ) end [2025-03-08 08:35:17] Production.INFO: ProcessCDR(1,14633965,1,1,2) [2025-03-08 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633965', 'tblTempUsageDetail_20' ) start [2025-03-08 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633965', 'tblTempUsageDetail_20' ) end [2025-03-08 08:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:35:20] Production.INFO: ==14847== Releasing lock... [2025-03-08 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:35:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:36:05 [end_date_ymd] => 2025-03-08 08:36:05 [RateCDR] => 1 ) [2025-03-08 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:36:05' and `end` < '2025-03-08 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:36:17] Production.INFO: count ==173 [2025-03-08 08:36:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:36:05 - End Time 2025-03-08 08:36:05 [2025-03-08 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633970', 'tblTempUsageDetail_20' ) start [2025-03-08 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633970', 'tblTempUsageDetail_20' ) end [2025-03-08 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633970', 'tblTempVendorCDR_20' ) start [2025-03-08 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633970', 'tblTempVendorCDR_20' ) end [2025-03-08 08:36:17] Production.INFO: ProcessCDR(1,14633970,1,1,2) [2025-03-08 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633970', 'tblTempUsageDetail_20' ) start [2025-03-08 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633970', 'tblTempUsageDetail_20' ) end [2025-03-08 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:36:21] Production.INFO: ==14919== Releasing lock... [2025-03-08 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:37:05 [end_date_ymd] => 2025-03-08 08:37:05 [RateCDR] => 1 ) [2025-03-08 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:37:05' and `end` < '2025-03-08 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:37:17] Production.INFO: count ==173 [2025-03-08 08:37:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:37:05 - End Time 2025-03-08 08:37:05 [2025-03-08 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633975', 'tblTempUsageDetail_20' ) start [2025-03-08 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633975', 'tblTempUsageDetail_20' ) end [2025-03-08 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633975', 'tblTempVendorCDR_20' ) start [2025-03-08 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633975', 'tblTempVendorCDR_20' ) end [2025-03-08 08:37:17] Production.INFO: ProcessCDR(1,14633975,1,1,2) [2025-03-08 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633975', 'tblTempUsageDetail_20' ) start [2025-03-08 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633975', 'tblTempUsageDetail_20' ) end [2025-03-08 08:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:37:20] Production.INFO: ==14990== Releasing lock... [2025-03-08 08:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:37:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-08 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:38:05 [end_date_ymd] => 2025-03-08 08:38:05 [RateCDR] => 1 ) [2025-03-08 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:38:05' and `end` < '2025-03-08 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:38:17] Production.INFO: count ==174 [2025-03-08 08:38:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:38:05 - End Time 2025-03-08 08:38:05 [2025-03-08 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633980', 'tblTempUsageDetail_20' ) start [2025-03-08 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633980', 'tblTempUsageDetail_20' ) end [2025-03-08 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633980', 'tblTempVendorCDR_20' ) start [2025-03-08 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633980', 'tblTempVendorCDR_20' ) end [2025-03-08 08:38:17] Production.INFO: ProcessCDR(1,14633980,1,1,2) [2025-03-08 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633980', 'tblTempUsageDetail_20' ) start [2025-03-08 08:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633980', 'tblTempUsageDetail_20' ) end [2025-03-08 08:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:38:20] Production.INFO: ==15065== Releasing lock... [2025-03-08 08:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:38:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-08 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:39:05 [end_date_ymd] => 2025-03-08 08:39:05 [RateCDR] => 1 ) [2025-03-08 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:39:05' and `end` < '2025-03-08 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:39:17] Production.INFO: count ==178 [2025-03-08 08:39:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:39:05 - End Time 2025-03-08 08:39:05 [2025-03-08 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633985', 'tblTempUsageDetail_20' ) start [2025-03-08 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633985', 'tblTempUsageDetail_20' ) end [2025-03-08 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633985', 'tblTempVendorCDR_20' ) start [2025-03-08 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633985', 'tblTempVendorCDR_20' ) end [2025-03-08 08:39:17] Production.INFO: ProcessCDR(1,14633985,1,1,2) [2025-03-08 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633985', 'tblTempUsageDetail_20' ) start [2025-03-08 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633985', 'tblTempUsageDetail_20' ) end [2025-03-08 08:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:39:20] Production.INFO: ==15136== Releasing lock... [2025-03-08 08:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:39:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-08 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:40:06 [end_date_ymd] => 2025-03-08 08:40:06 [RateCDR] => 1 ) [2025-03-08 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:40:06' and `end` < '2025-03-08 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:40:18] Production.INFO: count ==187 [2025-03-08 08:40:18] Production.ERROR: pbx CDR StartTime 2025-03-08 05:40:06 - End Time 2025-03-08 08:40:06 [2025-03-08 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633990', 'tblTempUsageDetail_20' ) start [2025-03-08 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633990', 'tblTempUsageDetail_20' ) end [2025-03-08 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633990', 'tblTempVendorCDR_20' ) start [2025-03-08 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633990', 'tblTempVendorCDR_20' ) end [2025-03-08 08:40:18] Production.INFO: ProcessCDR(1,14633990,1,1,2) [2025-03-08 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633990', 'tblTempUsageDetail_20' ) start [2025-03-08 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633990', 'tblTempUsageDetail_20' ) end [2025-03-08 08:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:40:21] Production.INFO: ==15209== Releasing lock... [2025-03-08 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:40:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-08 08:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:41:04 [end_date_ymd] => 2025-03-08 08:41:04 [RateCDR] => 1 ) [2025-03-08 08:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:41:04' and `end` < '2025-03-08 08:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:41:16] Production.INFO: count ==187 [2025-03-08 08:41:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:41:04 - End Time 2025-03-08 08:41:04 [2025-03-08 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633996', 'tblTempUsageDetail_20' ) start [2025-03-08 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14633996', 'tblTempUsageDetail_20' ) end [2025-03-08 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633996', 'tblTempVendorCDR_20' ) start [2025-03-08 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14633996', 'tblTempVendorCDR_20' ) end [2025-03-08 08:41:17] Production.INFO: ProcessCDR(1,14633996,1,1,2) [2025-03-08 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14633996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14633996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14633996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14633996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633996', 'tblTempUsageDetail_20' ) start [2025-03-08 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14633996', 'tblTempUsageDetail_20' ) end [2025-03-08 08:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:41:20] Production.INFO: ==15283== Releasing lock... [2025-03-08 08:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:41:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-08 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:42:05 [end_date_ymd] => 2025-03-08 08:42:05 [RateCDR] => 1 ) [2025-03-08 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:42:05' and `end` < '2025-03-08 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:42:17] Production.INFO: count ==188 [2025-03-08 08:42:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:42:05 - End Time 2025-03-08 08:42:05 [2025-03-08 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634001', 'tblTempUsageDetail_20' ) start [2025-03-08 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634001', 'tblTempUsageDetail_20' ) end [2025-03-08 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634001', 'tblTempVendorCDR_20' ) start [2025-03-08 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634001', 'tblTempVendorCDR_20' ) end [2025-03-08 08:42:17] Production.INFO: ProcessCDR(1,14634001,1,1,2) [2025-03-08 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634001', 'tblTempUsageDetail_20' ) start [2025-03-08 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634001', 'tblTempUsageDetail_20' ) end [2025-03-08 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:42:21] Production.INFO: ==15355== Releasing lock... [2025-03-08 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:42:21] Production.INFO: 30 MB #Memory Used# [2025-03-08 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:43:05 [end_date_ymd] => 2025-03-08 08:43:05 [RateCDR] => 1 ) [2025-03-08 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:43:05' and `end` < '2025-03-08 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:43:18] Production.INFO: count ==188 [2025-03-08 08:43:18] Production.ERROR: pbx CDR StartTime 2025-03-08 05:43:05 - End Time 2025-03-08 08:43:05 [2025-03-08 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634006', 'tblTempUsageDetail_20' ) start [2025-03-08 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634006', 'tblTempUsageDetail_20' ) end [2025-03-08 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634006', 'tblTempVendorCDR_20' ) start [2025-03-08 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634006', 'tblTempVendorCDR_20' ) end [2025-03-08 08:43:18] Production.INFO: ProcessCDR(1,14634006,1,1,2) [2025-03-08 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634006', 'tblTempUsageDetail_20' ) start [2025-03-08 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634006', 'tblTempUsageDetail_20' ) end [2025-03-08 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:43:21] Production.INFO: ==15429== Releasing lock... [2025-03-08 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:43:21] Production.INFO: 30 MB #Memory Used# [2025-03-08 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:44:05 [end_date_ymd] => 2025-03-08 08:44:05 [RateCDR] => 1 ) [2025-03-08 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:44:05' and `end` < '2025-03-08 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:44:17] Production.INFO: count ==191 [2025-03-08 08:44:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:44:05 - End Time 2025-03-08 08:44:05 [2025-03-08 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634011', 'tblTempUsageDetail_20' ) start [2025-03-08 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634011', 'tblTempUsageDetail_20' ) end [2025-03-08 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634011', 'tblTempVendorCDR_20' ) start [2025-03-08 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634011', 'tblTempVendorCDR_20' ) end [2025-03-08 08:44:17] Production.INFO: ProcessCDR(1,14634011,1,1,2) [2025-03-08 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634011', 'tblTempUsageDetail_20' ) start [2025-03-08 08:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634011', 'tblTempUsageDetail_20' ) end [2025-03-08 08:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:44:20] Production.INFO: ==15538== Releasing lock... [2025-03-08 08:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:44:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-08 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:45:05 [end_date_ymd] => 2025-03-08 08:45:05 [RateCDR] => 1 ) [2025-03-08 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:45:05' and `end` < '2025-03-08 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:45:17] Production.INFO: count ==191 [2025-03-08 08:45:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:45:05 - End Time 2025-03-08 08:45:05 [2025-03-08 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634016', 'tblTempUsageDetail_20' ) start [2025-03-08 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634016', 'tblTempUsageDetail_20' ) end [2025-03-08 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634016', 'tblTempVendorCDR_20' ) start [2025-03-08 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634016', 'tblTempVendorCDR_20' ) end [2025-03-08 08:45:17] Production.INFO: ProcessCDR(1,14634016,1,1,2) [2025-03-08 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634016', 'tblTempUsageDetail_20' ) start [2025-03-08 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634016', 'tblTempUsageDetail_20' ) end [2025-03-08 08:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:45:20] Production.INFO: ==15609== Releasing lock... [2025-03-08 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:45:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-08 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:46:05 [end_date_ymd] => 2025-03-08 08:46:05 [RateCDR] => 1 ) [2025-03-08 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:46:05' and `end` < '2025-03-08 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:46:17] Production.INFO: count ==192 [2025-03-08 08:46:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:46:05 - End Time 2025-03-08 08:46:05 [2025-03-08 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634021', 'tblTempUsageDetail_20' ) start [2025-03-08 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634021', 'tblTempUsageDetail_20' ) end [2025-03-08 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634021', 'tblTempVendorCDR_20' ) start [2025-03-08 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634021', 'tblTempVendorCDR_20' ) end [2025-03-08 08:46:17] Production.INFO: ProcessCDR(1,14634021,1,1,2) [2025-03-08 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634021', 'tblTempUsageDetail_20' ) start [2025-03-08 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634021', 'tblTempUsageDetail_20' ) end [2025-03-08 08:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:46:20] Production.INFO: ==15679== Releasing lock... [2025-03-08 08:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:46:20] Production.INFO: 30 MB #Memory Used# [2025-03-08 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:47:05 [end_date_ymd] => 2025-03-08 08:47:05 [RateCDR] => 1 ) [2025-03-08 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:47:05' and `end` < '2025-03-08 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:47:17] Production.INFO: count ==192 [2025-03-08 08:47:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:47:05 - End Time 2025-03-08 08:47:05 [2025-03-08 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634026', 'tblTempUsageDetail_20' ) start [2025-03-08 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634026', 'tblTempUsageDetail_20' ) end [2025-03-08 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634026', 'tblTempVendorCDR_20' ) start [2025-03-08 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634026', 'tblTempVendorCDR_20' ) end [2025-03-08 08:47:17] Production.INFO: ProcessCDR(1,14634026,1,1,2) [2025-03-08 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634026', 'tblTempUsageDetail_20' ) start [2025-03-08 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634026', 'tblTempUsageDetail_20' ) end [2025-03-08 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:47:21] Production.INFO: ==15755== Releasing lock... [2025-03-08 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:47:21] Production.INFO: 30 MB #Memory Used# [2025-03-08 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:48:05 [end_date_ymd] => 2025-03-08 08:48:05 [RateCDR] => 1 ) [2025-03-08 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:48:05' and `end` < '2025-03-08 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:48:17] Production.INFO: count ==197 [2025-03-08 08:48:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:48:05 - End Time 2025-03-08 08:48:05 [2025-03-08 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634031', 'tblTempUsageDetail_20' ) start [2025-03-08 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634031', 'tblTempUsageDetail_20' ) end [2025-03-08 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634031', 'tblTempVendorCDR_20' ) start [2025-03-08 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634031', 'tblTempVendorCDR_20' ) end [2025-03-08 08:48:17] Production.INFO: ProcessCDR(1,14634031,1,1,2) [2025-03-08 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634031', 'tblTempUsageDetail_20' ) start [2025-03-08 08:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634031', 'tblTempUsageDetail_20' ) end [2025-03-08 08:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:48:20] Production.INFO: ==15827== Releasing lock... [2025-03-08 08:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:48:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:49:05 [end_date_ymd] => 2025-03-08 08:49:05 [RateCDR] => 1 ) [2025-03-08 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:49:05' and `end` < '2025-03-08 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:49:17] Production.INFO: count ==204 [2025-03-08 08:49:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:49:05 - End Time 2025-03-08 08:49:05 [2025-03-08 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634036', 'tblTempUsageDetail_20' ) start [2025-03-08 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634036', 'tblTempUsageDetail_20' ) end [2025-03-08 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634036', 'tblTempVendorCDR_20' ) start [2025-03-08 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634036', 'tblTempVendorCDR_20' ) end [2025-03-08 08:49:17] Production.INFO: ProcessCDR(1,14634036,1,1,2) [2025-03-08 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634036', 'tblTempUsageDetail_20' ) start [2025-03-08 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634036', 'tblTempUsageDetail_20' ) end [2025-03-08 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:49:21] Production.INFO: ==15899== Releasing lock... [2025-03-08 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:49:21] Production.INFO: 30 MB #Memory Used# [2025-03-08 08:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:50:07 [end_date_ymd] => 2025-03-08 08:50:07 [RateCDR] => 1 ) [2025-03-08 08:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:50:07' and `end` < '2025-03-08 08:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:50:19] Production.INFO: count ==215 [2025-03-08 08:50:19] Production.ERROR: pbx CDR StartTime 2025-03-08 05:50:07 - End Time 2025-03-08 08:50:07 [2025-03-08 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634042', 'tblTempUsageDetail_20' ) start [2025-03-08 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634042', 'tblTempUsageDetail_20' ) end [2025-03-08 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634042', 'tblTempVendorCDR_20' ) start [2025-03-08 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634042', 'tblTempVendorCDR_20' ) end [2025-03-08 08:50:19] Production.INFO: ProcessCDR(1,14634042,1,1,2) [2025-03-08 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634042', 'tblTempUsageDetail_20' ) start [2025-03-08 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634042', 'tblTempUsageDetail_20' ) end [2025-03-08 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:50:24] Production.INFO: ==15975== Releasing lock... [2025-03-08 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:50:24] Production.INFO: 30 MB #Memory Used# [2025-03-08 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:51:05 [end_date_ymd] => 2025-03-08 08:51:05 [RateCDR] => 1 ) [2025-03-08 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:51:05' and `end` < '2025-03-08 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:51:17] Production.INFO: count ==215 [2025-03-08 08:51:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:51:05 - End Time 2025-03-08 08:51:05 [2025-03-08 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634047', 'tblTempUsageDetail_20' ) start [2025-03-08 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634047', 'tblTempUsageDetail_20' ) end [2025-03-08 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634047', 'tblTempVendorCDR_20' ) start [2025-03-08 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634047', 'tblTempVendorCDR_20' ) end [2025-03-08 08:51:17] Production.INFO: ProcessCDR(1,14634047,1,1,2) [2025-03-08 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634047', 'tblTempUsageDetail_20' ) start [2025-03-08 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634047', 'tblTempUsageDetail_20' ) end [2025-03-08 08:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:51:20] Production.INFO: ==16049== Releasing lock... [2025-03-08 08:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:51:20] Production.INFO: 30 MB #Memory Used# [2025-03-08 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:52:05 [end_date_ymd] => 2025-03-08 08:52:05 [RateCDR] => 1 ) [2025-03-08 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:52:05' and `end` < '2025-03-08 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:52:17] Production.INFO: count ==215 [2025-03-08 08:52:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:52:05 - End Time 2025-03-08 08:52:05 [2025-03-08 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634052', 'tblTempUsageDetail_20' ) start [2025-03-08 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634052', 'tblTempUsageDetail_20' ) end [2025-03-08 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634052', 'tblTempVendorCDR_20' ) start [2025-03-08 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634052', 'tblTempVendorCDR_20' ) end [2025-03-08 08:52:17] Production.INFO: ProcessCDR(1,14634052,1,1,2) [2025-03-08 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634052', 'tblTempUsageDetail_20' ) start [2025-03-08 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634052', 'tblTempUsageDetail_20' ) end [2025-03-08 08:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:52:20] Production.INFO: ==16125== Releasing lock... [2025-03-08 08:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:52:20] Production.INFO: 30 MB #Memory Used# [2025-03-08 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:53:05 [end_date_ymd] => 2025-03-08 08:53:05 [RateCDR] => 1 ) [2025-03-08 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:53:05' and `end` < '2025-03-08 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:53:17] Production.INFO: count ==219 [2025-03-08 08:53:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:53:05 - End Time 2025-03-08 08:53:05 [2025-03-08 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634057', 'tblTempUsageDetail_20' ) start [2025-03-08 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634057', 'tblTempUsageDetail_20' ) end [2025-03-08 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634057', 'tblTempVendorCDR_20' ) start [2025-03-08 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634057', 'tblTempVendorCDR_20' ) end [2025-03-08 08:53:17] Production.INFO: ProcessCDR(1,14634057,1,1,2) [2025-03-08 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634057', 'tblTempUsageDetail_20' ) start [2025-03-08 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634057', 'tblTempUsageDetail_20' ) end [2025-03-08 08:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:53:21] Production.INFO: ==16196== Releasing lock... [2025-03-08 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:53:21] Production.INFO: 30 MB #Memory Used# [2025-03-08 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:54:05 [end_date_ymd] => 2025-03-08 08:54:05 [RateCDR] => 1 ) [2025-03-08 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:54:05' and `end` < '2025-03-08 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:54:17] Production.INFO: count ==231 [2025-03-08 08:54:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:54:05 - End Time 2025-03-08 08:54:05 [2025-03-08 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634062', 'tblTempUsageDetail_20' ) start [2025-03-08 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634062', 'tblTempUsageDetail_20' ) end [2025-03-08 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634062', 'tblTempVendorCDR_20' ) start [2025-03-08 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634062', 'tblTempVendorCDR_20' ) end [2025-03-08 08:54:17] Production.INFO: ProcessCDR(1,14634062,1,1,2) [2025-03-08 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634062', 'tblTempUsageDetail_20' ) start [2025-03-08 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634062', 'tblTempUsageDetail_20' ) end [2025-03-08 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:54:21] Production.INFO: ==16267== Releasing lock... [2025-03-08 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:54:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:55:05 [end_date_ymd] => 2025-03-08 08:55:05 [RateCDR] => 1 ) [2025-03-08 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:55:05' and `end` < '2025-03-08 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:55:17] Production.INFO: count ==234 [2025-03-08 08:55:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:55:05 - End Time 2025-03-08 08:55:05 [2025-03-08 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634067', 'tblTempUsageDetail_20' ) start [2025-03-08 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634067', 'tblTempUsageDetail_20' ) end [2025-03-08 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634067', 'tblTempVendorCDR_20' ) start [2025-03-08 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634067', 'tblTempVendorCDR_20' ) end [2025-03-08 08:55:17] Production.INFO: ProcessCDR(1,14634067,1,1,2) [2025-03-08 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634067', 'tblTempUsageDetail_20' ) start [2025-03-08 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634067', 'tblTempUsageDetail_20' ) end [2025-03-08 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:55:21] Production.INFO: ==16336== Releasing lock... [2025-03-08 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:55:21] Production.INFO: 30 MB #Memory Used# [2025-03-08 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:56:05 [end_date_ymd] => 2025-03-08 08:56:05 [RateCDR] => 1 ) [2025-03-08 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:56:05' and `end` < '2025-03-08 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:56:17] Production.INFO: count ==237 [2025-03-08 08:56:18] Production.ERROR: pbx CDR StartTime 2025-03-08 05:56:05 - End Time 2025-03-08 08:56:05 [2025-03-08 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634072', 'tblTempUsageDetail_20' ) start [2025-03-08 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634072', 'tblTempUsageDetail_20' ) end [2025-03-08 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634072', 'tblTempVendorCDR_20' ) start [2025-03-08 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634072', 'tblTempVendorCDR_20' ) end [2025-03-08 08:56:18] Production.INFO: ProcessCDR(1,14634072,1,1,2) [2025-03-08 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634072', 'tblTempUsageDetail_20' ) start [2025-03-08 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634072', 'tblTempUsageDetail_20' ) end [2025-03-08 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:56:21] Production.INFO: ==16406== Releasing lock... [2025-03-08 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:56:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-08 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:57:05 [end_date_ymd] => 2025-03-08 08:57:05 [RateCDR] => 1 ) [2025-03-08 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:57:05' and `end` < '2025-03-08 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:57:17] Production.INFO: count ==234 [2025-03-08 08:57:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:57:05 - End Time 2025-03-08 08:57:05 [2025-03-08 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634077', 'tblTempUsageDetail_20' ) start [2025-03-08 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634077', 'tblTempUsageDetail_20' ) end [2025-03-08 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634077', 'tblTempVendorCDR_20' ) start [2025-03-08 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634077', 'tblTempVendorCDR_20' ) end [2025-03-08 08:57:17] Production.INFO: ProcessCDR(1,14634077,1,1,2) [2025-03-08 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634077', 'tblTempUsageDetail_20' ) start [2025-03-08 08:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634077', 'tblTempUsageDetail_20' ) end [2025-03-08 08:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:57:20] Production.INFO: ==16477== Releasing lock... [2025-03-08 08:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:57:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:58:05 [end_date_ymd] => 2025-03-08 08:58:05 [RateCDR] => 1 ) [2025-03-08 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:58:05' and `end` < '2025-03-08 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:58:18] Production.INFO: count ==240 [2025-03-08 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-08 05:58:05 - End Time 2025-03-08 08:58:05 [2025-03-08 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634082', 'tblTempUsageDetail_20' ) start [2025-03-08 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634082', 'tblTempUsageDetail_20' ) end [2025-03-08 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634082', 'tblTempVendorCDR_20' ) start [2025-03-08 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634082', 'tblTempVendorCDR_20' ) end [2025-03-08 08:58:18] Production.INFO: ProcessCDR(1,14634082,1,1,2) [2025-03-08 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634082', 'tblTempUsageDetail_20' ) start [2025-03-08 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634082', 'tblTempUsageDetail_20' ) end [2025-03-08 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:58:21] Production.INFO: ==16552== Releasing lock... [2025-03-08 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 05:59:05 [end_date_ymd] => 2025-03-08 08:59:05 [RateCDR] => 1 ) [2025-03-08 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 05:59:05' and `end` < '2025-03-08 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 08:59:17] Production.INFO: count ==243 [2025-03-08 08:59:17] Production.ERROR: pbx CDR StartTime 2025-03-08 05:59:05 - End Time 2025-03-08 08:59:05 [2025-03-08 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634087', 'tblTempUsageDetail_20' ) start [2025-03-08 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634087', 'tblTempUsageDetail_20' ) end [2025-03-08 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634087', 'tblTempVendorCDR_20' ) start [2025-03-08 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634087', 'tblTempVendorCDR_20' ) end [2025-03-08 08:59:17] Production.INFO: ProcessCDR(1,14634087,1,1,2) [2025-03-08 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634087', 'tblTempUsageDetail_20' ) start [2025-03-08 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634087', 'tblTempUsageDetail_20' ) end [2025-03-08 08:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 08:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 08:59:20] Production.INFO: ==16664== Releasing lock... [2025-03-08 08:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 08:59:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-08 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:00:06 [end_date_ymd] => 2025-03-08 09:00:06 [RateCDR] => 1 ) [2025-03-08 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:00:06' and `end` < '2025-03-08 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:00:18] Production.INFO: count ==251 [2025-03-08 09:00:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:00:06 - End Time 2025-03-08 09:00:06 [2025-03-08 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634093', 'tblTempUsageDetail_20' ) start [2025-03-08 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634093', 'tblTempUsageDetail_20' ) end [2025-03-08 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634093', 'tblTempVendorCDR_20' ) start [2025-03-08 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634093', 'tblTempVendorCDR_20' ) end [2025-03-08 09:00:18] Production.INFO: ProcessCDR(1,14634093,1,1,2) [2025-03-08 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634093', 'tblTempUsageDetail_20' ) start [2025-03-08 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634093', 'tblTempUsageDetail_20' ) end [2025-03-08 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:00:22] Production.INFO: ==16738== Releasing lock... [2025-03-08 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:00:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-08 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:01:05 [end_date_ymd] => 2025-03-08 09:01:05 [RateCDR] => 1 ) [2025-03-08 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:01:05' and `end` < '2025-03-08 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:01:17] Production.INFO: count ==274 [2025-03-08 09:01:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:01:05 - End Time 2025-03-08 09:01:05 [2025-03-08 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634098', 'tblTempUsageDetail_20' ) start [2025-03-08 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634098', 'tblTempUsageDetail_20' ) end [2025-03-08 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634098', 'tblTempVendorCDR_20' ) start [2025-03-08 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634098', 'tblTempVendorCDR_20' ) end [2025-03-08 09:01:17] Production.INFO: ProcessCDR(1,14634098,1,1,2) [2025-03-08 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634098', 'tblTempUsageDetail_20' ) start [2025-03-08 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634098', 'tblTempUsageDetail_20' ) end [2025-03-08 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:01:21] Production.INFO: ==16821== Releasing lock... [2025-03-08 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:01:21] Production.INFO: 31 MB #Memory Used# [2025-03-08 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:02:05 [end_date_ymd] => 2025-03-08 09:02:05 [RateCDR] => 1 ) [2025-03-08 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:02:05' and `end` < '2025-03-08 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:02:18] Production.INFO: count ==274 [2025-03-08 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:02:05 - End Time 2025-03-08 09:02:05 [2025-03-08 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634103', 'tblTempUsageDetail_20' ) start [2025-03-08 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634103', 'tblTempUsageDetail_20' ) end [2025-03-08 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634103', 'tblTempVendorCDR_20' ) start [2025-03-08 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634103', 'tblTempVendorCDR_20' ) end [2025-03-08 09:02:18] Production.INFO: ProcessCDR(1,14634103,1,1,2) [2025-03-08 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634103', 'tblTempUsageDetail_20' ) start [2025-03-08 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634103', 'tblTempUsageDetail_20' ) end [2025-03-08 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:02:21] Production.INFO: ==16895== Releasing lock... [2025-03-08 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:02:21] Production.INFO: 31 MB #Memory Used# [2025-03-08 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:03:05 [end_date_ymd] => 2025-03-08 09:03:05 [RateCDR] => 1 ) [2025-03-08 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:03:05' and `end` < '2025-03-08 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:03:17] Production.INFO: count ==281 [2025-03-08 09:03:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:03:05 - End Time 2025-03-08 09:03:05 [2025-03-08 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634108', 'tblTempUsageDetail_20' ) start [2025-03-08 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634108', 'tblTempUsageDetail_20' ) end [2025-03-08 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634108', 'tblTempVendorCDR_20' ) start [2025-03-08 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634108', 'tblTempVendorCDR_20' ) end [2025-03-08 09:03:17] Production.INFO: ProcessCDR(1,14634108,1,1,2) [2025-03-08 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634108', 'tblTempUsageDetail_20' ) start [2025-03-08 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634108', 'tblTempUsageDetail_20' ) end [2025-03-08 09:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:03:20] Production.INFO: ==16965== Releasing lock... [2025-03-08 09:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:03:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-08 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:04:05 [end_date_ymd] => 2025-03-08 09:04:05 [RateCDR] => 1 ) [2025-03-08 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:04:05' and `end` < '2025-03-08 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:04:17] Production.INFO: count ==279 [2025-03-08 09:04:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:04:05 - End Time 2025-03-08 09:04:05 [2025-03-08 09:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634113', 'tblTempUsageDetail_20' ) start [2025-03-08 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634113', 'tblTempUsageDetail_20' ) end [2025-03-08 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634113', 'tblTempVendorCDR_20' ) start [2025-03-08 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634113', 'tblTempVendorCDR_20' ) end [2025-03-08 09:04:17] Production.INFO: ProcessCDR(1,14634113,1,1,2) [2025-03-08 09:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634113', 'tblTempUsageDetail_20' ) start [2025-03-08 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634113', 'tblTempUsageDetail_20' ) end [2025-03-08 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:04:23] Production.INFO: ==17036== Releasing lock... [2025-03-08 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:04:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-08 09:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:05:04 [end_date_ymd] => 2025-03-08 09:05:04 [RateCDR] => 1 ) [2025-03-08 09:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:05:04' and `end` < '2025-03-08 09:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:05:17] Production.INFO: count ==283 [2025-03-08 09:05:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:05:04 - End Time 2025-03-08 09:05:04 [2025-03-08 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634118', 'tblTempUsageDetail_20' ) start [2025-03-08 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634118', 'tblTempUsageDetail_20' ) end [2025-03-08 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634118', 'tblTempVendorCDR_20' ) start [2025-03-08 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634118', 'tblTempVendorCDR_20' ) end [2025-03-08 09:05:17] Production.INFO: ProcessCDR(1,14634118,1,1,2) [2025-03-08 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634118', 'tblTempUsageDetail_20' ) start [2025-03-08 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634118', 'tblTempUsageDetail_20' ) end [2025-03-08 09:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:05:20] Production.INFO: ==17108== Releasing lock... [2025-03-08 09:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:05:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-08 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:06:05 [end_date_ymd] => 2025-03-08 09:06:05 [RateCDR] => 1 ) [2025-03-08 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:06:05' and `end` < '2025-03-08 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:06:17] Production.INFO: count ==296 [2025-03-08 09:06:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:06:05 - End Time 2025-03-08 09:06:05 [2025-03-08 09:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634123', 'tblTempUsageDetail_20' ) start [2025-03-08 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634123', 'tblTempUsageDetail_20' ) end [2025-03-08 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634123', 'tblTempVendorCDR_20' ) start [2025-03-08 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634123', 'tblTempVendorCDR_20' ) end [2025-03-08 09:06:17] Production.INFO: ProcessCDR(1,14634123,1,1,2) [2025-03-08 09:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634123', 'tblTempUsageDetail_20' ) start [2025-03-08 09:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634123', 'tblTempUsageDetail_20' ) end [2025-03-08 09:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:06:20] Production.INFO: ==17178== Releasing lock... [2025-03-08 09:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:06:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:07:05 [end_date_ymd] => 2025-03-08 09:07:05 [RateCDR] => 1 ) [2025-03-08 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:07:05' and `end` < '2025-03-08 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:07:17] Production.INFO: count ==297 [2025-03-08 09:07:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:07:05 - End Time 2025-03-08 09:07:05 [2025-03-08 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634128', 'tblTempUsageDetail_20' ) start [2025-03-08 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634128', 'tblTempUsageDetail_20' ) end [2025-03-08 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634128', 'tblTempVendorCDR_20' ) start [2025-03-08 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634128', 'tblTempVendorCDR_20' ) end [2025-03-08 09:07:17] Production.INFO: ProcessCDR(1,14634128,1,1,2) [2025-03-08 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634128', 'tblTempUsageDetail_20' ) start [2025-03-08 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634128', 'tblTempUsageDetail_20' ) end [2025-03-08 09:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:07:20] Production.INFO: ==17250== Releasing lock... [2025-03-08 09:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:07:20] Production.INFO: 31 MB #Memory Used# [2025-03-08 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:08:05 [end_date_ymd] => 2025-03-08 09:08:05 [RateCDR] => 1 ) [2025-03-08 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:08:05' and `end` < '2025-03-08 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:08:17] Production.INFO: count ==306 [2025-03-08 09:08:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:08:05 - End Time 2025-03-08 09:08:05 [2025-03-08 09:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634133', 'tblTempUsageDetail_20' ) start [2025-03-08 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634133', 'tblTempUsageDetail_20' ) end [2025-03-08 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634133', 'tblTempVendorCDR_20' ) start [2025-03-08 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634133', 'tblTempVendorCDR_20' ) end [2025-03-08 09:08:17] Production.INFO: ProcessCDR(1,14634133,1,1,2) [2025-03-08 09:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634133', 'tblTempUsageDetail_20' ) start [2025-03-08 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634133', 'tblTempUsageDetail_20' ) end [2025-03-08 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:08:22] Production.INFO: ==17324== Releasing lock... [2025-03-08 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:08:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-08 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:09:06 [end_date_ymd] => 2025-03-08 09:09:06 [RateCDR] => 1 ) [2025-03-08 09:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:09:06' and `end` < '2025-03-08 09:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:09:18] Production.INFO: count ==324 [2025-03-08 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:09:06 - End Time 2025-03-08 09:09:06 [2025-03-08 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634138', 'tblTempUsageDetail_20' ) start [2025-03-08 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634138', 'tblTempUsageDetail_20' ) end [2025-03-08 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634138', 'tblTempVendorCDR_20' ) start [2025-03-08 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634138', 'tblTempVendorCDR_20' ) end [2025-03-08 09:09:18] Production.INFO: ProcessCDR(1,14634138,1,1,2) [2025-03-08 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634138', 'tblTempUsageDetail_20' ) start [2025-03-08 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634138', 'tblTempUsageDetail_20' ) end [2025-03-08 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:09:23] Production.INFO: ==17394== Releasing lock... [2025-03-08 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:09:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:10:05 [end_date_ymd] => 2025-03-08 09:10:05 [RateCDR] => 1 ) [2025-03-08 09:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:10:05' and `end` < '2025-03-08 09:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:10:17] Production.INFO: count ==336 [2025-03-08 09:10:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:10:05 - End Time 2025-03-08 09:10:05 [2025-03-08 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634143', 'tblTempUsageDetail_20' ) start [2025-03-08 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634143', 'tblTempUsageDetail_20' ) end [2025-03-08 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634143', 'tblTempVendorCDR_20' ) start [2025-03-08 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634143', 'tblTempVendorCDR_20' ) end [2025-03-08 09:10:18] Production.INFO: ProcessCDR(1,14634143,1,1,2) [2025-03-08 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634143', 'tblTempUsageDetail_20' ) start [2025-03-08 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634143', 'tblTempUsageDetail_20' ) end [2025-03-08 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:10:23] Production.INFO: ==17498== Releasing lock... [2025-03-08 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:10:23] Production.INFO: 31 MB #Memory Used# [2025-03-08 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:11:05 [end_date_ymd] => 2025-03-08 09:11:05 [RateCDR] => 1 ) [2025-03-08 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:11:05' and `end` < '2025-03-08 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:11:17] Production.INFO: count ==372 [2025-03-08 09:11:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:11:05 - End Time 2025-03-08 09:11:05 [2025-03-08 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634149', 'tblTempUsageDetail_20' ) start [2025-03-08 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634149', 'tblTempUsageDetail_20' ) end [2025-03-08 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634149', 'tblTempVendorCDR_20' ) start [2025-03-08 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634149', 'tblTempVendorCDR_20' ) end [2025-03-08 09:11:17] Production.INFO: ProcessCDR(1,14634149,1,1,2) [2025-03-08 09:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634149', 'tblTempUsageDetail_20' ) start [2025-03-08 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634149', 'tblTempUsageDetail_20' ) end [2025-03-08 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:11:23] Production.INFO: ==17597== Releasing lock... [2025-03-08 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:11:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-08 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:12:05 [end_date_ymd] => 2025-03-08 09:12:05 [RateCDR] => 1 ) [2025-03-08 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:12:05' and `end` < '2025-03-08 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:12:17] Production.INFO: count ==373 [2025-03-08 09:12:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:12:05 - End Time 2025-03-08 09:12:05 [2025-03-08 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634154', 'tblTempUsageDetail_20' ) start [2025-03-08 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634154', 'tblTempUsageDetail_20' ) end [2025-03-08 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634154', 'tblTempVendorCDR_20' ) start [2025-03-08 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634154', 'tblTempVendorCDR_20' ) end [2025-03-08 09:12:17] Production.INFO: ProcessCDR(1,14634154,1,1,2) [2025-03-08 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634154', 'tblTempUsageDetail_20' ) start [2025-03-08 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634154', 'tblTempUsageDetail_20' ) end [2025-03-08 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:12:22] Production.INFO: ==17692== Releasing lock... [2025-03-08 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:12:22] Production.INFO: 31 MB #Memory Used# [2025-03-08 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:13:05 [end_date_ymd] => 2025-03-08 09:13:05 [RateCDR] => 1 ) [2025-03-08 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:13:05' and `end` < '2025-03-08 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:13:17] Production.INFO: count ==374 [2025-03-08 09:13:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:13:05 - End Time 2025-03-08 09:13:05 [2025-03-08 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634159', 'tblTempUsageDetail_20' ) start [2025-03-08 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634159', 'tblTempUsageDetail_20' ) end [2025-03-08 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634159', 'tblTempVendorCDR_20' ) start [2025-03-08 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634159', 'tblTempVendorCDR_20' ) end [2025-03-08 09:13:17] Production.INFO: ProcessCDR(1,14634159,1,1,2) [2025-03-08 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634159', 'tblTempUsageDetail_20' ) start [2025-03-08 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634159', 'tblTempUsageDetail_20' ) end [2025-03-08 09:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:13:21] Production.INFO: ==17790== Releasing lock... [2025-03-08 09:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:13:21] Production.INFO: 31 MB #Memory Used# [2025-03-08 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:14:05 [end_date_ymd] => 2025-03-08 09:14:05 [RateCDR] => 1 ) [2025-03-08 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:14:05' and `end` < '2025-03-08 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:14:17] Production.INFO: count ==383 [2025-03-08 09:14:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:14:05 - End Time 2025-03-08 09:14:05 [2025-03-08 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634164', 'tblTempUsageDetail_20' ) start [2025-03-08 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634164', 'tblTempUsageDetail_20' ) end [2025-03-08 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634164', 'tblTempVendorCDR_20' ) start [2025-03-08 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634164', 'tblTempVendorCDR_20' ) end [2025-03-08 09:14:17] Production.INFO: ProcessCDR(1,14634164,1,1,2) [2025-03-08 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634164', 'tblTempUsageDetail_20' ) start [2025-03-08 09:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634164', 'tblTempUsageDetail_20' ) end [2025-03-08 09:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:14:20] Production.INFO: ==17883== Releasing lock... [2025-03-08 09:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:14:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:15:05 [end_date_ymd] => 2025-03-08 09:15:05 [RateCDR] => 1 ) [2025-03-08 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:15:05' and `end` < '2025-03-08 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:15:17] Production.INFO: count ==383 [2025-03-08 09:15:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:15:05 - End Time 2025-03-08 09:15:05 [2025-03-08 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634169', 'tblTempUsageDetail_20' ) start [2025-03-08 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634169', 'tblTempUsageDetail_20' ) end [2025-03-08 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634169', 'tblTempVendorCDR_20' ) start [2025-03-08 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634169', 'tblTempVendorCDR_20' ) end [2025-03-08 09:15:17] Production.INFO: ProcessCDR(1,14634169,1,1,2) [2025-03-08 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634169', 'tblTempUsageDetail_20' ) start [2025-03-08 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634169', 'tblTempUsageDetail_20' ) end [2025-03-08 09:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:15:21] Production.INFO: ==18020== Releasing lock... [2025-03-08 09:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:15:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:16:06 [end_date_ymd] => 2025-03-08 09:16:06 [RateCDR] => 1 ) [2025-03-08 09:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:16:06' and `end` < '2025-03-08 09:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:16:18] Production.INFO: count ==393 [2025-03-08 09:16:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:16:06 - End Time 2025-03-08 09:16:06 [2025-03-08 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634174', 'tblTempUsageDetail_20' ) start [2025-03-08 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634174', 'tblTempUsageDetail_20' ) end [2025-03-08 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634174', 'tblTempVendorCDR_20' ) start [2025-03-08 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634174', 'tblTempVendorCDR_20' ) end [2025-03-08 09:16:18] Production.INFO: ProcessCDR(1,14634174,1,1,2) [2025-03-08 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634174', 'tblTempUsageDetail_20' ) start [2025-03-08 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634174', 'tblTempUsageDetail_20' ) end [2025-03-08 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:16:23] Production.INFO: ==18122== Releasing lock... [2025-03-08 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:16:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:17:05 [end_date_ymd] => 2025-03-08 09:17:05 [RateCDR] => 1 ) [2025-03-08 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:17:05' and `end` < '2025-03-08 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:17:17] Production.INFO: count ==405 [2025-03-08 09:17:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:17:05 - End Time 2025-03-08 09:17:05 [2025-03-08 09:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634179', 'tblTempUsageDetail_20' ) start [2025-03-08 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634179', 'tblTempUsageDetail_20' ) end [2025-03-08 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634179', 'tblTempVendorCDR_20' ) start [2025-03-08 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634179', 'tblTempVendorCDR_20' ) end [2025-03-08 09:17:18] Production.INFO: ProcessCDR(1,14634179,1,1,2) [2025-03-08 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634179', 'tblTempUsageDetail_20' ) start [2025-03-08 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634179', 'tblTempUsageDetail_20' ) end [2025-03-08 09:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:17:22] Production.INFO: ==18217== Releasing lock... [2025-03-08 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:17:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-08 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:18:05 [end_date_ymd] => 2025-03-08 09:18:05 [RateCDR] => 1 ) [2025-03-08 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:18:05' and `end` < '2025-03-08 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:18:17] Production.INFO: count ==420 [2025-03-08 09:18:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:18:05 - End Time 2025-03-08 09:18:05 [2025-03-08 09:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634184', 'tblTempUsageDetail_20' ) start [2025-03-08 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634184', 'tblTempUsageDetail_20' ) end [2025-03-08 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634184', 'tblTempVendorCDR_20' ) start [2025-03-08 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634184', 'tblTempVendorCDR_20' ) end [2025-03-08 09:18:17] Production.INFO: ProcessCDR(1,14634184,1,1,2) [2025-03-08 09:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634184', 'tblTempUsageDetail_20' ) start [2025-03-08 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634184', 'tblTempUsageDetail_20' ) end [2025-03-08 09:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:18:21] Production.INFO: ==18310== Releasing lock... [2025-03-08 09:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:18:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-08 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:19:05 [end_date_ymd] => 2025-03-08 09:19:05 [RateCDR] => 1 ) [2025-03-08 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:19:05' and `end` < '2025-03-08 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:19:17] Production.INFO: count ==422 [2025-03-08 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:19:05 - End Time 2025-03-08 09:19:05 [2025-03-08 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634189', 'tblTempUsageDetail_20' ) start [2025-03-08 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634189', 'tblTempUsageDetail_20' ) end [2025-03-08 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634189', 'tblTempVendorCDR_20' ) start [2025-03-08 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634189', 'tblTempVendorCDR_20' ) end [2025-03-08 09:19:18] Production.INFO: ProcessCDR(1,14634189,1,1,2) [2025-03-08 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634189', 'tblTempUsageDetail_20' ) start [2025-03-08 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634189', 'tblTempUsageDetail_20' ) end [2025-03-08 09:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:19:21] Production.INFO: ==18416== Releasing lock... [2025-03-08 09:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-08 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:20:06 [end_date_ymd] => 2025-03-08 09:20:06 [RateCDR] => 1 ) [2025-03-08 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:20:06' and `end` < '2025-03-08 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:20:18] Production.INFO: count ==434 [2025-03-08 09:20:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:20:06 - End Time 2025-03-08 09:20:06 [2025-03-08 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634195', 'tblTempUsageDetail_20' ) start [2025-03-08 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634195', 'tblTempUsageDetail_20' ) end [2025-03-08 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634195', 'tblTempVendorCDR_20' ) start [2025-03-08 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634195', 'tblTempVendorCDR_20' ) end [2025-03-08 09:20:19] Production.INFO: ProcessCDR(1,14634195,1,1,2) [2025-03-08 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634195', 'tblTempUsageDetail_20' ) start [2025-03-08 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634195', 'tblTempUsageDetail_20' ) end [2025-03-08 09:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:20:22] Production.INFO: ==18515== Releasing lock... [2025-03-08 09:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:20:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-08 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:21:05 [end_date_ymd] => 2025-03-08 09:21:05 [RateCDR] => 1 ) [2025-03-08 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:21:05' and `end` < '2025-03-08 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:21:17] Production.INFO: count ==444 [2025-03-08 09:21:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:21:05 - End Time 2025-03-08 09:21:05 [2025-03-08 09:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634200', 'tblTempUsageDetail_20' ) start [2025-03-08 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634200', 'tblTempUsageDetail_20' ) end [2025-03-08 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634200', 'tblTempVendorCDR_20' ) start [2025-03-08 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634200', 'tblTempVendorCDR_20' ) end [2025-03-08 09:21:17] Production.INFO: ProcessCDR(1,14634200,1,1,2) [2025-03-08 09:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634200', 'tblTempUsageDetail_20' ) start [2025-03-08 09:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634200', 'tblTempUsageDetail_20' ) end [2025-03-08 09:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:21:20] Production.INFO: ==18616== Releasing lock... [2025-03-08 09:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:21:20] Production.INFO: 32 MB #Memory Used# [2025-03-08 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:22:05 [end_date_ymd] => 2025-03-08 09:22:05 [RateCDR] => 1 ) [2025-03-08 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:22:05' and `end` < '2025-03-08 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:22:17] Production.INFO: count ==447 [2025-03-08 09:22:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:22:05 - End Time 2025-03-08 09:22:05 [2025-03-08 09:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634205', 'tblTempUsageDetail_20' ) start [2025-03-08 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634205', 'tblTempUsageDetail_20' ) end [2025-03-08 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634205', 'tblTempVendorCDR_20' ) start [2025-03-08 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634205', 'tblTempVendorCDR_20' ) end [2025-03-08 09:22:17] Production.INFO: ProcessCDR(1,14634205,1,1,2) [2025-03-08 09:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634205', 'tblTempUsageDetail_20' ) start [2025-03-08 09:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634205', 'tblTempUsageDetail_20' ) end [2025-03-08 09:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:22:20] Production.INFO: ==18711== Releasing lock... [2025-03-08 09:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:22:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-08 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:23:05 [end_date_ymd] => 2025-03-08 09:23:05 [RateCDR] => 1 ) [2025-03-08 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:23:05' and `end` < '2025-03-08 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:23:17] Production.INFO: count ==449 [2025-03-08 09:23:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:23:05 - End Time 2025-03-08 09:23:05 [2025-03-08 09:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634210', 'tblTempUsageDetail_20' ) start [2025-03-08 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634210', 'tblTempUsageDetail_20' ) end [2025-03-08 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634210', 'tblTempVendorCDR_20' ) start [2025-03-08 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634210', 'tblTempVendorCDR_20' ) end [2025-03-08 09:23:17] Production.INFO: ProcessCDR(1,14634210,1,1,2) [2025-03-08 09:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634210', 'tblTempUsageDetail_20' ) start [2025-03-08 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634210', 'tblTempUsageDetail_20' ) end [2025-03-08 09:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:23:22] Production.INFO: ==18814== Releasing lock... [2025-03-08 09:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:23:22] Production.INFO: 32 MB #Memory Used# [2025-03-08 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:24:06 [end_date_ymd] => 2025-03-08 09:24:06 [RateCDR] => 1 ) [2025-03-08 09:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:24:06' and `end` < '2025-03-08 09:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:24:18] Production.INFO: count ==449 [2025-03-08 09:24:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:24:06 - End Time 2025-03-08 09:24:06 [2025-03-08 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634215', 'tblTempUsageDetail_20' ) start [2025-03-08 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634215', 'tblTempUsageDetail_20' ) end [2025-03-08 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634215', 'tblTempVendorCDR_20' ) start [2025-03-08 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634215', 'tblTempVendorCDR_20' ) end [2025-03-08 09:24:18] Production.INFO: ProcessCDR(1,14634215,1,1,2) [2025-03-08 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634215', 'tblTempUsageDetail_20' ) start [2025-03-08 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634215', 'tblTempUsageDetail_20' ) end [2025-03-08 09:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:24:21] Production.INFO: ==18908== Releasing lock... [2025-03-08 09:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:24:21] Production.INFO: 32 MB #Memory Used# [2025-03-08 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:25:04 [end_date_ymd] => 2025-03-08 09:25:04 [RateCDR] => 1 ) [2025-03-08 09: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-03-08 06:25:04' and `end` < '2025-03-08 09: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-03-08 09:25:16] Production.INFO: count ==449 [2025-03-08 09:25:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:25:04 - End Time 2025-03-08 09:25:04 [2025-03-08 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634220', 'tblTempUsageDetail_20' ) start [2025-03-08 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634220', 'tblTempUsageDetail_20' ) end [2025-03-08 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634220', 'tblTempVendorCDR_20' ) start [2025-03-08 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634220', 'tblTempVendorCDR_20' ) end [2025-03-08 09:25:17] Production.INFO: ProcessCDR(1,14634220,1,1,2) [2025-03-08 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634220', 'tblTempUsageDetail_20' ) start [2025-03-08 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634220', 'tblTempUsageDetail_20' ) end [2025-03-08 09:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:25:20] Production.INFO: ==19007== Releasing lock... [2025-03-08 09:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:25:20] Production.INFO: 32 MB #Memory Used# [2025-03-08 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:26:05 [end_date_ymd] => 2025-03-08 09:26:05 [RateCDR] => 1 ) [2025-03-08 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:26:05' and `end` < '2025-03-08 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:26:17] Production.INFO: count ==451 [2025-03-08 09:26:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:26:05 - End Time 2025-03-08 09:26:05 [2025-03-08 09:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634225', 'tblTempUsageDetail_20' ) start [2025-03-08 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634225', 'tblTempUsageDetail_20' ) end [2025-03-08 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634225', 'tblTempVendorCDR_20' ) start [2025-03-08 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634225', 'tblTempVendorCDR_20' ) end [2025-03-08 09:26:17] Production.INFO: ProcessCDR(1,14634225,1,1,2) [2025-03-08 09:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634225', 'tblTempUsageDetail_20' ) start [2025-03-08 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634225', 'tblTempUsageDetail_20' ) end [2025-03-08 09:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:26:21] Production.INFO: ==19114== Releasing lock... [2025-03-08 09:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:26:21] Production.INFO: 32 MB #Memory Used# [2025-03-08 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:27:05 [end_date_ymd] => 2025-03-08 09:27:05 [RateCDR] => 1 ) [2025-03-08 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:27:05' and `end` < '2025-03-08 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:27:17] Production.INFO: count ==448 [2025-03-08 09:27:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:27:05 - End Time 2025-03-08 09:27:05 [2025-03-08 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634230', 'tblTempUsageDetail_20' ) start [2025-03-08 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634230', 'tblTempUsageDetail_20' ) end [2025-03-08 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634230', 'tblTempVendorCDR_20' ) start [2025-03-08 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634230', 'tblTempVendorCDR_20' ) end [2025-03-08 09:27:17] Production.INFO: ProcessCDR(1,14634230,1,1,2) [2025-03-08 09:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634230', 'tblTempUsageDetail_20' ) start [2025-03-08 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634230', 'tblTempUsageDetail_20' ) end [2025-03-08 09:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:27:21] Production.INFO: ==19212== Releasing lock... [2025-03-08 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:27:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-08 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:28:05 [end_date_ymd] => 2025-03-08 09:28:05 [RateCDR] => 1 ) [2025-03-08 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:28:05' and `end` < '2025-03-08 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:28:17] Production.INFO: count ==446 [2025-03-08 09:28:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:28:05 - End Time 2025-03-08 09:28:05 [2025-03-08 09:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634235', 'tblTempUsageDetail_20' ) start [2025-03-08 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634235', 'tblTempUsageDetail_20' ) end [2025-03-08 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634235', 'tblTempVendorCDR_20' ) start [2025-03-08 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634235', 'tblTempVendorCDR_20' ) end [2025-03-08 09:28:17] Production.INFO: ProcessCDR(1,14634235,1,1,2) [2025-03-08 09:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634235', 'tblTempUsageDetail_20' ) start [2025-03-08 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634235', 'tblTempUsageDetail_20' ) end [2025-03-08 09:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:28:21] Production.INFO: ==19309== Releasing lock... [2025-03-08 09:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:28:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-08 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:29:06 [end_date_ymd] => 2025-03-08 09:29:06 [RateCDR] => 1 ) [2025-03-08 09:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:29:06' and `end` < '2025-03-08 09:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:29:18] Production.INFO: count ==451 [2025-03-08 09:29:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:29:06 - End Time 2025-03-08 09:29:06 [2025-03-08 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634240', 'tblTempUsageDetail_20' ) start [2025-03-08 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634240', 'tblTempUsageDetail_20' ) end [2025-03-08 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634240', 'tblTempVendorCDR_20' ) start [2025-03-08 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634240', 'tblTempVendorCDR_20' ) end [2025-03-08 09:29:18] Production.INFO: ProcessCDR(1,14634240,1,1,2) [2025-03-08 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634240', 'tblTempUsageDetail_20' ) start [2025-03-08 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634240', 'tblTempUsageDetail_20' ) end [2025-03-08 09:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:29:21] Production.INFO: ==19405== Releasing lock... [2025-03-08 09:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:29:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-08 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:30:06 [end_date_ymd] => 2025-03-08 09:30:06 [RateCDR] => 1 ) [2025-03-08 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:30:06' and `end` < '2025-03-08 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:30:18] Production.INFO: count ==464 [2025-03-08 09:30:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:30:06 - End Time 2025-03-08 09:30:06 [2025-03-08 09:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634245', 'tblTempUsageDetail_20' ) start [2025-03-08 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634245', 'tblTempUsageDetail_20' ) end [2025-03-08 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634245', 'tblTempVendorCDR_20' ) start [2025-03-08 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634245', 'tblTempVendorCDR_20' ) end [2025-03-08 09:30:18] Production.INFO: ProcessCDR(1,14634245,1,1,2) [2025-03-08 09:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634245', 'tblTempUsageDetail_20' ) start [2025-03-08 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634245', 'tblTempUsageDetail_20' ) end [2025-03-08 09:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:30:23] Production.INFO: ==19545== Releasing lock... [2025-03-08 09:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:30:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-08 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:31:06 [end_date_ymd] => 2025-03-08 09:31:06 [RateCDR] => 1 ) [2025-03-08 09:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:31:06' and `end` < '2025-03-08 09:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:31:18] Production.INFO: count ==480 [2025-03-08 09:31:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:31:06 - End Time 2025-03-08 09:31:06 [2025-03-08 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634251', 'tblTempUsageDetail_20' ) start [2025-03-08 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634251', 'tblTempUsageDetail_20' ) end [2025-03-08 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634251', 'tblTempVendorCDR_20' ) start [2025-03-08 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634251', 'tblTempVendorCDR_20' ) end [2025-03-08 09:31:18] Production.INFO: ProcessCDR(1,14634251,1,1,2) [2025-03-08 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634251', 'tblTempUsageDetail_20' ) start [2025-03-08 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634251', 'tblTempUsageDetail_20' ) end [2025-03-08 09:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:31:21] Production.INFO: ==19653== Releasing lock... [2025-03-08 09:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:31:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-08 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:32:05 [end_date_ymd] => 2025-03-08 09:32:05 [RateCDR] => 1 ) [2025-03-08 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:32:05' and `end` < '2025-03-08 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:32:17] Production.INFO: count ==486 [2025-03-08 09:32:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:32:05 - End Time 2025-03-08 09:32:05 [2025-03-08 09:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634256', 'tblTempUsageDetail_20' ) start [2025-03-08 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634256', 'tblTempUsageDetail_20' ) end [2025-03-08 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634256', 'tblTempVendorCDR_20' ) start [2025-03-08 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634256', 'tblTempVendorCDR_20' ) end [2025-03-08 09:32:17] Production.INFO: ProcessCDR(1,14634256,1,1,2) [2025-03-08 09:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634256', 'tblTempUsageDetail_20' ) start [2025-03-08 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634256', 'tblTempUsageDetail_20' ) end [2025-03-08 09:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:32:21] Production.INFO: ==19751== Releasing lock... [2025-03-08 09:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:32:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-08 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:33:05 [end_date_ymd] => 2025-03-08 09:33:05 [RateCDR] => 1 ) [2025-03-08 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:33:05' and `end` < '2025-03-08 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:33:17] Production.INFO: count ==493 [2025-03-08 09:33:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:33:05 - End Time 2025-03-08 09:33:05 [2025-03-08 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634261', 'tblTempUsageDetail_20' ) start [2025-03-08 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634261', 'tblTempUsageDetail_20' ) end [2025-03-08 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634261', 'tblTempVendorCDR_20' ) start [2025-03-08 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634261', 'tblTempVendorCDR_20' ) end [2025-03-08 09:33:18] Production.INFO: ProcessCDR(1,14634261,1,1,2) [2025-03-08 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634261', 'tblTempUsageDetail_20' ) start [2025-03-08 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634261', 'tblTempUsageDetail_20' ) end [2025-03-08 09:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:33:22] Production.INFO: ==19852== Releasing lock... [2025-03-08 09:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:33:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-08 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:34:05 [end_date_ymd] => 2025-03-08 09:34:05 [RateCDR] => 1 ) [2025-03-08 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:34:05' and `end` < '2025-03-08 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:34:17] Production.INFO: count ==498 [2025-03-08 09:34:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:34:05 - End Time 2025-03-08 09:34:05 [2025-03-08 09:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634266', 'tblTempUsageDetail_20' ) start [2025-03-08 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634266', 'tblTempUsageDetail_20' ) end [2025-03-08 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634266', 'tblTempVendorCDR_20' ) start [2025-03-08 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634266', 'tblTempVendorCDR_20' ) end [2025-03-08 09:34:17] Production.INFO: ProcessCDR(1,14634266,1,1,2) [2025-03-08 09:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634266', 'tblTempUsageDetail_20' ) start [2025-03-08 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634266', 'tblTempUsageDetail_20' ) end [2025-03-08 09:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:34:22] Production.INFO: ==19953== Releasing lock... [2025-03-08 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:34:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-08 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:35:05 [end_date_ymd] => 2025-03-08 09:35:05 [RateCDR] => 1 ) [2025-03-08 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:35:05' and `end` < '2025-03-08 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:35:17] Production.INFO: count ==506 [2025-03-08 09:35:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:35:05 - End Time 2025-03-08 09:35:05 [2025-03-08 09:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634271', 'tblTempUsageDetail_20' ) start [2025-03-08 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634271', 'tblTempUsageDetail_20' ) end [2025-03-08 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634271', 'tblTempVendorCDR_20' ) start [2025-03-08 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634271', 'tblTempVendorCDR_20' ) end [2025-03-08 09:35:17] Production.INFO: ProcessCDR(1,14634271,1,1,2) [2025-03-08 09:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634271', 'tblTempUsageDetail_20' ) start [2025-03-08 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634271', 'tblTempUsageDetail_20' ) end [2025-03-08 09:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:35:22] Production.INFO: ==20030== Releasing lock... [2025-03-08 09:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:35:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-08 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:36:05 [end_date_ymd] => 2025-03-08 09:36:05 [RateCDR] => 1 ) [2025-03-08 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:36:05' and `end` < '2025-03-08 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:36:17] Production.INFO: count ==507 [2025-03-08 09:36:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:36:05 - End Time 2025-03-08 09:36:05 [2025-03-08 09:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634276', 'tblTempUsageDetail_20' ) start [2025-03-08 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634276', 'tblTempUsageDetail_20' ) end [2025-03-08 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634276', 'tblTempVendorCDR_20' ) start [2025-03-08 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634276', 'tblTempVendorCDR_20' ) end [2025-03-08 09:36:17] Production.INFO: ProcessCDR(1,14634276,1,1,2) [2025-03-08 09:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634276', 'tblTempUsageDetail_20' ) start [2025-03-08 09:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634276', 'tblTempUsageDetail_20' ) end [2025-03-08 09:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:36:20] Production.INFO: ==20106== Releasing lock... [2025-03-08 09:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:36:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-08 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:37:05 [end_date_ymd] => 2025-03-08 09:37:05 [RateCDR] => 1 ) [2025-03-08 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:37:05' and `end` < '2025-03-08 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:37:17] Production.INFO: count ==511 [2025-03-08 09:37:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:37:05 - End Time 2025-03-08 09:37:05 [2025-03-08 09:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634281', 'tblTempUsageDetail_20' ) start [2025-03-08 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634281', 'tblTempUsageDetail_20' ) end [2025-03-08 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634281', 'tblTempVendorCDR_20' ) start [2025-03-08 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634281', 'tblTempVendorCDR_20' ) end [2025-03-08 09:37:17] Production.INFO: ProcessCDR(1,14634281,1,1,2) [2025-03-08 09:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634281', 'tblTempUsageDetail_20' ) start [2025-03-08 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634281', 'tblTempUsageDetail_20' ) end [2025-03-08 09:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:37:21] Production.INFO: ==20181== Releasing lock... [2025-03-08 09:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:37:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-08 09:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:38:06 [end_date_ymd] => 2025-03-08 09:38:06 [RateCDR] => 1 ) [2025-03-08 09:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:38:06' and `end` < '2025-03-08 09:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:38:18] Production.INFO: count ==511 [2025-03-08 09:38:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:38:06 - End Time 2025-03-08 09:38:06 [2025-03-08 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634286', 'tblTempUsageDetail_20' ) start [2025-03-08 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634286', 'tblTempUsageDetail_20' ) end [2025-03-08 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634286', 'tblTempVendorCDR_20' ) start [2025-03-08 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634286', 'tblTempVendorCDR_20' ) end [2025-03-08 09:38:18] Production.INFO: ProcessCDR(1,14634286,1,1,2) [2025-03-08 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634286', 'tblTempUsageDetail_20' ) start [2025-03-08 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634286', 'tblTempUsageDetail_20' ) end [2025-03-08 09:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:38:21] Production.INFO: ==20264== Releasing lock... [2025-03-08 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:38:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-08 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:39:05 [end_date_ymd] => 2025-03-08 09:39:05 [RateCDR] => 1 ) [2025-03-08 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:39:05' and `end` < '2025-03-08 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:39:17] Production.INFO: count ==511 [2025-03-08 09:39:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:39:05 - End Time 2025-03-08 09:39:05 [2025-03-08 09:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634291', 'tblTempUsageDetail_20' ) start [2025-03-08 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634291', 'tblTempUsageDetail_20' ) end [2025-03-08 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634291', 'tblTempVendorCDR_20' ) start [2025-03-08 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634291', 'tblTempVendorCDR_20' ) end [2025-03-08 09:39:17] Production.INFO: ProcessCDR(1,14634291,1,1,2) [2025-03-08 09:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634291', 'tblTempUsageDetail_20' ) start [2025-03-08 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634291', 'tblTempUsageDetail_20' ) end [2025-03-08 09:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:39:21] Production.INFO: ==20339== Releasing lock... [2025-03-08 09:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:39:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-08 09:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:40:05 [end_date_ymd] => 2025-03-08 09:40:05 [RateCDR] => 1 ) [2025-03-08 09:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:40:05' and `end` < '2025-03-08 09:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:40:17] Production.INFO: count ==518 [2025-03-08 09:40:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:40:05 - End Time 2025-03-08 09:40:05 [2025-03-08 09:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634297', 'tblTempUsageDetail_20' ) start [2025-03-08 09:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634297', 'tblTempUsageDetail_20' ) end [2025-03-08 09:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634297', 'tblTempVendorCDR_20' ) start [2025-03-08 09:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634297', 'tblTempVendorCDR_20' ) end [2025-03-08 09:40:17] Production.INFO: ProcessCDR(1,14634297,1,1,2) [2025-03-08 09:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634297', 'tblTempUsageDetail_20' ) start [2025-03-08 09:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634297', 'tblTempUsageDetail_20' ) end [2025-03-08 09:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:40:21] Production.INFO: ==20419== Releasing lock... [2025-03-08 09:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:40:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-08 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:41:05 [end_date_ymd] => 2025-03-08 09:41:05 [RateCDR] => 1 ) [2025-03-08 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:41:05' and `end` < '2025-03-08 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:41:17] Production.INFO: count ==520 [2025-03-08 09:41:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:41:05 - End Time 2025-03-08 09:41:05 [2025-03-08 09:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634302', 'tblTempUsageDetail_20' ) start [2025-03-08 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634302', 'tblTempUsageDetail_20' ) end [2025-03-08 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634302', 'tblTempVendorCDR_20' ) start [2025-03-08 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634302', 'tblTempVendorCDR_20' ) end [2025-03-08 09:41:17] Production.INFO: ProcessCDR(1,14634302,1,1,2) [2025-03-08 09:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634302', 'tblTempUsageDetail_20' ) start [2025-03-08 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634302', 'tblTempUsageDetail_20' ) end [2025-03-08 09:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:41:21] Production.INFO: ==20496== Releasing lock... [2025-03-08 09:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:41:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-08 09:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:42:04 [end_date_ymd] => 2025-03-08 09:42:04 [RateCDR] => 1 ) [2025-03-08 09:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:42:04' and `end` < '2025-03-08 09:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:42:16] Production.INFO: count ==521 [2025-03-08 09:42:16] Production.ERROR: pbx CDR StartTime 2025-03-08 06:42:04 - End Time 2025-03-08 09:42:04 [2025-03-08 09:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634307', 'tblTempUsageDetail_20' ) start [2025-03-08 09:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634307', 'tblTempUsageDetail_20' ) end [2025-03-08 09:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634307', 'tblTempVendorCDR_20' ) start [2025-03-08 09:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634307', 'tblTempVendorCDR_20' ) end [2025-03-08 09:42:16] Production.INFO: ProcessCDR(1,14634307,1,1,2) [2025-03-08 09:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634307', 'tblTempUsageDetail_20' ) start [2025-03-08 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634307', 'tblTempUsageDetail_20' ) end [2025-03-08 09:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:42:21] Production.INFO: ==20576== Releasing lock... [2025-03-08 09:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:42:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-08 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:43:05 [end_date_ymd] => 2025-03-08 09:43:05 [RateCDR] => 1 ) [2025-03-08 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:43:05' and `end` < '2025-03-08 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:43:17] Production.INFO: count ==520 [2025-03-08 09:43:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:43:05 - End Time 2025-03-08 09:43:05 [2025-03-08 09:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634312', 'tblTempUsageDetail_20' ) start [2025-03-08 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634312', 'tblTempUsageDetail_20' ) end [2025-03-08 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634312', 'tblTempVendorCDR_20' ) start [2025-03-08 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634312', 'tblTempVendorCDR_20' ) end [2025-03-08 09:43:17] Production.INFO: ProcessCDR(1,14634312,1,1,2) [2025-03-08 09:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634312', 'tblTempUsageDetail_20' ) start [2025-03-08 09:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634312', 'tblTempUsageDetail_20' ) end [2025-03-08 09:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:43:20] Production.INFO: ==20649== Releasing lock... [2025-03-08 09:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:43:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-08 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:44:06 [end_date_ymd] => 2025-03-08 09:44:06 [RateCDR] => 1 ) [2025-03-08 09:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:44:06' and `end` < '2025-03-08 09:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:44:18] Production.INFO: count ==527 [2025-03-08 09:44:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:44:06 - End Time 2025-03-08 09:44:06 [2025-03-08 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634317', 'tblTempUsageDetail_20' ) start [2025-03-08 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634317', 'tblTempUsageDetail_20' ) end [2025-03-08 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634317', 'tblTempVendorCDR_20' ) start [2025-03-08 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634317', 'tblTempVendorCDR_20' ) end [2025-03-08 09:44:18] Production.INFO: ProcessCDR(1,14634317,1,1,2) [2025-03-08 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634317', 'tblTempUsageDetail_20' ) start [2025-03-08 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634317', 'tblTempUsageDetail_20' ) end [2025-03-08 09:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:44:22] Production.INFO: ==20725== Releasing lock... [2025-03-08 09:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:44:22] Production.INFO: 32 MB #Memory Used# [2025-03-08 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:45:05 [end_date_ymd] => 2025-03-08 09:45:05 [RateCDR] => 1 ) [2025-03-08 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:45:05' and `end` < '2025-03-08 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:45:17] Production.INFO: count ==540 [2025-03-08 09:45:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:45:05 - End Time 2025-03-08 09:45:05 [2025-03-08 09:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634322', 'tblTempUsageDetail_20' ) start [2025-03-08 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634322', 'tblTempUsageDetail_20' ) end [2025-03-08 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634322', 'tblTempVendorCDR_20' ) start [2025-03-08 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634322', 'tblTempVendorCDR_20' ) end [2025-03-08 09:45:17] Production.INFO: ProcessCDR(1,14634322,1,1,2) [2025-03-08 09:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634322', 'tblTempUsageDetail_20' ) start [2025-03-08 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634322', 'tblTempUsageDetail_20' ) end [2025-03-08 09:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:45:20] Production.INFO: ==20845== Releasing lock... [2025-03-08 09:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:45:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-08 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:46:05 [end_date_ymd] => 2025-03-08 09:46:05 [RateCDR] => 1 ) [2025-03-08 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:46:05' and `end` < '2025-03-08 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:46:18] Production.INFO: count ==542 [2025-03-08 09:46:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:46:05 - End Time 2025-03-08 09:46:05 [2025-03-08 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634327', 'tblTempUsageDetail_20' ) start [2025-03-08 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634327', 'tblTempUsageDetail_20' ) end [2025-03-08 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634327', 'tblTempVendorCDR_20' ) start [2025-03-08 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634327', 'tblTempVendorCDR_20' ) end [2025-03-08 09:46:18] Production.INFO: ProcessCDR(1,14634327,1,1,2) [2025-03-08 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634327', 'tblTempUsageDetail_20' ) start [2025-03-08 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634327', 'tblTempUsageDetail_20' ) end [2025-03-08 09:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:46:21] Production.INFO: ==20918== Releasing lock... [2025-03-08 09:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:46:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-08 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:47:05 [end_date_ymd] => 2025-03-08 09:47:05 [RateCDR] => 1 ) [2025-03-08 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:47:05' and `end` < '2025-03-08 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:47:17] Production.INFO: count ==557 [2025-03-08 09:47:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:47:05 - End Time 2025-03-08 09:47:05 [2025-03-08 09:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634332', 'tblTempUsageDetail_20' ) start [2025-03-08 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634332', 'tblTempUsageDetail_20' ) end [2025-03-08 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634332', 'tblTempVendorCDR_20' ) start [2025-03-08 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634332', 'tblTempVendorCDR_20' ) end [2025-03-08 09:47:17] Production.INFO: ProcessCDR(1,14634332,1,1,2) [2025-03-08 09:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634332', 'tblTempUsageDetail_20' ) start [2025-03-08 09:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634332', 'tblTempUsageDetail_20' ) end [2025-03-08 09:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:47:20] Production.INFO: ==20995== Releasing lock... [2025-03-08 09:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:47:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-08 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:48:05 [end_date_ymd] => 2025-03-08 09:48:05 [RateCDR] => 1 ) [2025-03-08 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:48:05' and `end` < '2025-03-08 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:48:17] Production.INFO: count ==560 [2025-03-08 09:48:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:48:05 - End Time 2025-03-08 09:48:05 [2025-03-08 09:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634337', 'tblTempUsageDetail_20' ) start [2025-03-08 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634337', 'tblTempUsageDetail_20' ) end [2025-03-08 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634337', 'tblTempVendorCDR_20' ) start [2025-03-08 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634337', 'tblTempVendorCDR_20' ) end [2025-03-08 09:48:17] Production.INFO: ProcessCDR(1,14634337,1,1,2) [2025-03-08 09:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634337', 'tblTempUsageDetail_20' ) start [2025-03-08 09:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634337', 'tblTempUsageDetail_20' ) end [2025-03-08 09:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:48:22] Production.INFO: ==21072== Releasing lock... [2025-03-08 09:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:48:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-08 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:49:05 [end_date_ymd] => 2025-03-08 09:49:05 [RateCDR] => 1 ) [2025-03-08 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:49:05' and `end` < '2025-03-08 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:49:17] Production.INFO: count ==561 [2025-03-08 09:49:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:49:05 - End Time 2025-03-08 09:49:05 [2025-03-08 09:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634342', 'tblTempUsageDetail_20' ) start [2025-03-08 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634342', 'tblTempUsageDetail_20' ) end [2025-03-08 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634342', 'tblTempVendorCDR_20' ) start [2025-03-08 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634342', 'tblTempVendorCDR_20' ) end [2025-03-08 09:49:17] Production.INFO: ProcessCDR(1,14634342,1,1,2) [2025-03-08 09:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634342', 'tblTempUsageDetail_20' ) start [2025-03-08 09:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634342', 'tblTempUsageDetail_20' ) end [2025-03-08 09:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:49:20] Production.INFO: ==21145== Releasing lock... [2025-03-08 09:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:49:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-08 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:50:06 [end_date_ymd] => 2025-03-08 09:50:06 [RateCDR] => 1 ) [2025-03-08 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:50:06' and `end` < '2025-03-08 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:50:18] Production.INFO: count ==571 [2025-03-08 09:50:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:50:06 - End Time 2025-03-08 09:50:06 [2025-03-08 09:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634348', 'tblTempUsageDetail_20' ) start [2025-03-08 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634348', 'tblTempUsageDetail_20' ) end [2025-03-08 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634348', 'tblTempVendorCDR_20' ) start [2025-03-08 09:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634348', 'tblTempVendorCDR_20' ) end [2025-03-08 09:50:18] Production.INFO: ProcessCDR(1,14634348,1,1,2) [2025-03-08 09:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634348', 'tblTempUsageDetail_20' ) start [2025-03-08 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634348', 'tblTempUsageDetail_20' ) end [2025-03-08 09:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:50:22] Production.INFO: ==21223== Releasing lock... [2025-03-08 09:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:50:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-08 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:51:05 [end_date_ymd] => 2025-03-08 09:51:05 [RateCDR] => 1 ) [2025-03-08 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:51:05' and `end` < '2025-03-08 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:51:17] Production.INFO: count ==596 [2025-03-08 09:51:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:51:05 - End Time 2025-03-08 09:51:05 [2025-03-08 09:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634353', 'tblTempUsageDetail_20' ) start [2025-03-08 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634353', 'tblTempUsageDetail_20' ) end [2025-03-08 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634353', 'tblTempVendorCDR_20' ) start [2025-03-08 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634353', 'tblTempVendorCDR_20' ) end [2025-03-08 09:51:17] Production.INFO: ProcessCDR(1,14634353,1,1,2) [2025-03-08 09:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634353', 'tblTempUsageDetail_20' ) start [2025-03-08 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634353', 'tblTempUsageDetail_20' ) end [2025-03-08 09:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:51:22] Production.INFO: ==21296== Releasing lock... [2025-03-08 09:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:51:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-08 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:52:05 [end_date_ymd] => 2025-03-08 09:52:05 [RateCDR] => 1 ) [2025-03-08 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:52:05' and `end` < '2025-03-08 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:52:17] Production.INFO: count ==603 [2025-03-08 09:52:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:52:05 - End Time 2025-03-08 09:52:05 [2025-03-08 09:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634358', 'tblTempUsageDetail_20' ) start [2025-03-08 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634358', 'tblTempUsageDetail_20' ) end [2025-03-08 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634358', 'tblTempVendorCDR_20' ) start [2025-03-08 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634358', 'tblTempVendorCDR_20' ) end [2025-03-08 09:52:17] Production.INFO: ProcessCDR(1,14634358,1,1,2) [2025-03-08 09:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634358', 'tblTempUsageDetail_20' ) start [2025-03-08 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634358', 'tblTempUsageDetail_20' ) end [2025-03-08 09:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:52:21] Production.INFO: ==21369== Releasing lock... [2025-03-08 09:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:52:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-08 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:53:05 [end_date_ymd] => 2025-03-08 09:53:05 [RateCDR] => 1 ) [2025-03-08 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:53:05' and `end` < '2025-03-08 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:53:17] Production.INFO: count ==616 [2025-03-08 09:53:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:53:05 - End Time 2025-03-08 09:53:05 [2025-03-08 09:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634363', 'tblTempUsageDetail_20' ) start [2025-03-08 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634363', 'tblTempUsageDetail_20' ) end [2025-03-08 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634363', 'tblTempVendorCDR_20' ) start [2025-03-08 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634363', 'tblTempVendorCDR_20' ) end [2025-03-08 09:53:17] Production.INFO: ProcessCDR(1,14634363,1,1,2) [2025-03-08 09:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634363', 'tblTempUsageDetail_20' ) start [2025-03-08 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634363', 'tblTempUsageDetail_20' ) end [2025-03-08 09:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:53:22] Production.INFO: ==21443== Releasing lock... [2025-03-08 09:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:53:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-08 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:54:05 [end_date_ymd] => 2025-03-08 09:54:05 [RateCDR] => 1 ) [2025-03-08 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:54:05' and `end` < '2025-03-08 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:54:17] Production.INFO: count ==617 [2025-03-08 09:54:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:54:05 - End Time 2025-03-08 09:54:05 [2025-03-08 09:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634368', 'tblTempUsageDetail_20' ) start [2025-03-08 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634368', 'tblTempUsageDetail_20' ) end [2025-03-08 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634368', 'tblTempVendorCDR_20' ) start [2025-03-08 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634368', 'tblTempVendorCDR_20' ) end [2025-03-08 09:54:17] Production.INFO: ProcessCDR(1,14634368,1,1,2) [2025-03-08 09:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634368', 'tblTempUsageDetail_20' ) start [2025-03-08 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634368', 'tblTempUsageDetail_20' ) end [2025-03-08 09:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:54:22] Production.INFO: ==21513== Releasing lock... [2025-03-08 09:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:54:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:55:06 [end_date_ymd] => 2025-03-08 09:55:06 [RateCDR] => 1 ) [2025-03-08 09:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:55:06' and `end` < '2025-03-08 09:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:55:18] Production.INFO: count ==628 [2025-03-08 09:55:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:55:06 - End Time 2025-03-08 09:55:06 [2025-03-08 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634373', 'tblTempUsageDetail_20' ) start [2025-03-08 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634373', 'tblTempUsageDetail_20' ) end [2025-03-08 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634373', 'tblTempVendorCDR_20' ) start [2025-03-08 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634373', 'tblTempVendorCDR_20' ) end [2025-03-08 09:55:18] Production.INFO: ProcessCDR(1,14634373,1,1,2) [2025-03-08 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634373', 'tblTempUsageDetail_20' ) start [2025-03-08 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634373', 'tblTempUsageDetail_20' ) end [2025-03-08 09:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:55:23] Production.INFO: ==21585== Releasing lock... [2025-03-08 09:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:55:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-08 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:56:05 [end_date_ymd] => 2025-03-08 09:56:05 [RateCDR] => 1 ) [2025-03-08 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:56:05' and `end` < '2025-03-08 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:56:17] Production.INFO: count ==630 [2025-03-08 09:56:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:56:05 - End Time 2025-03-08 09:56:05 [2025-03-08 09:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634378', 'tblTempUsageDetail_20' ) start [2025-03-08 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634378', 'tblTempUsageDetail_20' ) end [2025-03-08 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634378', 'tblTempVendorCDR_20' ) start [2025-03-08 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634378', 'tblTempVendorCDR_20' ) end [2025-03-08 09:56:17] Production.INFO: ProcessCDR(1,14634378,1,1,2) [2025-03-08 09:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634378', 'tblTempUsageDetail_20' ) start [2025-03-08 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634378', 'tblTempUsageDetail_20' ) end [2025-03-08 09:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:56:23] Production.INFO: ==21658== Releasing lock... [2025-03-08 09:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:56:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-08 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:57:05 [end_date_ymd] => 2025-03-08 09:57:05 [RateCDR] => 1 ) [2025-03-08 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:57:05' and `end` < '2025-03-08 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:57:17] Production.INFO: count ==640 [2025-03-08 09:57:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:57:05 - End Time 2025-03-08 09:57:05 [2025-03-08 09:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634383', 'tblTempUsageDetail_20' ) start [2025-03-08 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634383', 'tblTempUsageDetail_20' ) end [2025-03-08 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634383', 'tblTempVendorCDR_20' ) start [2025-03-08 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634383', 'tblTempVendorCDR_20' ) end [2025-03-08 09:57:17] Production.INFO: ProcessCDR(1,14634383,1,1,2) [2025-03-08 09:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634383', 'tblTempUsageDetail_20' ) start [2025-03-08 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634383', 'tblTempUsageDetail_20' ) end [2025-03-08 09:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:57:22] Production.INFO: ==21731== Releasing lock... [2025-03-08 09:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:57:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 09:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:58:04 [end_date_ymd] => 2025-03-08 09:58:04 [RateCDR] => 1 ) [2025-03-08 09:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:58:04' and `end` < '2025-03-08 09:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:58:17] Production.INFO: count ==641 [2025-03-08 09:58:17] Production.ERROR: pbx CDR StartTime 2025-03-08 06:58:04 - End Time 2025-03-08 09:58:04 [2025-03-08 09:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634388', 'tblTempUsageDetail_20' ) start [2025-03-08 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634388', 'tblTempUsageDetail_20' ) end [2025-03-08 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634388', 'tblTempVendorCDR_20' ) start [2025-03-08 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634388', 'tblTempVendorCDR_20' ) end [2025-03-08 09:58:17] Production.INFO: ProcessCDR(1,14634388,1,1,2) [2025-03-08 09:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634388', 'tblTempUsageDetail_20' ) start [2025-03-08 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634388', 'tblTempUsageDetail_20' ) end [2025-03-08 09:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:58:21] Production.INFO: ==21802== Releasing lock... [2025-03-08 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:58:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-08 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 06:59:06 [end_date_ymd] => 2025-03-08 09:59:06 [RateCDR] => 1 ) [2025-03-08 09:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 06:59:06' and `end` < '2025-03-08 09:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 09:59:18] Production.INFO: count ==647 [2025-03-08 09:59:18] Production.ERROR: pbx CDR StartTime 2025-03-08 06:59:06 - End Time 2025-03-08 09:59:06 [2025-03-08 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634393', 'tblTempUsageDetail_20' ) start [2025-03-08 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634393', 'tblTempUsageDetail_20' ) end [2025-03-08 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634393', 'tblTempVendorCDR_20' ) start [2025-03-08 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634393', 'tblTempVendorCDR_20' ) end [2025-03-08 09:59:18] Production.INFO: ProcessCDR(1,14634393,1,1,2) [2025-03-08 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634393', 'tblTempUsageDetail_20' ) start [2025-03-08 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634393', 'tblTempUsageDetail_20' ) end [2025-03-08 09:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 09:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 09:59:23] Production.INFO: ==21873== Releasing lock... [2025-03-08 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 09:59:23] Production.INFO: 33 MB #Memory Used# [2025-03-08 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:00:06 [end_date_ymd] => 2025-03-08 10:00:06 [RateCDR] => 1 ) [2025-03-08 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:00:06' and `end` < '2025-03-08 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:00:18] Production.INFO: count ==649 [2025-03-08 10:00:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:00:06 - End Time 2025-03-08 10:00:06 [2025-03-08 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634398', 'tblTempUsageDetail_20' ) start [2025-03-08 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634398', 'tblTempUsageDetail_20' ) end [2025-03-08 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634398', 'tblTempVendorCDR_20' ) start [2025-03-08 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634398', 'tblTempVendorCDR_20' ) end [2025-03-08 10:00:19] Production.INFO: ProcessCDR(1,14634398,1,1,2) [2025-03-08 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634398', 'tblTempUsageDetail_20' ) start [2025-03-08 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634398', 'tblTempUsageDetail_20' ) end [2025-03-08 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:00:24] Production.INFO: ==21948== Releasing lock... [2025-03-08 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:00:24] Production.INFO: 33 MB #Memory Used# [2025-03-08 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:01:06 [end_date_ymd] => 2025-03-08 10:01:06 [RateCDR] => 1 ) [2025-03-08 10:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:01:06' and `end` < '2025-03-08 10:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:01:18] Production.INFO: count ==669 [2025-03-08 10:01:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:01:06 - End Time 2025-03-08 10:01:06 [2025-03-08 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634404', 'tblTempUsageDetail_20' ) start [2025-03-08 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634404', 'tblTempUsageDetail_20' ) end [2025-03-08 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634404', 'tblTempVendorCDR_20' ) start [2025-03-08 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634404', 'tblTempVendorCDR_20' ) end [2025-03-08 10:01:18] Production.INFO: ProcessCDR(1,14634404,1,1,2) [2025-03-08 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634404', 'tblTempUsageDetail_20' ) start [2025-03-08 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634404', 'tblTempUsageDetail_20' ) end [2025-03-08 10:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:01:21] Production.INFO: ==22075== Releasing lock... [2025-03-08 10:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:01:21] Production.INFO: 34 MB #Memory Used# [2025-03-08 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:02:05 [end_date_ymd] => 2025-03-08 10:02:05 [RateCDR] => 1 ) [2025-03-08 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:02:05' and `end` < '2025-03-08 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:02:17] Production.INFO: count ==671 [2025-03-08 10:02:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:02:05 - End Time 2025-03-08 10:02:05 [2025-03-08 10:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634409', 'tblTempUsageDetail_20' ) start [2025-03-08 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634409', 'tblTempUsageDetail_20' ) end [2025-03-08 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634409', 'tblTempVendorCDR_20' ) start [2025-03-08 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634409', 'tblTempVendorCDR_20' ) end [2025-03-08 10:02:17] Production.INFO: ProcessCDR(1,14634409,1,1,2) [2025-03-08 10:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634409', 'tblTempUsageDetail_20' ) start [2025-03-08 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634409', 'tblTempUsageDetail_20' ) end [2025-03-08 10:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:02:22] Production.INFO: ==22149== Releasing lock... [2025-03-08 10:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:02:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:03:06 [end_date_ymd] => 2025-03-08 10:03:06 [RateCDR] => 1 ) [2025-03-08 10:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:03:06' and `end` < '2025-03-08 10:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:03:18] Production.INFO: count ==681 [2025-03-08 10:03:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:03:06 - End Time 2025-03-08 10:03:06 [2025-03-08 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634414', 'tblTempUsageDetail_20' ) start [2025-03-08 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634414', 'tblTempUsageDetail_20' ) end [2025-03-08 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634414', 'tblTempVendorCDR_20' ) start [2025-03-08 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634414', 'tblTempVendorCDR_20' ) end [2025-03-08 10:03:18] Production.INFO: ProcessCDR(1,14634414,1,1,2) [2025-03-08 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634414', 'tblTempUsageDetail_20' ) start [2025-03-08 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634414', 'tblTempUsageDetail_20' ) end [2025-03-08 10:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:03:21] Production.INFO: ==22226== Releasing lock... [2025-03-08 10:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:03:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:04:05 [end_date_ymd] => 2025-03-08 10:04:05 [RateCDR] => 1 ) [2025-03-08 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:04:05' and `end` < '2025-03-08 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:04:17] Production.INFO: count ==685 [2025-03-08 10:04:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:04:05 - End Time 2025-03-08 10:04:05 [2025-03-08 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634419', 'tblTempUsageDetail_20' ) start [2025-03-08 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634419', 'tblTempUsageDetail_20' ) end [2025-03-08 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634419', 'tblTempVendorCDR_20' ) start [2025-03-08 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634419', 'tblTempVendorCDR_20' ) end [2025-03-08 10:04:18] Production.INFO: ProcessCDR(1,14634419,1,1,2) [2025-03-08 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634419', 'tblTempUsageDetail_20' ) start [2025-03-08 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634419', 'tblTempUsageDetail_20' ) end [2025-03-08 10:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:04:21] Production.INFO: ==22303== Releasing lock... [2025-03-08 10:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:04:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-08 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:05:05 [end_date_ymd] => 2025-03-08 10:05:05 [RateCDR] => 1 ) [2025-03-08 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:05:05' and `end` < '2025-03-08 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:05:17] Production.INFO: count ==692 [2025-03-08 10:05:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:05:05 - End Time 2025-03-08 10:05:05 [2025-03-08 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634424', 'tblTempUsageDetail_20' ) start [2025-03-08 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634424', 'tblTempUsageDetail_20' ) end [2025-03-08 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634424', 'tblTempVendorCDR_20' ) start [2025-03-08 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634424', 'tblTempVendorCDR_20' ) end [2025-03-08 10:05:18] Production.INFO: ProcessCDR(1,14634424,1,1,2) [2025-03-08 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634424', 'tblTempUsageDetail_20' ) start [2025-03-08 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634424', 'tblTempUsageDetail_20' ) end [2025-03-08 10:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:05:21] Production.INFO: ==22382== Releasing lock... [2025-03-08 10:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:05:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:06:05 [end_date_ymd] => 2025-03-08 10:06:05 [RateCDR] => 1 ) [2025-03-08 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:06:05' and `end` < '2025-03-08 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:06:17] Production.INFO: count ==693 [2025-03-08 10:06:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:06:05 - End Time 2025-03-08 10:06:05 [2025-03-08 10:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634429', 'tblTempUsageDetail_20' ) start [2025-03-08 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634429', 'tblTempUsageDetail_20' ) end [2025-03-08 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634429', 'tblTempVendorCDR_20' ) start [2025-03-08 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634429', 'tblTempVendorCDR_20' ) end [2025-03-08 10:06:17] Production.INFO: ProcessCDR(1,14634429,1,1,2) [2025-03-08 10:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634429', 'tblTempUsageDetail_20' ) start [2025-03-08 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634429', 'tblTempUsageDetail_20' ) end [2025-03-08 10:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:06:22] Production.INFO: ==22462== Releasing lock... [2025-03-08 10:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:06:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-08 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:07:06 [end_date_ymd] => 2025-03-08 10:07:06 [RateCDR] => 1 ) [2025-03-08 10:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:07:06' and `end` < '2025-03-08 10:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:07:18] Production.INFO: count ==698 [2025-03-08 10:07:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:07:06 - End Time 2025-03-08 10:07:06 [2025-03-08 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634434', 'tblTempUsageDetail_20' ) start [2025-03-08 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634434', 'tblTempUsageDetail_20' ) end [2025-03-08 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634434', 'tblTempVendorCDR_20' ) start [2025-03-08 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634434', 'tblTempVendorCDR_20' ) end [2025-03-08 10:07:18] Production.INFO: ProcessCDR(1,14634434,1,1,2) [2025-03-08 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634434', 'tblTempUsageDetail_20' ) start [2025-03-08 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634434', 'tblTempUsageDetail_20' ) end [2025-03-08 10:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:07:23] Production.INFO: ==22535== Releasing lock... [2025-03-08 10:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:07:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:08:05 [end_date_ymd] => 2025-03-08 10:08:05 [RateCDR] => 1 ) [2025-03-08 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:08:05' and `end` < '2025-03-08 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:08:17] Production.INFO: count ==705 [2025-03-08 10:08:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:08:05 - End Time 2025-03-08 10:08:05 [2025-03-08 10:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634439', 'tblTempUsageDetail_20' ) start [2025-03-08 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634439', 'tblTempUsageDetail_20' ) end [2025-03-08 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634439', 'tblTempVendorCDR_20' ) start [2025-03-08 10:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634439', 'tblTempVendorCDR_20' ) end [2025-03-08 10:08:17] Production.INFO: ProcessCDR(1,14634439,1,1,2) [2025-03-08 10:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634439', 'tblTempUsageDetail_20' ) start [2025-03-08 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634439', 'tblTempUsageDetail_20' ) end [2025-03-08 10:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:08:22] Production.INFO: ==22613== Releasing lock... [2025-03-08 10:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:08:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:09:05 [end_date_ymd] => 2025-03-08 10:09:05 [RateCDR] => 1 ) [2025-03-08 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:09:05' and `end` < '2025-03-08 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:09:17] Production.INFO: count ==703 [2025-03-08 10:09:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:09:05 - End Time 2025-03-08 10:09:05 [2025-03-08 10:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634444', 'tblTempUsageDetail_20' ) start [2025-03-08 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634444', 'tblTempUsageDetail_20' ) end [2025-03-08 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634444', 'tblTempVendorCDR_20' ) start [2025-03-08 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634444', 'tblTempVendorCDR_20' ) end [2025-03-08 10:09:18] Production.INFO: ProcessCDR(1,14634444,1,1,2) [2025-03-08 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634444', 'tblTempUsageDetail_20' ) start [2025-03-08 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634444', 'tblTempUsageDetail_20' ) end [2025-03-08 10:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:09:22] Production.INFO: ==22691== Releasing lock... [2025-03-08 10:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:09:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:10:05 [end_date_ymd] => 2025-03-08 10:10:05 [RateCDR] => 1 ) [2025-03-08 10:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:10:05' and `end` < '2025-03-08 10:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:10:18] Production.INFO: count ==719 [2025-03-08 10:10:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:10:05 - End Time 2025-03-08 10:10:05 [2025-03-08 10:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634450', 'tblTempUsageDetail_20' ) start [2025-03-08 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634450', 'tblTempUsageDetail_20' ) end [2025-03-08 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634450', 'tblTempVendorCDR_20' ) start [2025-03-08 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634450', 'tblTempVendorCDR_20' ) end [2025-03-08 10:10:18] Production.INFO: ProcessCDR(1,14634450,1,1,2) [2025-03-08 10:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634450', 'tblTempUsageDetail_20' ) start [2025-03-08 10:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634450', 'tblTempUsageDetail_20' ) end [2025-03-08 10:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:10:23] Production.INFO: ==22769== Releasing lock... [2025-03-08 10:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:10:23] Production.INFO: 34 MB #Memory Used# [2025-03-08 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:11:05 [end_date_ymd] => 2025-03-08 10:11:05 [RateCDR] => 1 ) [2025-03-08 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:11:05' and `end` < '2025-03-08 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:11:17] Production.INFO: count ==750 [2025-03-08 10:11:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:11:05 - End Time 2025-03-08 10:11:05 [2025-03-08 10:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634455', 'tblTempUsageDetail_20' ) start [2025-03-08 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634455', 'tblTempUsageDetail_20' ) end [2025-03-08 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634455', 'tblTempVendorCDR_20' ) start [2025-03-08 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634455', 'tblTempVendorCDR_20' ) end [2025-03-08 10:11:17] Production.INFO: ProcessCDR(1,14634455,1,1,2) [2025-03-08 10:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634455', 'tblTempUsageDetail_20' ) start [2025-03-08 10:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634455', 'tblTempUsageDetail_20' ) end [2025-03-08 10:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:11:22] Production.INFO: ==22847== Releasing lock... [2025-03-08 10:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:11:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-08 10:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:12:04 [end_date_ymd] => 2025-03-08 10:12:04 [RateCDR] => 1 ) [2025-03-08 10:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:12:04' and `end` < '2025-03-08 10:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:12:17] Production.INFO: count ==755 [2025-03-08 10:12:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:12:04 - End Time 2025-03-08 10:12:04 [2025-03-08 10:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634458', 'tblTempUsageDetail_20' ) start [2025-03-08 10:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634458', 'tblTempUsageDetail_20' ) end [2025-03-08 10:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634458', 'tblTempVendorCDR_20' ) start [2025-03-08 10:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634458', 'tblTempVendorCDR_20' ) end [2025-03-08 10:12:17] Production.INFO: ProcessCDR(1,14634458,1,1,2) [2025-03-08 10:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634458', 'tblTempUsageDetail_20' ) start [2025-03-08 10:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634458', 'tblTempUsageDetail_20' ) end [2025-03-08 10:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:12:20] Production.INFO: ==22922== Releasing lock... [2025-03-08 10:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:12:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-08 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:13:05 [end_date_ymd] => 2025-03-08 10:13:05 [RateCDR] => 1 ) [2025-03-08 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:13:05' and `end` < '2025-03-08 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:13:17] Production.INFO: count ==777 [2025-03-08 10:13:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:13:05 - End Time 2025-03-08 10:13:05 [2025-03-08 10:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634465', 'tblTempUsageDetail_20' ) start [2025-03-08 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634465', 'tblTempUsageDetail_20' ) end [2025-03-08 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634465', 'tblTempVendorCDR_20' ) start [2025-03-08 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634465', 'tblTempVendorCDR_20' ) end [2025-03-08 10:13:17] Production.INFO: ProcessCDR(1,14634465,1,1,2) [2025-03-08 10:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634465', 'tblTempUsageDetail_20' ) start [2025-03-08 10:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634465', 'tblTempUsageDetail_20' ) end [2025-03-08 10:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:13:21] Production.INFO: ==22996== Releasing lock... [2025-03-08 10:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:13:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:14:05 [end_date_ymd] => 2025-03-08 10:14:05 [RateCDR] => 1 ) [2025-03-08 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:14:05' and `end` < '2025-03-08 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:14:17] Production.INFO: count ==809 [2025-03-08 10:14:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:14:05 - End Time 2025-03-08 10:14:05 [2025-03-08 10:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634470', 'tblTempUsageDetail_20' ) start [2025-03-08 10:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634470', 'tblTempUsageDetail_20' ) end [2025-03-08 10:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634470', 'tblTempVendorCDR_20' ) start [2025-03-08 10:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634470', 'tblTempVendorCDR_20' ) end [2025-03-08 10:14:17] Production.INFO: ProcessCDR(1,14634470,1,1,2) [2025-03-08 10:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634470', 'tblTempUsageDetail_20' ) start [2025-03-08 10:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634470', 'tblTempUsageDetail_20' ) end [2025-03-08 10:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:14:21] Production.INFO: ==23070== Releasing lock... [2025-03-08 10:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:14:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:15:05 [end_date_ymd] => 2025-03-08 10:15:05 [RateCDR] => 1 ) [2025-03-08 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:15:05' and `end` < '2025-03-08 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:15:17] Production.INFO: count ==808 [2025-03-08 10:15:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:15:05 - End Time 2025-03-08 10:15:05 [2025-03-08 10:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634475', 'tblTempUsageDetail_20' ) start [2025-03-08 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634475', 'tblTempUsageDetail_20' ) end [2025-03-08 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634475', 'tblTempVendorCDR_20' ) start [2025-03-08 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634475', 'tblTempVendorCDR_20' ) end [2025-03-08 10:15:17] Production.INFO: ProcessCDR(1,14634475,1,1,2) [2025-03-08 10:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634475', 'tblTempUsageDetail_20' ) start [2025-03-08 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634475', 'tblTempUsageDetail_20' ) end [2025-03-08 10:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:15:21] Production.INFO: ==23145== Releasing lock... [2025-03-08 10:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:15:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:16:05 [end_date_ymd] => 2025-03-08 10:16:05 [RateCDR] => 1 ) [2025-03-08 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:16:05' and `end` < '2025-03-08 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:16:17] Production.INFO: count ==807 [2025-03-08 10:16:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:16:05 - End Time 2025-03-08 10:16:05 [2025-03-08 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634480', 'tblTempUsageDetail_20' ) start [2025-03-08 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634480', 'tblTempUsageDetail_20' ) end [2025-03-08 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634480', 'tblTempVendorCDR_20' ) start [2025-03-08 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634480', 'tblTempVendorCDR_20' ) end [2025-03-08 10:16:18] Production.INFO: ProcessCDR(1,14634480,1,1,2) [2025-03-08 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634480', 'tblTempUsageDetail_20' ) start [2025-03-08 10:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634480', 'tblTempUsageDetail_20' ) end [2025-03-08 10:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:16:21] Production.INFO: ==23258== Releasing lock... [2025-03-08 10:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:16:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:17:05 [end_date_ymd] => 2025-03-08 10:17:05 [RateCDR] => 1 ) [2025-03-08 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:17:05' and `end` < '2025-03-08 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:17:17] Production.INFO: count ==807 [2025-03-08 10:17:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:17:05 - End Time 2025-03-08 10:17:05 [2025-03-08 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634485', 'tblTempUsageDetail_20' ) start [2025-03-08 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634485', 'tblTempUsageDetail_20' ) end [2025-03-08 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634485', 'tblTempVendorCDR_20' ) start [2025-03-08 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634485', 'tblTempVendorCDR_20' ) end [2025-03-08 10:17:18] Production.INFO: ProcessCDR(1,14634485,1,1,2) [2025-03-08 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634485', 'tblTempUsageDetail_20' ) start [2025-03-08 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634485', 'tblTempUsageDetail_20' ) end [2025-03-08 10:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:17:23] Production.INFO: ==23336== Releasing lock... [2025-03-08 10:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:17:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:18:06 [end_date_ymd] => 2025-03-08 10:18:06 [RateCDR] => 1 ) [2025-03-08 10:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:18:06' and `end` < '2025-03-08 10:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:18:18] Production.INFO: count ==810 [2025-03-08 10:18:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:18:06 - End Time 2025-03-08 10:18:06 [2025-03-08 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634490', 'tblTempUsageDetail_20' ) start [2025-03-08 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634490', 'tblTempUsageDetail_20' ) end [2025-03-08 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634490', 'tblTempVendorCDR_20' ) start [2025-03-08 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634490', 'tblTempVendorCDR_20' ) end [2025-03-08 10:18:18] Production.INFO: ProcessCDR(1,14634490,1,1,2) [2025-03-08 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634490', 'tblTempUsageDetail_20' ) start [2025-03-08 10:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634490', 'tblTempUsageDetail_20' ) end [2025-03-08 10:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:18:22] Production.INFO: ==23410== Releasing lock... [2025-03-08 10:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:18:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:19:05 [end_date_ymd] => 2025-03-08 10:19:05 [RateCDR] => 1 ) [2025-03-08 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:19:05' and `end` < '2025-03-08 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:19:17] Production.INFO: count ==817 [2025-03-08 10:19:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:19:05 - End Time 2025-03-08 10:19:05 [2025-03-08 10:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634495', 'tblTempUsageDetail_20' ) start [2025-03-08 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634495', 'tblTempUsageDetail_20' ) end [2025-03-08 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634495', 'tblTempVendorCDR_20' ) start [2025-03-08 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634495', 'tblTempVendorCDR_20' ) end [2025-03-08 10:19:17] Production.INFO: ProcessCDR(1,14634495,1,1,2) [2025-03-08 10:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634495', 'tblTempUsageDetail_20' ) start [2025-03-08 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634495', 'tblTempUsageDetail_20' ) end [2025-03-08 10:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:19:21] Production.INFO: ==23484== Releasing lock... [2025-03-08 10:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:19:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:20:06 [end_date_ymd] => 2025-03-08 10:20:06 [RateCDR] => 1 ) [2025-03-08 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:20:06' and `end` < '2025-03-08 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:20:18] Production.INFO: count ==829 [2025-03-08 10:20:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:20:06 - End Time 2025-03-08 10:20:06 [2025-03-08 10:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634501', 'tblTempUsageDetail_20' ) start [2025-03-08 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634501', 'tblTempUsageDetail_20' ) end [2025-03-08 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634501', 'tblTempVendorCDR_20' ) start [2025-03-08 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634501', 'tblTempVendorCDR_20' ) end [2025-03-08 10:20:18] Production.INFO: ProcessCDR(1,14634501,1,1,2) [2025-03-08 10:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634501', 'tblTempUsageDetail_20' ) start [2025-03-08 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634501', 'tblTempUsageDetail_20' ) end [2025-03-08 10:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:20:22] Production.INFO: ==23564== Releasing lock... [2025-03-08 10:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:20:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:21:05 [end_date_ymd] => 2025-03-08 10:21:05 [RateCDR] => 1 ) [2025-03-08 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:21:05' and `end` < '2025-03-08 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:21:18] Production.INFO: count ==873 [2025-03-08 10:21:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:21:05 - End Time 2025-03-08 10:21:05 [2025-03-08 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634506', 'tblTempUsageDetail_20' ) start [2025-03-08 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634506', 'tblTempUsageDetail_20' ) end [2025-03-08 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634506', 'tblTempVendorCDR_20' ) start [2025-03-08 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634506', 'tblTempVendorCDR_20' ) end [2025-03-08 10:21:18] Production.INFO: ProcessCDR(1,14634506,1,1,2) [2025-03-08 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634506', 'tblTempUsageDetail_20' ) start [2025-03-08 10:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634506', 'tblTempUsageDetail_20' ) end [2025-03-08 10:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:21:22] Production.INFO: ==23642== Releasing lock... [2025-03-08 10:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:21:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:22:05 [end_date_ymd] => 2025-03-08 10:22:05 [RateCDR] => 1 ) [2025-03-08 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:22:05' and `end` < '2025-03-08 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:22:17] Production.INFO: count ==873 [2025-03-08 10:22:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:22:05 - End Time 2025-03-08 10:22:05 [2025-03-08 10:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634511', 'tblTempUsageDetail_20' ) start [2025-03-08 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634511', 'tblTempUsageDetail_20' ) end [2025-03-08 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634511', 'tblTempVendorCDR_20' ) start [2025-03-08 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634511', 'tblTempVendorCDR_20' ) end [2025-03-08 10:22:17] Production.INFO: ProcessCDR(1,14634511,1,1,2) [2025-03-08 10:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634511', 'tblTempUsageDetail_20' ) start [2025-03-08 10:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634511', 'tblTempUsageDetail_20' ) end [2025-03-08 10:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:22:20] Production.INFO: ==23716== Releasing lock... [2025-03-08 10:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:22:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:23:05 [end_date_ymd] => 2025-03-08 10:23:05 [RateCDR] => 1 ) [2025-03-08 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:23:05' and `end` < '2025-03-08 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:23:17] Production.INFO: count ==873 [2025-03-08 10:23:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:23:05 - End Time 2025-03-08 10:23:05 [2025-03-08 10:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634516', 'tblTempUsageDetail_20' ) start [2025-03-08 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634516', 'tblTempUsageDetail_20' ) end [2025-03-08 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634516', 'tblTempVendorCDR_20' ) start [2025-03-08 10:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634516', 'tblTempVendorCDR_20' ) end [2025-03-08 10:23:18] Production.INFO: ProcessCDR(1,14634516,1,1,2) [2025-03-08 10:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634516', 'tblTempUsageDetail_20' ) start [2025-03-08 10:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634516', 'tblTempUsageDetail_20' ) end [2025-03-08 10:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:23:21] Production.INFO: ==23790== Releasing lock... [2025-03-08 10:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:23:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-08 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:24:05 [end_date_ymd] => 2025-03-08 10:24:05 [RateCDR] => 1 ) [2025-03-08 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:24:05' and `end` < '2025-03-08 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:24:17] Production.INFO: count ==872 [2025-03-08 10:24:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:24:05 - End Time 2025-03-08 10:24:05 [2025-03-08 10:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634521', 'tblTempUsageDetail_20' ) start [2025-03-08 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634521', 'tblTempUsageDetail_20' ) end [2025-03-08 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634521', 'tblTempVendorCDR_20' ) start [2025-03-08 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634521', 'tblTempVendorCDR_20' ) end [2025-03-08 10:24:17] Production.INFO: ProcessCDR(1,14634521,1,1,2) [2025-03-08 10:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634521', 'tblTempUsageDetail_20' ) start [2025-03-08 10:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634521', 'tblTempUsageDetail_20' ) end [2025-03-08 10:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:24:21] Production.INFO: ==23866== Releasing lock... [2025-03-08 10:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:24:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:25:05 [end_date_ymd] => 2025-03-08 10:25:05 [RateCDR] => 1 ) [2025-03-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-03-08 07:25:05' and `end` < '2025-03-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-03-08 10:25:17] Production.INFO: count ==875 [2025-03-08 10:25:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:25:05 - End Time 2025-03-08 10:25:05 [2025-03-08 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634526', 'tblTempUsageDetail_20' ) start [2025-03-08 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634526', 'tblTempUsageDetail_20' ) end [2025-03-08 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634526', 'tblTempVendorCDR_20' ) start [2025-03-08 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634526', 'tblTempVendorCDR_20' ) end [2025-03-08 10:25:17] Production.INFO: ProcessCDR(1,14634526,1,1,2) [2025-03-08 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634526', 'tblTempUsageDetail_20' ) start [2025-03-08 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634526', 'tblTempUsageDetail_20' ) end [2025-03-08 10:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:25:22] Production.INFO: ==23938== Releasing lock... [2025-03-08 10:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:25:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:26:05 [end_date_ymd] => 2025-03-08 10:26:05 [RateCDR] => 1 ) [2025-03-08 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:26:05' and `end` < '2025-03-08 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:26:18] Production.INFO: count ==876 [2025-03-08 10:26:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:26:05 - End Time 2025-03-08 10:26:05 [2025-03-08 10:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634531', 'tblTempUsageDetail_20' ) start [2025-03-08 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634531', 'tblTempUsageDetail_20' ) end [2025-03-08 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634531', 'tblTempVendorCDR_20' ) start [2025-03-08 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634531', 'tblTempVendorCDR_20' ) end [2025-03-08 10:26:18] Production.INFO: ProcessCDR(1,14634531,1,1,2) [2025-03-08 10:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634531', 'tblTempUsageDetail_20' ) start [2025-03-08 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634531', 'tblTempUsageDetail_20' ) end [2025-03-08 10:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:26:22] Production.INFO: ==24014== Releasing lock... [2025-03-08 10:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:26:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:27:05 [end_date_ymd] => 2025-03-08 10:27:05 [RateCDR] => 1 ) [2025-03-08 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:27:05' and `end` < '2025-03-08 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:27:17] Production.INFO: count ==881 [2025-03-08 10:27:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:27:05 - End Time 2025-03-08 10:27:05 [2025-03-08 10:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634536', 'tblTempUsageDetail_20' ) start [2025-03-08 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634536', 'tblTempUsageDetail_20' ) end [2025-03-08 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634536', 'tblTempVendorCDR_20' ) start [2025-03-08 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634536', 'tblTempVendorCDR_20' ) end [2025-03-08 10:27:17] Production.INFO: ProcessCDR(1,14634536,1,1,2) [2025-03-08 10:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634536', 'tblTempUsageDetail_20' ) start [2025-03-08 10:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634536', 'tblTempUsageDetail_20' ) end [2025-03-08 10:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:27:20] Production.INFO: ==24089== Releasing lock... [2025-03-08 10:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:27:20] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:28:05 [end_date_ymd] => 2025-03-08 10:28:05 [RateCDR] => 1 ) [2025-03-08 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:28:05' and `end` < '2025-03-08 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:28:17] Production.INFO: count ==881 [2025-03-08 10:28:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:28:05 - End Time 2025-03-08 10:28:05 [2025-03-08 10:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634541', 'tblTempUsageDetail_20' ) start [2025-03-08 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634541', 'tblTempUsageDetail_20' ) end [2025-03-08 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634541', 'tblTempVendorCDR_20' ) start [2025-03-08 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634541', 'tblTempVendorCDR_20' ) end [2025-03-08 10:28:18] Production.INFO: ProcessCDR(1,14634541,1,1,2) [2025-03-08 10:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634541', 'tblTempUsageDetail_20' ) start [2025-03-08 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634541', 'tblTempUsageDetail_20' ) end [2025-03-08 10:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:28:21] Production.INFO: ==24164== Releasing lock... [2025-03-08 10:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:28:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-08 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:29:05 [end_date_ymd] => 2025-03-08 10:29:05 [RateCDR] => 1 ) [2025-03-08 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:29:05' and `end` < '2025-03-08 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:29:17] Production.INFO: count ==895 [2025-03-08 10:29:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:29:05 - End Time 2025-03-08 10:29:05 [2025-03-08 10:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634546', 'tblTempUsageDetail_20' ) start [2025-03-08 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634546', 'tblTempUsageDetail_20' ) end [2025-03-08 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634546', 'tblTempVendorCDR_20' ) start [2025-03-08 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634546', 'tblTempVendorCDR_20' ) end [2025-03-08 10:29:17] Production.INFO: ProcessCDR(1,14634546,1,1,2) [2025-03-08 10:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634546', 'tblTempUsageDetail_20' ) start [2025-03-08 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634546', 'tblTempUsageDetail_20' ) end [2025-03-08 10:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:29:21] Production.INFO: ==24246== Releasing lock... [2025-03-08 10:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:29:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:30:06 [end_date_ymd] => 2025-03-08 10:30:06 [RateCDR] => 1 ) [2025-03-08 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:30:06' and `end` < '2025-03-08 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:30:18] Production.INFO: count ==919 [2025-03-08 10:30:19] Production.ERROR: pbx CDR StartTime 2025-03-08 07:30:06 - End Time 2025-03-08 10:30:06 [2025-03-08 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634552', 'tblTempUsageDetail_20' ) start [2025-03-08 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634552', 'tblTempUsageDetail_20' ) end [2025-03-08 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634552', 'tblTempVendorCDR_20' ) start [2025-03-08 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634552', 'tblTempVendorCDR_20' ) end [2025-03-08 10:30:19] Production.INFO: ProcessCDR(1,14634552,1,1,2) [2025-03-08 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634552', 'tblTempUsageDetail_20' ) start [2025-03-08 10:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634552', 'tblTempUsageDetail_20' ) end [2025-03-08 10:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:30:24] Production.INFO: ==24322== Releasing lock... [2025-03-08 10:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:30:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-08 10:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:31:04 [end_date_ymd] => 2025-03-08 10:31:04 [RateCDR] => 1 ) [2025-03-08 10:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:31:04' and `end` < '2025-03-08 10:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:31:16] Production.INFO: count ==974 [2025-03-08 10:31:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:31:04 - End Time 2025-03-08 10:31:04 [2025-03-08 10:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634557', 'tblTempUsageDetail_20' ) start [2025-03-08 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634557', 'tblTempUsageDetail_20' ) end [2025-03-08 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634557', 'tblTempVendorCDR_20' ) start [2025-03-08 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634557', 'tblTempVendorCDR_20' ) end [2025-03-08 10:31:17] Production.INFO: ProcessCDR(1,14634557,1,1,2) [2025-03-08 10:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634557', 'tblTempUsageDetail_20' ) start [2025-03-08 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634557', 'tblTempUsageDetail_20' ) end [2025-03-08 10:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:31:22] Production.INFO: ==24398== Releasing lock... [2025-03-08 10:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:31:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-08 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:32:05 [end_date_ymd] => 2025-03-08 10:32:05 [RateCDR] => 1 ) [2025-03-08 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:32:05' and `end` < '2025-03-08 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:32:17] Production.INFO: count ==975 [2025-03-08 10:32:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:32:05 - End Time 2025-03-08 10:32:05 [2025-03-08 10:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634562', 'tblTempUsageDetail_20' ) start [2025-03-08 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634562', 'tblTempUsageDetail_20' ) end [2025-03-08 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634562', 'tblTempVendorCDR_20' ) start [2025-03-08 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634562', 'tblTempVendorCDR_20' ) end [2025-03-08 10:32:18] Production.INFO: ProcessCDR(1,14634562,1,1,2) [2025-03-08 10:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634562', 'tblTempUsageDetail_20' ) start [2025-03-08 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634562', 'tblTempUsageDetail_20' ) end [2025-03-08 10:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:32:23] Production.INFO: ==24511== Releasing lock... [2025-03-08 10:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:32:23] Production.INFO: 35 MB #Memory Used# [2025-03-08 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:33:05 [end_date_ymd] => 2025-03-08 10:33:05 [RateCDR] => 1 ) [2025-03-08 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:33:05' and `end` < '2025-03-08 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:33:17] Production.INFO: count ==978 [2025-03-08 10:33:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:33:05 - End Time 2025-03-08 10:33:05 [2025-03-08 10:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634567', 'tblTempUsageDetail_20' ) start [2025-03-08 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634567', 'tblTempUsageDetail_20' ) end [2025-03-08 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634567', 'tblTempVendorCDR_20' ) start [2025-03-08 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634567', 'tblTempVendorCDR_20' ) end [2025-03-08 10:33:17] Production.INFO: ProcessCDR(1,14634567,1,1,2) [2025-03-08 10:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634567', 'tblTempUsageDetail_20' ) start [2025-03-08 10:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634567', 'tblTempUsageDetail_20' ) end [2025-03-08 10:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:33:21] Production.INFO: ==24586== Releasing lock... [2025-03-08 10:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:33:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-08 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:34:05 [end_date_ymd] => 2025-03-08 10:34:05 [RateCDR] => 1 ) [2025-03-08 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:34:05' and `end` < '2025-03-08 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:34:17] Production.INFO: count ==991 [2025-03-08 10:34:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:34:05 - End Time 2025-03-08 10:34:05 [2025-03-08 10:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634572', 'tblTempUsageDetail_20' ) start [2025-03-08 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634572', 'tblTempUsageDetail_20' ) end [2025-03-08 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634572', 'tblTempVendorCDR_20' ) start [2025-03-08 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634572', 'tblTempVendorCDR_20' ) end [2025-03-08 10:34:18] Production.INFO: ProcessCDR(1,14634572,1,1,2) [2025-03-08 10:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634572', 'tblTempUsageDetail_20' ) start [2025-03-08 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634572', 'tblTempUsageDetail_20' ) end [2025-03-08 10:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:34:21] Production.INFO: ==24663== Releasing lock... [2025-03-08 10:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:34:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-08 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:35:06 [end_date_ymd] => 2025-03-08 10:35:06 [RateCDR] => 1 ) [2025-03-08 10:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:35:06' and `end` < '2025-03-08 10:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:35:18] Production.INFO: count ==1000 [2025-03-08 10:35:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:35:06 - End Time 2025-03-08 10:35:06 [2025-03-08 10:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634577', 'tblTempUsageDetail_20' ) start [2025-03-08 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634577', 'tblTempUsageDetail_20' ) end [2025-03-08 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634577', 'tblTempVendorCDR_20' ) start [2025-03-08 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634577', 'tblTempVendorCDR_20' ) end [2025-03-08 10:35:18] Production.INFO: ProcessCDR(1,14634577,1,1,2) [2025-03-08 10:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634577', 'tblTempUsageDetail_20' ) start [2025-03-08 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634577', 'tblTempUsageDetail_20' ) end [2025-03-08 10:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:35:21] Production.INFO: ==24741== Releasing lock... [2025-03-08 10:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:35:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-08 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:36:05 [end_date_ymd] => 2025-03-08 10:36:05 [RateCDR] => 1 ) [2025-03-08 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:36:05' and `end` < '2025-03-08 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:36:17] Production.INFO: count ==1000 [2025-03-08 10:36:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:36:05 - End Time 2025-03-08 10:36:05 [2025-03-08 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634582', 'tblTempUsageDetail_20' ) start [2025-03-08 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634582', 'tblTempUsageDetail_20' ) end [2025-03-08 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634582', 'tblTempVendorCDR_20' ) start [2025-03-08 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634582', 'tblTempVendorCDR_20' ) end [2025-03-08 10:36:18] Production.INFO: ProcessCDR(1,14634582,1,1,2) [2025-03-08 10:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634582', 'tblTempUsageDetail_20' ) start [2025-03-08 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634582', 'tblTempUsageDetail_20' ) end [2025-03-08 10:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:36:21] Production.INFO: ==24817== Releasing lock... [2025-03-08 10:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:36:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-08 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:37:05 [end_date_ymd] => 2025-03-08 10:37:05 [RateCDR] => 1 ) [2025-03-08 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:37:05' and `end` < '2025-03-08 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:37:18] Production.INFO: count ==1002 [2025-03-08 10:37:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:37:05 - End Time 2025-03-08 10:37:05 [2025-03-08 10:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634587', 'tblTempUsageDetail_20' ) start [2025-03-08 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634587', 'tblTempUsageDetail_20' ) end [2025-03-08 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634587', 'tblTempVendorCDR_20' ) start [2025-03-08 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634587', 'tblTempVendorCDR_20' ) end [2025-03-08 10:37:18] Production.INFO: ProcessCDR(1,14634587,1,1,2) [2025-03-08 10:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634587', 'tblTempUsageDetail_20' ) start [2025-03-08 10:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634587', 'tblTempUsageDetail_20' ) end [2025-03-08 10:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:37:21] Production.INFO: ==24892== Releasing lock... [2025-03-08 10:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:37:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-08 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:38:05 [end_date_ymd] => 2025-03-08 10:38:05 [RateCDR] => 1 ) [2025-03-08 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:38:05' and `end` < '2025-03-08 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:38:17] Production.INFO: count ==1005 [2025-03-08 10:38:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:38:05 - End Time 2025-03-08 10:38:05 [2025-03-08 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634592', 'tblTempUsageDetail_20' ) start [2025-03-08 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634592', 'tblTempUsageDetail_20' ) end [2025-03-08 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634592', 'tblTempVendorCDR_20' ) start [2025-03-08 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634592', 'tblTempVendorCDR_20' ) end [2025-03-08 10:38:18] Production.INFO: ProcessCDR(1,14634592,1,1,2) [2025-03-08 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634592', 'tblTempUsageDetail_20' ) start [2025-03-08 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634592', 'tblTempUsageDetail_20' ) end [2025-03-08 10:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:38:21] Production.INFO: ==24966== Releasing lock... [2025-03-08 10:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:38:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-08 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:39:05 [end_date_ymd] => 2025-03-08 10:39:05 [RateCDR] => 1 ) [2025-03-08 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:39:05' and `end` < '2025-03-08 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:39:17] Production.INFO: count ==1011 [2025-03-08 10:39:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:39:05 - End Time 2025-03-08 10:39:05 [2025-03-08 10:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634597', 'tblTempUsageDetail_20' ) start [2025-03-08 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634597', 'tblTempUsageDetail_20' ) end [2025-03-08 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634597', 'tblTempVendorCDR_20' ) start [2025-03-08 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634597', 'tblTempVendorCDR_20' ) end [2025-03-08 10:39:17] Production.INFO: ProcessCDR(1,14634597,1,1,2) [2025-03-08 10:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634597', 'tblTempUsageDetail_20' ) start [2025-03-08 10:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634597', 'tblTempUsageDetail_20' ) end [2025-03-08 10:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:39:21] Production.INFO: ==25035== Releasing lock... [2025-03-08 10:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:39:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:40:05 [end_date_ymd] => 2025-03-08 10:40:05 [RateCDR] => 1 ) [2025-03-08 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:40:05' and `end` < '2025-03-08 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:40:17] Production.INFO: count ==1012 [2025-03-08 10:40:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:40:05 - End Time 2025-03-08 10:40:05 [2025-03-08 10:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634602', 'tblTempUsageDetail_20' ) start [2025-03-08 10:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634602', 'tblTempUsageDetail_20' ) end [2025-03-08 10:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634602', 'tblTempVendorCDR_20' ) start [2025-03-08 10:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634602', 'tblTempVendorCDR_20' ) end [2025-03-08 10:40:17] Production.INFO: ProcessCDR(1,14634602,1,1,2) [2025-03-08 10:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634602', 'tblTempUsageDetail_20' ) start [2025-03-08 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634602', 'tblTempUsageDetail_20' ) end [2025-03-08 10:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:40:22] Production.INFO: ==25107== Releasing lock... [2025-03-08 10:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:40:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-08 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:41:05 [end_date_ymd] => 2025-03-08 10:41:05 [RateCDR] => 1 ) [2025-03-08 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:41:05' and `end` < '2025-03-08 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:41:17] Production.INFO: count ==1028 [2025-03-08 10:41:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:41:05 - End Time 2025-03-08 10:41:05 [2025-03-08 10:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634608', 'tblTempUsageDetail_20' ) start [2025-03-08 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634608', 'tblTempUsageDetail_20' ) end [2025-03-08 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634608', 'tblTempVendorCDR_20' ) start [2025-03-08 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634608', 'tblTempVendorCDR_20' ) end [2025-03-08 10:41:18] Production.INFO: ProcessCDR(1,14634608,1,1,2) [2025-03-08 10:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634608', 'tblTempUsageDetail_20' ) start [2025-03-08 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634608', 'tblTempUsageDetail_20' ) end [2025-03-08 10:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:41:21] Production.INFO: ==25184== Releasing lock... [2025-03-08 10:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:41:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-08 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:42:05 [end_date_ymd] => 2025-03-08 10:42:05 [RateCDR] => 1 ) [2025-03-08 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:42:05' and `end` < '2025-03-08 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:42:17] Production.INFO: count ==1029 [2025-03-08 10:42:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:42:05 - End Time 2025-03-08 10:42:05 [2025-03-08 10:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634613', 'tblTempUsageDetail_20' ) start [2025-03-08 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634613', 'tblTempUsageDetail_20' ) end [2025-03-08 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634613', 'tblTempVendorCDR_20' ) start [2025-03-08 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634613', 'tblTempVendorCDR_20' ) end [2025-03-08 10:42:18] Production.INFO: ProcessCDR(1,14634613,1,1,2) [2025-03-08 10:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634613', 'tblTempUsageDetail_20' ) start [2025-03-08 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634613', 'tblTempUsageDetail_20' ) end [2025-03-08 10:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:42:22] Production.INFO: ==25257== Releasing lock... [2025-03-08 10:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:42:22] Production.INFO: 36 MB #Memory Used# [2025-03-08 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:43:05 [end_date_ymd] => 2025-03-08 10:43:05 [RateCDR] => 1 ) [2025-03-08 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:43:05' and `end` < '2025-03-08 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:43:17] Production.INFO: count ==1031 [2025-03-08 10:43:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:43:05 - End Time 2025-03-08 10:43:05 [2025-03-08 10:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634618', 'tblTempUsageDetail_20' ) start [2025-03-08 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634618', 'tblTempUsageDetail_20' ) end [2025-03-08 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634618', 'tblTempVendorCDR_20' ) start [2025-03-08 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634618', 'tblTempVendorCDR_20' ) end [2025-03-08 10:43:18] Production.INFO: ProcessCDR(1,14634618,1,1,2) [2025-03-08 10:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634618', 'tblTempUsageDetail_20' ) start [2025-03-08 10:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634618', 'tblTempUsageDetail_20' ) end [2025-03-08 10:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:43:22] Production.INFO: ==25330== Releasing lock... [2025-03-08 10:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:43:22] Production.INFO: 36 MB #Memory Used# [2025-03-08 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:44:05 [end_date_ymd] => 2025-03-08 10:44:05 [RateCDR] => 1 ) [2025-03-08 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:44:05' and `end` < '2025-03-08 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:44:17] Production.INFO: count ==1032 [2025-03-08 10:44:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:44:05 - End Time 2025-03-08 10:44:05 [2025-03-08 10:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634623', 'tblTempUsageDetail_20' ) start [2025-03-08 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634623', 'tblTempUsageDetail_20' ) end [2025-03-08 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634623', 'tblTempVendorCDR_20' ) start [2025-03-08 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634623', 'tblTempVendorCDR_20' ) end [2025-03-08 10:44:17] Production.INFO: ProcessCDR(1,14634623,1,1,2) [2025-03-08 10:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634623', 'tblTempUsageDetail_20' ) start [2025-03-08 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634623', 'tblTempUsageDetail_20' ) end [2025-03-08 10:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:44:21] Production.INFO: ==25398== Releasing lock... [2025-03-08 10:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:44:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:45:05 [end_date_ymd] => 2025-03-08 10:45:05 [RateCDR] => 1 ) [2025-03-08 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:45:05' and `end` < '2025-03-08 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:45:17] Production.INFO: count ==1039 [2025-03-08 10:45:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:45:05 - End Time 2025-03-08 10:45:05 [2025-03-08 10:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634628', 'tblTempUsageDetail_20' ) start [2025-03-08 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634628', 'tblTempUsageDetail_20' ) end [2025-03-08 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634628', 'tblTempVendorCDR_20' ) start [2025-03-08 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634628', 'tblTempVendorCDR_20' ) end [2025-03-08 10:45:18] Production.INFO: ProcessCDR(1,14634628,1,1,2) [2025-03-08 10:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634628', 'tblTempUsageDetail_20' ) start [2025-03-08 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634628', 'tblTempUsageDetail_20' ) end [2025-03-08 10:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:45:22] Production.INFO: ==25475== Releasing lock... [2025-03-08 10:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:45:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-08 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:46:05 [end_date_ymd] => 2025-03-08 10:46:05 [RateCDR] => 1 ) [2025-03-08 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:46:05' and `end` < '2025-03-08 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:46:17] Production.INFO: count ==1051 [2025-03-08 10:46:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:46:05 - End Time 2025-03-08 10:46:05 [2025-03-08 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634633', 'tblTempUsageDetail_20' ) start [2025-03-08 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634633', 'tblTempUsageDetail_20' ) end [2025-03-08 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634633', 'tblTempVendorCDR_20' ) start [2025-03-08 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634633', 'tblTempVendorCDR_20' ) end [2025-03-08 10:46:18] Production.INFO: ProcessCDR(1,14634633,1,1,2) [2025-03-08 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634633', 'tblTempUsageDetail_20' ) start [2025-03-08 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634633', 'tblTempUsageDetail_20' ) end [2025-03-08 10:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:46:23] Production.INFO: ==25555== Releasing lock... [2025-03-08 10:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:46:23] Production.INFO: 36 MB #Memory Used# [2025-03-08 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:47:05 [end_date_ymd] => 2025-03-08 10:47:05 [RateCDR] => 1 ) [2025-03-08 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:47:05' and `end` < '2025-03-08 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:47:17] Production.INFO: count ==1051 [2025-03-08 10:47:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:47:05 - End Time 2025-03-08 10:47:05 [2025-03-08 10:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634638', 'tblTempUsageDetail_20' ) start [2025-03-08 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634638', 'tblTempUsageDetail_20' ) end [2025-03-08 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634638', 'tblTempVendorCDR_20' ) start [2025-03-08 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634638', 'tblTempVendorCDR_20' ) end [2025-03-08 10:47:18] Production.INFO: ProcessCDR(1,14634638,1,1,2) [2025-03-08 10:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634638', 'tblTempUsageDetail_20' ) start [2025-03-08 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634638', 'tblTempUsageDetail_20' ) end [2025-03-08 10:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:47:21] Production.INFO: ==25670== Releasing lock... [2025-03-08 10:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:47:21] Production.INFO: 36 MB #Memory Used# [2025-03-08 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:48:05 [end_date_ymd] => 2025-03-08 10:48:05 [RateCDR] => 1 ) [2025-03-08 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:48:05' and `end` < '2025-03-08 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:48:18] Production.INFO: count ==1065 [2025-03-08 10:48:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:48:05 - End Time 2025-03-08 10:48:05 [2025-03-08 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634643', 'tblTempUsageDetail_20' ) start [2025-03-08 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634643', 'tblTempUsageDetail_20' ) end [2025-03-08 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634643', 'tblTempVendorCDR_20' ) start [2025-03-08 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634643', 'tblTempVendorCDR_20' ) end [2025-03-08 10:48:18] Production.INFO: ProcessCDR(1,14634643,1,1,2) [2025-03-08 10:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634643', 'tblTempUsageDetail_20' ) start [2025-03-08 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634643', 'tblTempUsageDetail_20' ) end [2025-03-08 10:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:48:21] Production.INFO: ==25751== Releasing lock... [2025-03-08 10:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:48:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:49:05 [end_date_ymd] => 2025-03-08 10:49:05 [RateCDR] => 1 ) [2025-03-08 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:49:05' and `end` < '2025-03-08 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:49:17] Production.INFO: count ==1072 [2025-03-08 10:49:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:49:05 - End Time 2025-03-08 10:49:05 [2025-03-08 10:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634648', 'tblTempUsageDetail_20' ) start [2025-03-08 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634648', 'tblTempUsageDetail_20' ) end [2025-03-08 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634648', 'tblTempVendorCDR_20' ) start [2025-03-08 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634648', 'tblTempVendorCDR_20' ) end [2025-03-08 10:49:17] Production.INFO: ProcessCDR(1,14634648,1,1,2) [2025-03-08 10:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634648', 'tblTempUsageDetail_20' ) start [2025-03-08 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634648', 'tblTempUsageDetail_20' ) end [2025-03-08 10:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:49:22] Production.INFO: ==25829== Releasing lock... [2025-03-08 10:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:49:22] Production.INFO: 36 MB #Memory Used# [2025-03-08 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:50:06 [end_date_ymd] => 2025-03-08 10:50:06 [RateCDR] => 1 ) [2025-03-08 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:50:06' and `end` < '2025-03-08 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:50:18] Production.INFO: count ==1082 [2025-03-08 10:50:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:50:06 - End Time 2025-03-08 10:50:06 [2025-03-08 10:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634653', 'tblTempUsageDetail_20' ) start [2025-03-08 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634653', 'tblTempUsageDetail_20' ) end [2025-03-08 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634653', 'tblTempVendorCDR_20' ) start [2025-03-08 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634653', 'tblTempVendorCDR_20' ) end [2025-03-08 10:50:18] Production.INFO: ProcessCDR(1,14634653,1,1,2) [2025-03-08 10:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634653', 'tblTempUsageDetail_20' ) start [2025-03-08 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634653', 'tblTempUsageDetail_20' ) end [2025-03-08 10:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:50:22] Production.INFO: ==25903== Releasing lock... [2025-03-08 10:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:50:22] Production.INFO: 37 MB #Memory Used# [2025-03-08 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:51:05 [end_date_ymd] => 2025-03-08 10:51:05 [RateCDR] => 1 ) [2025-03-08 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:51:05' and `end` < '2025-03-08 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:51:17] Production.INFO: count ==1106 [2025-03-08 10:51:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:51:05 - End Time 2025-03-08 10:51:05 [2025-03-08 10:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634659', 'tblTempUsageDetail_20' ) start [2025-03-08 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634659', 'tblTempUsageDetail_20' ) end [2025-03-08 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634659', 'tblTempVendorCDR_20' ) start [2025-03-08 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634659', 'tblTempVendorCDR_20' ) end [2025-03-08 10:51:18] Production.INFO: ProcessCDR(1,14634659,1,1,2) [2025-03-08 10:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634659', 'tblTempUsageDetail_20' ) start [2025-03-08 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634659', 'tblTempUsageDetail_20' ) end [2025-03-08 10:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:51:21] Production.INFO: ==25981== Releasing lock... [2025-03-08 10:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:51:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:52:05 [end_date_ymd] => 2025-03-08 10:52:05 [RateCDR] => 1 ) [2025-03-08 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:52:05' and `end` < '2025-03-08 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:52:18] Production.INFO: count ==1107 [2025-03-08 10:52:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:52:05 - End Time 2025-03-08 10:52:05 [2025-03-08 10:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634664', 'tblTempUsageDetail_20' ) start [2025-03-08 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634664', 'tblTempUsageDetail_20' ) end [2025-03-08 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634664', 'tblTempVendorCDR_20' ) start [2025-03-08 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634664', 'tblTempVendorCDR_20' ) end [2025-03-08 10:52:18] Production.INFO: ProcessCDR(1,14634664,1,1,2) [2025-03-08 10:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634664', 'tblTempUsageDetail_20' ) start [2025-03-08 10:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634664', 'tblTempUsageDetail_20' ) end [2025-03-08 10:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:52:21] Production.INFO: ==26066== Releasing lock... [2025-03-08 10:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:52:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:53:05 [end_date_ymd] => 2025-03-08 10:53:05 [RateCDR] => 1 ) [2025-03-08 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:53:05' and `end` < '2025-03-08 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:53:17] Production.INFO: count ==1126 [2025-03-08 10:53:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:53:05 - End Time 2025-03-08 10:53:05 [2025-03-08 10:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634669', 'tblTempUsageDetail_20' ) start [2025-03-08 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634669', 'tblTempUsageDetail_20' ) end [2025-03-08 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634669', 'tblTempVendorCDR_20' ) start [2025-03-08 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634669', 'tblTempVendorCDR_20' ) end [2025-03-08 10:53:17] Production.INFO: ProcessCDR(1,14634669,1,1,2) [2025-03-08 10:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634669', 'tblTempUsageDetail_20' ) start [2025-03-08 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634669', 'tblTempUsageDetail_20' ) end [2025-03-08 10:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:53:21] Production.INFO: ==26141== Releasing lock... [2025-03-08 10:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:53:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:54:06 [end_date_ymd] => 2025-03-08 10:54:06 [RateCDR] => 1 ) [2025-03-08 10:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:54:06' and `end` < '2025-03-08 10:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:54:18] Production.INFO: count ==1133 [2025-03-08 10:54:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:54:06 - End Time 2025-03-08 10:54:06 [2025-03-08 10:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634674', 'tblTempUsageDetail_20' ) start [2025-03-08 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634674', 'tblTempUsageDetail_20' ) end [2025-03-08 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634674', 'tblTempVendorCDR_20' ) start [2025-03-08 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634674', 'tblTempVendorCDR_20' ) end [2025-03-08 10:54:18] Production.INFO: ProcessCDR(1,14634674,1,1,2) [2025-03-08 10:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634674', 'tblTempUsageDetail_20' ) start [2025-03-08 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634674', 'tblTempUsageDetail_20' ) end [2025-03-08 10:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:54:23] Production.INFO: ==26220== Releasing lock... [2025-03-08 10:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:54:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:55:05 [end_date_ymd] => 2025-03-08 10:55:05 [RateCDR] => 1 ) [2025-03-08 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:55:05' and `end` < '2025-03-08 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:55:17] Production.INFO: count ==1133 [2025-03-08 10:55:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:55:05 - End Time 2025-03-08 10:55:05 [2025-03-08 10:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634679', 'tblTempUsageDetail_20' ) start [2025-03-08 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634679', 'tblTempUsageDetail_20' ) end [2025-03-08 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634679', 'tblTempVendorCDR_20' ) start [2025-03-08 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634679', 'tblTempVendorCDR_20' ) end [2025-03-08 10:55:18] Production.INFO: ProcessCDR(1,14634679,1,1,2) [2025-03-08 10:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634679', 'tblTempUsageDetail_20' ) start [2025-03-08 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634679', 'tblTempUsageDetail_20' ) end [2025-03-08 10:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:55:21] Production.INFO: ==26297== Releasing lock... [2025-03-08 10:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:55:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:56:06 [end_date_ymd] => 2025-03-08 10:56:06 [RateCDR] => 1 ) [2025-03-08 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:56:06' and `end` < '2025-03-08 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:56:18] Production.INFO: count ==1138 [2025-03-08 10:56:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:56:06 - End Time 2025-03-08 10:56:06 [2025-03-08 10:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634684', 'tblTempUsageDetail_20' ) start [2025-03-08 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634684', 'tblTempUsageDetail_20' ) end [2025-03-08 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634684', 'tblTempVendorCDR_20' ) start [2025-03-08 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634684', 'tblTempVendorCDR_20' ) end [2025-03-08 10:56:18] Production.INFO: ProcessCDR(1,14634684,1,1,2) [2025-03-08 10:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634684', 'tblTempUsageDetail_20' ) start [2025-03-08 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634684', 'tblTempUsageDetail_20' ) end [2025-03-08 10:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:56:23] Production.INFO: ==26375== Releasing lock... [2025-03-08 10:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:56:23] Production.INFO: 37 MB #Memory Used# [2025-03-08 10:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:57:04 [end_date_ymd] => 2025-03-08 10:57:04 [RateCDR] => 1 ) [2025-03-08 10:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:57:04' and `end` < '2025-03-08 10:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:57:16] Production.INFO: count ==1135 [2025-03-08 10:57:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:57:04 - End Time 2025-03-08 10:57:04 [2025-03-08 10:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634689', 'tblTempUsageDetail_20' ) start [2025-03-08 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634689', 'tblTempUsageDetail_20' ) end [2025-03-08 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634689', 'tblTempVendorCDR_20' ) start [2025-03-08 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634689', 'tblTempVendorCDR_20' ) end [2025-03-08 10:57:17] Production.INFO: ProcessCDR(1,14634689,1,1,2) [2025-03-08 10:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634689', 'tblTempUsageDetail_20' ) start [2025-03-08 10:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634689', 'tblTempUsageDetail_20' ) end [2025-03-08 10:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:57:20] Production.INFO: ==26453== Releasing lock... [2025-03-08 10:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:57:20] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:58:05 [end_date_ymd] => 2025-03-08 10:58:05 [RateCDR] => 1 ) [2025-03-08 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:58:05' and `end` < '2025-03-08 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:58:18] Production.INFO: count ==1139 [2025-03-08 10:58:18] Production.ERROR: pbx CDR StartTime 2025-03-08 07:58:05 - End Time 2025-03-08 10:58:05 [2025-03-08 10:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634694', 'tblTempUsageDetail_20' ) start [2025-03-08 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634694', 'tblTempUsageDetail_20' ) end [2025-03-08 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634694', 'tblTempVendorCDR_20' ) start [2025-03-08 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634694', 'tblTempVendorCDR_20' ) end [2025-03-08 10:58:18] Production.INFO: ProcessCDR(1,14634694,1,1,2) [2025-03-08 10:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634694', 'tblTempUsageDetail_20' ) start [2025-03-08 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634694', 'tblTempUsageDetail_20' ) end [2025-03-08 10:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:58:21] Production.INFO: ==26527== Releasing lock... [2025-03-08 10:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:58:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 07:59:05 [end_date_ymd] => 2025-03-08 10:59:05 [RateCDR] => 1 ) [2025-03-08 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 07:59:05' and `end` < '2025-03-08 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 10:59:17] Production.INFO: count ==1134 [2025-03-08 10:59:17] Production.ERROR: pbx CDR StartTime 2025-03-08 07:59:05 - End Time 2025-03-08 10:59:05 [2025-03-08 10:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634699', 'tblTempUsageDetail_20' ) start [2025-03-08 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634699', 'tblTempUsageDetail_20' ) end [2025-03-08 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634699', 'tblTempVendorCDR_20' ) start [2025-03-08 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634699', 'tblTempVendorCDR_20' ) end [2025-03-08 10:59:18] Production.INFO: ProcessCDR(1,14634699,1,1,2) [2025-03-08 10:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 10:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 10:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634699', 'tblTempUsageDetail_20' ) start [2025-03-08 10:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634699', 'tblTempUsageDetail_20' ) end [2025-03-08 10:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 10:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 10:59:21] Production.INFO: ==26604== Releasing lock... [2025-03-08 10:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 10:59:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:00:06 [end_date_ymd] => 2025-03-08 11:00:06 [RateCDR] => 1 ) [2025-03-08 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:00:06' and `end` < '2025-03-08 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:00:18] Production.INFO: count ==1128 [2025-03-08 11:00:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:00:06 - End Time 2025-03-08 11:00:06 [2025-03-08 11:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634705', 'tblTempUsageDetail_20' ) start [2025-03-08 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634705', 'tblTempUsageDetail_20' ) end [2025-03-08 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634705', 'tblTempVendorCDR_20' ) start [2025-03-08 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634705', 'tblTempVendorCDR_20' ) end [2025-03-08 11:00:18] Production.INFO: ProcessCDR(1,14634705,1,1,2) [2025-03-08 11:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634705', 'tblTempUsageDetail_20' ) start [2025-03-08 11:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634705', 'tblTempUsageDetail_20' ) end [2025-03-08 11:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:00:21] Production.INFO: ==26683== Releasing lock... [2025-03-08 11:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:00:21] Production.INFO: 37 MB #Memory Used# [2025-03-08 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:01:05 [end_date_ymd] => 2025-03-08 11:01:05 [RateCDR] => 1 ) [2025-03-08 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:01:05' and `end` < '2025-03-08 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:01:18] Production.INFO: count ==1164 [2025-03-08 11:01:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:01:05 - End Time 2025-03-08 11:01:05 [2025-03-08 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634710', 'tblTempUsageDetail_20' ) start [2025-03-08 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634710', 'tblTempUsageDetail_20' ) end [2025-03-08 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634710', 'tblTempVendorCDR_20' ) start [2025-03-08 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634710', 'tblTempVendorCDR_20' ) end [2025-03-08 11:01:18] Production.INFO: ProcessCDR(1,14634710,1,1,2) [2025-03-08 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634710', 'tblTempUsageDetail_20' ) start [2025-03-08 11:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634710', 'tblTempUsageDetail_20' ) end [2025-03-08 11:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:01:22] Production.INFO: ==26812== Releasing lock... [2025-03-08 11:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:01:22] Production.INFO: 37 MB #Memory Used# [2025-03-08 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:02:05 [end_date_ymd] => 2025-03-08 11:02:05 [RateCDR] => 1 ) [2025-03-08 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:02:05' and `end` < '2025-03-08 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:02:17] Production.INFO: count ==1170 [2025-03-08 11:02:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:02:05 - End Time 2025-03-08 11:02:05 [2025-03-08 11:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634715', 'tblTempUsageDetail_20' ) start [2025-03-08 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634715', 'tblTempUsageDetail_20' ) end [2025-03-08 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634715', 'tblTempVendorCDR_20' ) start [2025-03-08 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634715', 'tblTempVendorCDR_20' ) end [2025-03-08 11:02:18] Production.INFO: ProcessCDR(1,14634715,1,1,2) [2025-03-08 11:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634715', 'tblTempUsageDetail_20' ) start [2025-03-08 11:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634715', 'tblTempUsageDetail_20' ) end [2025-03-08 11:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:02:21] Production.INFO: ==26928== Releasing lock... [2025-03-08 11:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:02:21] Production.INFO: 37 MB #Memory Used# [2025-03-08 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:03:06 [end_date_ymd] => 2025-03-08 11:03:06 [RateCDR] => 1 ) [2025-03-08 11:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:03:06' and `end` < '2025-03-08 11:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:03:18] Production.INFO: count ==1176 [2025-03-08 11:03:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:03:06 - End Time 2025-03-08 11:03:06 [2025-03-08 11:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634720', 'tblTempUsageDetail_20' ) start [2025-03-08 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634720', 'tblTempUsageDetail_20' ) end [2025-03-08 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634720', 'tblTempVendorCDR_20' ) start [2025-03-08 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634720', 'tblTempVendorCDR_20' ) end [2025-03-08 11:03:18] Production.INFO: ProcessCDR(1,14634720,1,1,2) [2025-03-08 11:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634720', 'tblTempUsageDetail_20' ) start [2025-03-08 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634720', 'tblTempUsageDetail_20' ) end [2025-03-08 11:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:03:23] Production.INFO: ==27046== Releasing lock... [2025-03-08 11:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:03:23] Production.INFO: 37 MB #Memory Used# [2025-03-08 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:04:05 [end_date_ymd] => 2025-03-08 11:04:05 [RateCDR] => 1 ) [2025-03-08 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:04:05' and `end` < '2025-03-08 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:04:17] Production.INFO: count ==1185 [2025-03-08 11:04:17] Production.ERROR: pbx CDR StartTime 2025-03-08 08:04:05 - End Time 2025-03-08 11:04:05 [2025-03-08 11:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634725', 'tblTempUsageDetail_20' ) start [2025-03-08 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634725', 'tblTempUsageDetail_20' ) end [2025-03-08 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634725', 'tblTempVendorCDR_20' ) start [2025-03-08 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634725', 'tblTempVendorCDR_20' ) end [2025-03-08 11:04:17] Production.INFO: ProcessCDR(1,14634725,1,1,2) [2025-03-08 11:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634725', 'tblTempUsageDetail_20' ) start [2025-03-08 11:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634725', 'tblTempUsageDetail_20' ) end [2025-03-08 11:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:04:21] Production.INFO: ==27122== Releasing lock... [2025-03-08 11:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:04:21] Production.INFO: 37 MB #Memory Used# [2025-03-08 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:05:06 [end_date_ymd] => 2025-03-08 11:05:06 [RateCDR] => 1 ) [2025-03-08 11:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:05:06' and `end` < '2025-03-08 11:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:05:18] Production.INFO: count ==1186 [2025-03-08 11:05:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:05:06 - End Time 2025-03-08 11:05:06 [2025-03-08 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634730', 'tblTempUsageDetail_20' ) start [2025-03-08 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634730', 'tblTempUsageDetail_20' ) end [2025-03-08 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634730', 'tblTempVendorCDR_20' ) start [2025-03-08 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634730', 'tblTempVendorCDR_20' ) end [2025-03-08 11:05:18] Production.INFO: ProcessCDR(1,14634730,1,1,2) [2025-03-08 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634730', 'tblTempUsageDetail_20' ) start [2025-03-08 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634730', 'tblTempUsageDetail_20' ) end [2025-03-08 11:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:05:22] Production.INFO: ==27276== Releasing lock... [2025-03-08 11:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:05:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:06:05 [end_date_ymd] => 2025-03-08 11:06:05 [RateCDR] => 1 ) [2025-03-08 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:06:05' and `end` < '2025-03-08 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:06:17] Production.INFO: count ==1177 [2025-03-08 11:06:17] Production.ERROR: pbx CDR StartTime 2025-03-08 08:06:05 - End Time 2025-03-08 11:06:05 [2025-03-08 11:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634735', 'tblTempUsageDetail_20' ) start [2025-03-08 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634735', 'tblTempUsageDetail_20' ) end [2025-03-08 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634735', 'tblTempVendorCDR_20' ) start [2025-03-08 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634735', 'tblTempVendorCDR_20' ) end [2025-03-08 11:06:17] Production.INFO: ProcessCDR(1,14634735,1,1,2) [2025-03-08 11:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634735', 'tblTempUsageDetail_20' ) start [2025-03-08 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634735', 'tblTempUsageDetail_20' ) end [2025-03-08 11:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:06:21] Production.INFO: ==27354== Releasing lock... [2025-03-08 11:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:06:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:07:05 [end_date_ymd] => 2025-03-08 11:07:05 [RateCDR] => 1 ) [2025-03-08 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:07:05' and `end` < '2025-03-08 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:07:17] Production.INFO: count ==1202 [2025-03-08 11:07:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:07:05 - End Time 2025-03-08 11:07:05 [2025-03-08 11:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634740', 'tblTempUsageDetail_20' ) start [2025-03-08 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634740', 'tblTempUsageDetail_20' ) end [2025-03-08 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634740', 'tblTempVendorCDR_20' ) start [2025-03-08 11:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634740', 'tblTempVendorCDR_20' ) end [2025-03-08 11:07:18] Production.INFO: ProcessCDR(1,14634740,1,1,2) [2025-03-08 11:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634740', 'tblTempUsageDetail_20' ) start [2025-03-08 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634740', 'tblTempUsageDetail_20' ) end [2025-03-08 11:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:07:23] Production.INFO: ==27436== Releasing lock... [2025-03-08 11:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:07:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:08:05 [end_date_ymd] => 2025-03-08 11:08:05 [RateCDR] => 1 ) [2025-03-08 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:08:05' and `end` < '2025-03-08 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:08:17] Production.INFO: count ==1206 [2025-03-08 11:08:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:08:05 - End Time 2025-03-08 11:08:05 [2025-03-08 11:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634745', 'tblTempUsageDetail_20' ) start [2025-03-08 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634745', 'tblTempUsageDetail_20' ) end [2025-03-08 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634745', 'tblTempVendorCDR_20' ) start [2025-03-08 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634745', 'tblTempVendorCDR_20' ) end [2025-03-08 11:08:18] Production.INFO: ProcessCDR(1,14634745,1,1,2) [2025-03-08 11:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634745', 'tblTempUsageDetail_20' ) start [2025-03-08 11:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634745', 'tblTempUsageDetail_20' ) end [2025-03-08 11:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:08:21] Production.INFO: ==27595== Releasing lock... [2025-03-08 11:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:08:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:09:05 [end_date_ymd] => 2025-03-08 11:09:05 [RateCDR] => 1 ) [2025-03-08 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:09:05' and `end` < '2025-03-08 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:09:17] Production.INFO: count ==1225 [2025-03-08 11:09:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:09:05 - End Time 2025-03-08 11:09:05 [2025-03-08 11:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634750', 'tblTempUsageDetail_20' ) start [2025-03-08 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634750', 'tblTempUsageDetail_20' ) end [2025-03-08 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634750', 'tblTempVendorCDR_20' ) start [2025-03-08 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634750', 'tblTempVendorCDR_20' ) end [2025-03-08 11:09:18] Production.INFO: ProcessCDR(1,14634750,1,1,2) [2025-03-08 11:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634750', 'tblTempUsageDetail_20' ) start [2025-03-08 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634750', 'tblTempUsageDetail_20' ) end [2025-03-08 11:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:09:22] Production.INFO: ==27672== Releasing lock... [2025-03-08 11:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:09:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:10:06 [end_date_ymd] => 2025-03-08 11:10:06 [RateCDR] => 1 ) [2025-03-08 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:10:06' and `end` < '2025-03-08 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:10:18] Production.INFO: count ==1218 [2025-03-08 11:10:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:10:06 - End Time 2025-03-08 11:10:06 [2025-03-08 11:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634755', 'tblTempUsageDetail_20' ) start [2025-03-08 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634755', 'tblTempUsageDetail_20' ) end [2025-03-08 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634755', 'tblTempVendorCDR_20' ) start [2025-03-08 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634755', 'tblTempVendorCDR_20' ) end [2025-03-08 11:10:18] Production.INFO: ProcessCDR(1,14634755,1,1,2) [2025-03-08 11:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634755', 'tblTempUsageDetail_20' ) start [2025-03-08 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634755', 'tblTempUsageDetail_20' ) end [2025-03-08 11:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:10:22] Production.INFO: ==27752== Releasing lock... [2025-03-08 11:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:10:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:11:06 [end_date_ymd] => 2025-03-08 11:11:06 [RateCDR] => 1 ) [2025-03-08 11:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:11:06' and `end` < '2025-03-08 11:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:11:18] Production.INFO: count ==1230 [2025-03-08 11:11:19] Production.ERROR: pbx CDR StartTime 2025-03-08 08:11:06 - End Time 2025-03-08 11:11:06 [2025-03-08 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634761', 'tblTempUsageDetail_20' ) start [2025-03-08 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634761', 'tblTempUsageDetail_20' ) end [2025-03-08 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634761', 'tblTempVendorCDR_20' ) start [2025-03-08 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634761', 'tblTempVendorCDR_20' ) end [2025-03-08 11:11:19] Production.INFO: ProcessCDR(1,14634761,1,1,2) [2025-03-08 11:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634761', 'tblTempUsageDetail_20' ) start [2025-03-08 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634761', 'tblTempUsageDetail_20' ) end [2025-03-08 11:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:11:22] Production.INFO: ==27834== Releasing lock... [2025-03-08 11:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:11:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:12:05 [end_date_ymd] => 2025-03-08 11:12:05 [RateCDR] => 1 ) [2025-03-08 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:12:05' and `end` < '2025-03-08 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:12:17] Production.INFO: count ==1233 [2025-03-08 11:12:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:12:05 - End Time 2025-03-08 11:12:05 [2025-03-08 11:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634766', 'tblTempUsageDetail_20' ) start [2025-03-08 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634766', 'tblTempUsageDetail_20' ) end [2025-03-08 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634766', 'tblTempVendorCDR_20' ) start [2025-03-08 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634766', 'tblTempVendorCDR_20' ) end [2025-03-08 11:12:18] Production.INFO: ProcessCDR(1,14634766,1,1,2) [2025-03-08 11:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634766', 'tblTempUsageDetail_20' ) start [2025-03-08 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634766', 'tblTempUsageDetail_20' ) end [2025-03-08 11:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:12:23] Production.INFO: ==27988== Releasing lock... [2025-03-08 11:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:12:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:13:05 [end_date_ymd] => 2025-03-08 11:13:05 [RateCDR] => 1 ) [2025-03-08 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:13:05' and `end` < '2025-03-08 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:13:17] Production.INFO: count ==1240 [2025-03-08 11:13:17] Production.ERROR: pbx CDR StartTime 2025-03-08 08:13:05 - End Time 2025-03-08 11:13:05 [2025-03-08 11:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634771', 'tblTempUsageDetail_20' ) start [2025-03-08 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634771', 'tblTempUsageDetail_20' ) end [2025-03-08 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634771', 'tblTempVendorCDR_20' ) start [2025-03-08 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634771', 'tblTempVendorCDR_20' ) end [2025-03-08 11:13:18] Production.INFO: ProcessCDR(1,14634771,1,1,2) [2025-03-08 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634771', 'tblTempUsageDetail_20' ) start [2025-03-08 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634771', 'tblTempUsageDetail_20' ) end [2025-03-08 11:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:13:22] Production.INFO: ==28065== Releasing lock... [2025-03-08 11:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:13:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:14:05 [end_date_ymd] => 2025-03-08 11:14:05 [RateCDR] => 1 ) [2025-03-08 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:14:05' and `end` < '2025-03-08 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:14:18] Production.INFO: count ==1242 [2025-03-08 11:14:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:14:05 - End Time 2025-03-08 11:14:05 [2025-03-08 11:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634776', 'tblTempUsageDetail_20' ) start [2025-03-08 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634776', 'tblTempUsageDetail_20' ) end [2025-03-08 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634776', 'tblTempVendorCDR_20' ) start [2025-03-08 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634776', 'tblTempVendorCDR_20' ) end [2025-03-08 11:14:18] Production.INFO: ProcessCDR(1,14634776,1,1,2) [2025-03-08 11:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634776', 'tblTempUsageDetail_20' ) start [2025-03-08 11:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634776', 'tblTempUsageDetail_20' ) end [2025-03-08 11:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:14:21] Production.INFO: ==28141== Releasing lock... [2025-03-08 11:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:14:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:15:06 [end_date_ymd] => 2025-03-08 11:15:06 [RateCDR] => 1 ) [2025-03-08 11:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:15:06' and `end` < '2025-03-08 11:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:15:18] Production.INFO: count ==1242 [2025-03-08 11:15:19] Production.ERROR: pbx CDR StartTime 2025-03-08 08:15:06 - End Time 2025-03-08 11:15:06 [2025-03-08 11:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634781', 'tblTempUsageDetail_20' ) start [2025-03-08 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634781', 'tblTempUsageDetail_20' ) end [2025-03-08 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634781', 'tblTempVendorCDR_20' ) start [2025-03-08 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634781', 'tblTempVendorCDR_20' ) end [2025-03-08 11:15:19] Production.INFO: ProcessCDR(1,14634781,1,1,2) [2025-03-08 11:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634781', 'tblTempUsageDetail_20' ) start [2025-03-08 11:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634781', 'tblTempUsageDetail_20' ) end [2025-03-08 11:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:15:22] Production.INFO: ==28295== Releasing lock... [2025-03-08 11:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:15:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:16:05 [end_date_ymd] => 2025-03-08 11:16:05 [RateCDR] => 1 ) [2025-03-08 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:16:05' and `end` < '2025-03-08 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:16:17] Production.INFO: count ==1283 [2025-03-08 11:16:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:16:05 - End Time 2025-03-08 11:16:05 [2025-03-08 11:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634786', 'tblTempUsageDetail_20' ) start [2025-03-08 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634786', 'tblTempUsageDetail_20' ) end [2025-03-08 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634786', 'tblTempVendorCDR_20' ) start [2025-03-08 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634786', 'tblTempVendorCDR_20' ) end [2025-03-08 11:16:18] Production.INFO: ProcessCDR(1,14634786,1,1,2) [2025-03-08 11:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634786', 'tblTempUsageDetail_20' ) start [2025-03-08 11:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634786', 'tblTempUsageDetail_20' ) end [2025-03-08 11:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:16:23] Production.INFO: ==28372== Releasing lock... [2025-03-08 11:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:16:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:17:06 [end_date_ymd] => 2025-03-08 11:17:06 [RateCDR] => 1 ) [2025-03-08 11:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:17:06' and `end` < '2025-03-08 11:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:17:18] Production.INFO: count ==1294 [2025-03-08 11:17:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:17:06 - End Time 2025-03-08 11:17:06 [2025-03-08 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634791', 'tblTempUsageDetail_20' ) start [2025-03-08 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634791', 'tblTempUsageDetail_20' ) end [2025-03-08 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634791', 'tblTempVendorCDR_20' ) start [2025-03-08 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634791', 'tblTempVendorCDR_20' ) end [2025-03-08 11:17:19] Production.INFO: ProcessCDR(1,14634791,1,1,2) [2025-03-08 11:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634791', 'tblTempUsageDetail_20' ) start [2025-03-08 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634791', 'tblTempUsageDetail_20' ) end [2025-03-08 11:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:17:24] Production.INFO: ==28450== Releasing lock... [2025-03-08 11:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:17:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:18:05 [end_date_ymd] => 2025-03-08 11:18:05 [RateCDR] => 1 ) [2025-03-08 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:18:05' and `end` < '2025-03-08 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:18:17] Production.INFO: count ==1296 [2025-03-08 11:18:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:18:05 - End Time 2025-03-08 11:18:05 [2025-03-08 11:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634796', 'tblTempUsageDetail_20' ) start [2025-03-08 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634796', 'tblTempUsageDetail_20' ) end [2025-03-08 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634796', 'tblTempVendorCDR_20' ) start [2025-03-08 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634796', 'tblTempVendorCDR_20' ) end [2025-03-08 11:18:18] Production.INFO: ProcessCDR(1,14634796,1,1,2) [2025-03-08 11:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634796', 'tblTempUsageDetail_20' ) start [2025-03-08 11:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634796', 'tblTempUsageDetail_20' ) end [2025-03-08 11:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:18:21] Production.INFO: ==28567== Releasing lock... [2025-03-08 11:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:18:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:19:05 [end_date_ymd] => 2025-03-08 11:19:05 [RateCDR] => 1 ) [2025-03-08 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:19:05' and `end` < '2025-03-08 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:19:17] Production.INFO: count ==1298 [2025-03-08 11:19:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:19:05 - End Time 2025-03-08 11:19:05 [2025-03-08 11:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634801', 'tblTempUsageDetail_20' ) start [2025-03-08 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634801', 'tblTempUsageDetail_20' ) end [2025-03-08 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634801', 'tblTempVendorCDR_20' ) start [2025-03-08 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634801', 'tblTempVendorCDR_20' ) end [2025-03-08 11:19:18] Production.INFO: ProcessCDR(1,14634801,1,1,2) [2025-03-08 11:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634801', 'tblTempUsageDetail_20' ) start [2025-03-08 11:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634801', 'tblTempUsageDetail_20' ) end [2025-03-08 11:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:19:23] Production.INFO: ==28647== Releasing lock... [2025-03-08 11:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:19:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:20:06 [end_date_ymd] => 2025-03-08 11:20:06 [RateCDR] => 1 ) [2025-03-08 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:20:06' and `end` < '2025-03-08 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:20:18] Production.INFO: count ==1307 [2025-03-08 11:20:19] Production.ERROR: pbx CDR StartTime 2025-03-08 08:20:06 - End Time 2025-03-08 11:20:06 [2025-03-08 11:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634807', 'tblTempUsageDetail_20' ) start [2025-03-08 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634807', 'tblTempUsageDetail_20' ) end [2025-03-08 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634807', 'tblTempVendorCDR_20' ) start [2025-03-08 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634807', 'tblTempVendorCDR_20' ) end [2025-03-08 11:20:19] Production.INFO: ProcessCDR(1,14634807,1,1,2) [2025-03-08 11:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634807', 'tblTempUsageDetail_20' ) start [2025-03-08 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634807', 'tblTempUsageDetail_20' ) end [2025-03-08 11:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:20:24] Production.INFO: ==28724== Releasing lock... [2025-03-08 11:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:20:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:21:05 [end_date_ymd] => 2025-03-08 11:21:05 [RateCDR] => 1 ) [2025-03-08 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:21:05' and `end` < '2025-03-08 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:21:17] Production.INFO: count ==1340 [2025-03-08 11:21:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:21:05 - End Time 2025-03-08 11:21:05 [2025-03-08 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634812', 'tblTempUsageDetail_20' ) start [2025-03-08 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634812', 'tblTempUsageDetail_20' ) end [2025-03-08 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634812', 'tblTempVendorCDR_20' ) start [2025-03-08 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634812', 'tblTempVendorCDR_20' ) end [2025-03-08 11:21:18] Production.INFO: ProcessCDR(1,14634812,1,1,2) [2025-03-08 11:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634812', 'tblTempUsageDetail_20' ) start [2025-03-08 11:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634812', 'tblTempUsageDetail_20' ) end [2025-03-08 11:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:21:21] Production.INFO: ==28805== Releasing lock... [2025-03-08 11:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:21:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:22:05 [end_date_ymd] => 2025-03-08 11:22:05 [RateCDR] => 1 ) [2025-03-08 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:22:05' and `end` < '2025-03-08 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:22:18] Production.INFO: count ==1340 [2025-03-08 11:22:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:22:05 - End Time 2025-03-08 11:22:05 [2025-03-08 11:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634817', 'tblTempUsageDetail_20' ) start [2025-03-08 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634817', 'tblTempUsageDetail_20' ) end [2025-03-08 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634817', 'tblTempVendorCDR_20' ) start [2025-03-08 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634817', 'tblTempVendorCDR_20' ) end [2025-03-08 11:22:18] Production.INFO: ProcessCDR(1,14634817,1,1,2) [2025-03-08 11:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634817', 'tblTempUsageDetail_20' ) start [2025-03-08 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634817', 'tblTempUsageDetail_20' ) end [2025-03-08 11:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:22:22] Production.INFO: ==28877== Releasing lock... [2025-03-08 11:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:22:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:23:05 [end_date_ymd] => 2025-03-08 11:23:05 [RateCDR] => 1 ) [2025-03-08 11:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:23:05' and `end` < '2025-03-08 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:23:18] Production.INFO: count ==1342 [2025-03-08 11:23:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:23:05 - End Time 2025-03-08 11:23:05 [2025-03-08 11:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634822', 'tblTempUsageDetail_20' ) start [2025-03-08 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634822', 'tblTempUsageDetail_20' ) end [2025-03-08 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634822', 'tblTempVendorCDR_20' ) start [2025-03-08 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634822', 'tblTempVendorCDR_20' ) end [2025-03-08 11:23:18] Production.INFO: ProcessCDR(1,14634822,1,1,2) [2025-03-08 11:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634822', 'tblTempUsageDetail_20' ) start [2025-03-08 11:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634822', 'tblTempUsageDetail_20' ) end [2025-03-08 11:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:23:21] Production.INFO: ==28956== Releasing lock... [2025-03-08 11:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:23:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:24:05 [end_date_ymd] => 2025-03-08 11:24:05 [RateCDR] => 1 ) [2025-03-08 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:24:05' and `end` < '2025-03-08 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:24:17] Production.INFO: count ==1345 [2025-03-08 11:24:17] Production.ERROR: pbx CDR StartTime 2025-03-08 08:24:05 - End Time 2025-03-08 11:24:05 [2025-03-08 11:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634827', 'tblTempUsageDetail_20' ) start [2025-03-08 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634827', 'tblTempUsageDetail_20' ) end [2025-03-08 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634827', 'tblTempVendorCDR_20' ) start [2025-03-08 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634827', 'tblTempVendorCDR_20' ) end [2025-03-08 11:24:17] Production.INFO: ProcessCDR(1,14634827,1,1,2) [2025-03-08 11:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634827', 'tblTempUsageDetail_20' ) start [2025-03-08 11:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634827', 'tblTempUsageDetail_20' ) end [2025-03-08 11:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:24:23] Production.INFO: ==29032== Releasing lock... [2025-03-08 11:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:24:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:25:05 [end_date_ymd] => 2025-03-08 11:25:05 [RateCDR] => 1 ) [2025-03-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-03-08 08:25:05' and `end` < '2025-03-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-03-08 11:25:17] Production.INFO: count ==1352 [2025-03-08 11:25:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:25:05 - End Time 2025-03-08 11:25:05 [2025-03-08 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634832', 'tblTempUsageDetail_20' ) start [2025-03-08 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634832', 'tblTempUsageDetail_20' ) end [2025-03-08 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634832', 'tblTempVendorCDR_20' ) start [2025-03-08 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634832', 'tblTempVendorCDR_20' ) end [2025-03-08 11:25:18] Production.INFO: ProcessCDR(1,14634832,1,1,2) [2025-03-08 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634832', 'tblTempUsageDetail_20' ) start [2025-03-08 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634832', 'tblTempUsageDetail_20' ) end [2025-03-08 11:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:25:23] Production.INFO: ==29105== Releasing lock... [2025-03-08 11:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:25:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:26:05 [end_date_ymd] => 2025-03-08 11:26:05 [RateCDR] => 1 ) [2025-03-08 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:26:05' and `end` < '2025-03-08 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:26:18] Production.INFO: count ==1368 [2025-03-08 11:26:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:26:05 - End Time 2025-03-08 11:26:05 [2025-03-08 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634837', 'tblTempUsageDetail_20' ) start [2025-03-08 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634837', 'tblTempUsageDetail_20' ) end [2025-03-08 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634837', 'tblTempVendorCDR_20' ) start [2025-03-08 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634837', 'tblTempVendorCDR_20' ) end [2025-03-08 11:26:18] Production.INFO: ProcessCDR(1,14634837,1,1,2) [2025-03-08 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634837', 'tblTempUsageDetail_20' ) start [2025-03-08 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634837', 'tblTempUsageDetail_20' ) end [2025-03-08 11:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:26:23] Production.INFO: ==29181== Releasing lock... [2025-03-08 11:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:26:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:27:05 [end_date_ymd] => 2025-03-08 11:27:05 [RateCDR] => 1 ) [2025-03-08 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:27:05' and `end` < '2025-03-08 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:27:18] Production.INFO: count ==1389 [2025-03-08 11:27:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:27:05 - End Time 2025-03-08 11:27:05 [2025-03-08 11:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634842', 'tblTempUsageDetail_20' ) start [2025-03-08 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634842', 'tblTempUsageDetail_20' ) end [2025-03-08 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634842', 'tblTempVendorCDR_20' ) start [2025-03-08 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634842', 'tblTempVendorCDR_20' ) end [2025-03-08 11:27:18] Production.INFO: ProcessCDR(1,14634842,1,1,2) [2025-03-08 11:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634842', 'tblTempUsageDetail_20' ) start [2025-03-08 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634842', 'tblTempUsageDetail_20' ) end [2025-03-08 11:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:27:23] Production.INFO: ==29261== Releasing lock... [2025-03-08 11:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:27:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:28:06 [end_date_ymd] => 2025-03-08 11:28:06 [RateCDR] => 1 ) [2025-03-08 11:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:28:06' and `end` < '2025-03-08 11:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:28:18] Production.INFO: count ==1397 [2025-03-08 11:28:19] Production.ERROR: pbx CDR StartTime 2025-03-08 08:28:06 - End Time 2025-03-08 11:28:06 [2025-03-08 11:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634847', 'tblTempUsageDetail_20' ) start [2025-03-08 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634847', 'tblTempUsageDetail_20' ) end [2025-03-08 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634847', 'tblTempVendorCDR_20' ) start [2025-03-08 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634847', 'tblTempVendorCDR_20' ) end [2025-03-08 11:28:19] Production.INFO: ProcessCDR(1,14634847,1,1,2) [2025-03-08 11:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634847', 'tblTempUsageDetail_20' ) start [2025-03-08 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634847', 'tblTempUsageDetail_20' ) end [2025-03-08 11:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:28:23] Production.INFO: ==29334== Releasing lock... [2025-03-08 11:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:28:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:29:05 [end_date_ymd] => 2025-03-08 11:29:05 [RateCDR] => 1 ) [2025-03-08 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:29:05' and `end` < '2025-03-08 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:29:17] Production.INFO: count ==1400 [2025-03-08 11:29:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:29:05 - End Time 2025-03-08 11:29:05 [2025-03-08 11:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634852', 'tblTempUsageDetail_20' ) start [2025-03-08 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634852', 'tblTempUsageDetail_20' ) end [2025-03-08 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634852', 'tblTempVendorCDR_20' ) start [2025-03-08 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634852', 'tblTempVendorCDR_20' ) end [2025-03-08 11:29:18] Production.INFO: ProcessCDR(1,14634852,1,1,2) [2025-03-08 11:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634852', 'tblTempUsageDetail_20' ) start [2025-03-08 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634852', 'tblTempUsageDetail_20' ) end [2025-03-08 11:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:29:23] Production.INFO: ==29409== Releasing lock... [2025-03-08 11:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:29:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:30:06 [end_date_ymd] => 2025-03-08 11:30:06 [RateCDR] => 1 ) [2025-03-08 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:30:06' and `end` < '2025-03-08 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:30:18] Production.INFO: count ==1419 [2025-03-08 11:30:19] Production.ERROR: pbx CDR StartTime 2025-03-08 08:30:06 - End Time 2025-03-08 11:30:06 [2025-03-08 11:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634858', 'tblTempUsageDetail_20' ) start [2025-03-08 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634858', 'tblTempUsageDetail_20' ) end [2025-03-08 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634858', 'tblTempVendorCDR_20' ) start [2025-03-08 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634858', 'tblTempVendorCDR_20' ) end [2025-03-08 11:30:19] Production.INFO: ProcessCDR(1,14634858,1,1,2) [2025-03-08 11:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634858', 'tblTempUsageDetail_20' ) start [2025-03-08 11:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634858', 'tblTempUsageDetail_20' ) end [2025-03-08 11:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:30:24] Production.INFO: ==29486== Releasing lock... [2025-03-08 11:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:30:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:31:05 [end_date_ymd] => 2025-03-08 11:31:05 [RateCDR] => 1 ) [2025-03-08 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:31:05' and `end` < '2025-03-08 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:31:18] Production.INFO: count ==1460 [2025-03-08 11:31:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:31:05 - End Time 2025-03-08 11:31:05 [2025-03-08 11:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634863', 'tblTempUsageDetail_20' ) start [2025-03-08 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634863', 'tblTempUsageDetail_20' ) end [2025-03-08 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634863', 'tblTempVendorCDR_20' ) start [2025-03-08 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634863', 'tblTempVendorCDR_20' ) end [2025-03-08 11:31:18] Production.INFO: ProcessCDR(1,14634863,1,1,2) [2025-03-08 11:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634863', 'tblTempUsageDetail_20' ) start [2025-03-08 11:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634863', 'tblTempUsageDetail_20' ) end [2025-03-08 11:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:31:21] Production.INFO: ==29562== Releasing lock... [2025-03-08 11:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:31:21] Production.INFO: 39 MB #Memory Used# [2025-03-08 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:32:05 [end_date_ymd] => 2025-03-08 11:32:05 [RateCDR] => 1 ) [2025-03-08 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:32:05' and `end` < '2025-03-08 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:32:18] Production.INFO: count ==1463 [2025-03-08 11:32:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:32:05 - End Time 2025-03-08 11:32:05 [2025-03-08 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634868', 'tblTempUsageDetail_20' ) start [2025-03-08 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634868', 'tblTempUsageDetail_20' ) end [2025-03-08 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634868', 'tblTempVendorCDR_20' ) start [2025-03-08 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634868', 'tblTempVendorCDR_20' ) end [2025-03-08 11:32:18] Production.INFO: ProcessCDR(1,14634868,1,1,2) [2025-03-08 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634868', 'tblTempUsageDetail_20' ) start [2025-03-08 11:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634868', 'tblTempUsageDetail_20' ) end [2025-03-08 11:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:32:23] Production.INFO: ==29634== Releasing lock... [2025-03-08 11:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:32:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-08 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:33:05 [end_date_ymd] => 2025-03-08 11:33:05 [RateCDR] => 1 ) [2025-03-08 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:33:05' and `end` < '2025-03-08 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:33:17] Production.INFO: count ==1467 [2025-03-08 11:33:17] Production.ERROR: pbx CDR StartTime 2025-03-08 08:33:05 - End Time 2025-03-08 11:33:05 [2025-03-08 11:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634873', 'tblTempUsageDetail_20' ) start [2025-03-08 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634873', 'tblTempUsageDetail_20' ) end [2025-03-08 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634873', 'tblTempVendorCDR_20' ) start [2025-03-08 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634873', 'tblTempVendorCDR_20' ) end [2025-03-08 11:33:18] Production.INFO: ProcessCDR(1,14634873,1,1,2) [2025-03-08 11:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634873', 'tblTempUsageDetail_20' ) start [2025-03-08 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634873', 'tblTempUsageDetail_20' ) end [2025-03-08 11:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:33:22] Production.INFO: ==29705== Releasing lock... [2025-03-08 11:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:33:22] Production.INFO: 39 MB #Memory Used# [2025-03-08 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:34:05 [end_date_ymd] => 2025-03-08 11:34:05 [RateCDR] => 1 ) [2025-03-08 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:34:05' and `end` < '2025-03-08 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:34:18] Production.INFO: count ==1508 [2025-03-08 11:34:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:34:05 - End Time 2025-03-08 11:34:05 [2025-03-08 11:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634878', 'tblTempUsageDetail_20' ) start [2025-03-08 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634878', 'tblTempUsageDetail_20' ) end [2025-03-08 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634878', 'tblTempVendorCDR_20' ) start [2025-03-08 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634878', 'tblTempVendorCDR_20' ) end [2025-03-08 11:34:18] Production.INFO: ProcessCDR(1,14634878,1,1,2) [2025-03-08 11:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634878', 'tblTempUsageDetail_20' ) start [2025-03-08 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634878', 'tblTempUsageDetail_20' ) end [2025-03-08 11:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:34:23] Production.INFO: ==29818== Releasing lock... [2025-03-08 11:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:34:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-08 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:35:05 [end_date_ymd] => 2025-03-08 11:35:05 [RateCDR] => 1 ) [2025-03-08 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:35:05' and `end` < '2025-03-08 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:35:17] Production.INFO: count ==1507 [2025-03-08 11:35:17] Production.ERROR: pbx CDR StartTime 2025-03-08 08:35:05 - End Time 2025-03-08 11:35:05 [2025-03-08 11:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634883', 'tblTempUsageDetail_20' ) start [2025-03-08 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634883', 'tblTempUsageDetail_20' ) end [2025-03-08 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634883', 'tblTempVendorCDR_20' ) start [2025-03-08 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634883', 'tblTempVendorCDR_20' ) end [2025-03-08 11:35:18] Production.INFO: ProcessCDR(1,14634883,1,1,2) [2025-03-08 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634883', 'tblTempUsageDetail_20' ) start [2025-03-08 11:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634883', 'tblTempUsageDetail_20' ) end [2025-03-08 11:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:35:21] Production.INFO: ==29894== Releasing lock... [2025-03-08 11:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:35:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-08 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:36:05 [end_date_ymd] => 2025-03-08 11:36:05 [RateCDR] => 1 ) [2025-03-08 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:36:05' and `end` < '2025-03-08 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:36:18] Production.INFO: count ==1514 [2025-03-08 11:36:19] Production.ERROR: pbx CDR StartTime 2025-03-08 08:36:05 - End Time 2025-03-08 11:36:05 [2025-03-08 11:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634888', 'tblTempUsageDetail_20' ) start [2025-03-08 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634888', 'tblTempUsageDetail_20' ) end [2025-03-08 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634888', 'tblTempVendorCDR_20' ) start [2025-03-08 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634888', 'tblTempVendorCDR_20' ) end [2025-03-08 11:36:19] Production.INFO: ProcessCDR(1,14634888,1,1,2) [2025-03-08 11:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634888', 'tblTempUsageDetail_20' ) start [2025-03-08 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634888', 'tblTempUsageDetail_20' ) end [2025-03-08 11:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:36:23] Production.INFO: ==29969== Releasing lock... [2025-03-08 11:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:36:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:37:05 [end_date_ymd] => 2025-03-08 11:37:05 [RateCDR] => 1 ) [2025-03-08 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:37:05' and `end` < '2025-03-08 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:37:17] Production.INFO: count ==1515 [2025-03-08 11:37:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:37:05 - End Time 2025-03-08 11:37:05 [2025-03-08 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634893', 'tblTempUsageDetail_20' ) start [2025-03-08 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634893', 'tblTempUsageDetail_20' ) end [2025-03-08 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634893', 'tblTempVendorCDR_20' ) start [2025-03-08 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634893', 'tblTempVendorCDR_20' ) end [2025-03-08 11:37:18] Production.INFO: ProcessCDR(1,14634893,1,1,2) [2025-03-08 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634893', 'tblTempUsageDetail_20' ) start [2025-03-08 11:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634893', 'tblTempUsageDetail_20' ) end [2025-03-08 11:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:37:22] Production.INFO: ==30045== Releasing lock... [2025-03-08 11:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:37:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:38:05 [end_date_ymd] => 2025-03-08 11:38:05 [RateCDR] => 1 ) [2025-03-08 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:38:05' and `end` < '2025-03-08 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:38:17] Production.INFO: count ==1511 [2025-03-08 11:38:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:38:05 - End Time 2025-03-08 11:38:05 [2025-03-08 11:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634898', 'tblTempUsageDetail_20' ) start [2025-03-08 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634898', 'tblTempUsageDetail_20' ) end [2025-03-08 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634898', 'tblTempVendorCDR_20' ) start [2025-03-08 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634898', 'tblTempVendorCDR_20' ) end [2025-03-08 11:38:18] Production.INFO: ProcessCDR(1,14634898,1,1,2) [2025-03-08 11:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634898', 'tblTempUsageDetail_20' ) start [2025-03-08 11:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634898', 'tblTempUsageDetail_20' ) end [2025-03-08 11:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:38:21] Production.INFO: ==30124== Releasing lock... [2025-03-08 11:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:38:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 11:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:39:04 [end_date_ymd] => 2025-03-08 11:39:04 [RateCDR] => 1 ) [2025-03-08 11:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:39:04' and `end` < '2025-03-08 11:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:39:17] Production.INFO: count ==1519 [2025-03-08 11:39:17] Production.ERROR: pbx CDR StartTime 2025-03-08 08:39:04 - End Time 2025-03-08 11:39:04 [2025-03-08 11:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634902', 'tblTempUsageDetail_20' ) start [2025-03-08 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634902', 'tblTempUsageDetail_20' ) end [2025-03-08 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634902', 'tblTempVendorCDR_20' ) start [2025-03-08 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634902', 'tblTempVendorCDR_20' ) end [2025-03-08 11:39:18] Production.INFO: ProcessCDR(1,14634902,1,1,2) [2025-03-08 11:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634902', 'tblTempUsageDetail_20' ) start [2025-03-08 11:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634902', 'tblTempUsageDetail_20' ) end [2025-03-08 11:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:39:22] Production.INFO: ==30203== Releasing lock... [2025-03-08 11:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:39:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-08 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:40:05 [end_date_ymd] => 2025-03-08 11:40:05 [RateCDR] => 1 ) [2025-03-08 11:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:40:05' and `end` < '2025-03-08 11:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:40:18] Production.INFO: count ==1533 [2025-03-08 11:40:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:40:05 - End Time 2025-03-08 11:40:05 [2025-03-08 11:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634907', 'tblTempUsageDetail_20' ) start [2025-03-08 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634907', 'tblTempUsageDetail_20' ) end [2025-03-08 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634907', 'tblTempVendorCDR_20' ) start [2025-03-08 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634907', 'tblTempVendorCDR_20' ) end [2025-03-08 11:40:18] Production.INFO: ProcessCDR(1,14634907,1,1,2) [2025-03-08 11:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634907', 'tblTempUsageDetail_20' ) start [2025-03-08 11:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634907', 'tblTempUsageDetail_20' ) end [2025-03-08 11:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:40:22] Production.INFO: ==30274== Releasing lock... [2025-03-08 11:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:40:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:41:04 [end_date_ymd] => 2025-03-08 11:41:04 [RateCDR] => 1 ) [2025-03-08 11:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:41:04' and `end` < '2025-03-08 11:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:41:17] Production.INFO: count ==1584 [2025-03-08 11:41:17] Production.ERROR: pbx CDR StartTime 2025-03-08 08:41:04 - End Time 2025-03-08 11:41:04 [2025-03-08 11:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634914', 'tblTempUsageDetail_20' ) start [2025-03-08 11:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634914', 'tblTempUsageDetail_20' ) end [2025-03-08 11:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634914', 'tblTempVendorCDR_20' ) start [2025-03-08 11:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634914', 'tblTempVendorCDR_20' ) end [2025-03-08 11:41:17] Production.INFO: ProcessCDR(1,14634914,1,1,2) [2025-03-08 11:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634914', 'tblTempUsageDetail_20' ) start [2025-03-08 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634914', 'tblTempUsageDetail_20' ) end [2025-03-08 11:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:41:22] Production.INFO: ==30351== Releasing lock... [2025-03-08 11:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:41:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:42:05 [end_date_ymd] => 2025-03-08 11:42:05 [RateCDR] => 1 ) [2025-03-08 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:42:05' and `end` < '2025-03-08 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:42:17] Production.INFO: count ==1579 [2025-03-08 11:42:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:42:05 - End Time 2025-03-08 11:42:05 [2025-03-08 11:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634919', 'tblTempUsageDetail_20' ) start [2025-03-08 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634919', 'tblTempUsageDetail_20' ) end [2025-03-08 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634919', 'tblTempVendorCDR_20' ) start [2025-03-08 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634919', 'tblTempVendorCDR_20' ) end [2025-03-08 11:42:18] Production.INFO: ProcessCDR(1,14634919,1,1,2) [2025-03-08 11:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634919', 'tblTempUsageDetail_20' ) start [2025-03-08 11:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634919', 'tblTempUsageDetail_20' ) end [2025-03-08 11:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:42:21] Production.INFO: ==30426== Releasing lock... [2025-03-08 11:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:42:21] Production.INFO: 40 MB #Memory Used# [2025-03-08 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:43:06 [end_date_ymd] => 2025-03-08 11:43:06 [RateCDR] => 1 ) [2025-03-08 11:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:43:06' and `end` < '2025-03-08 11:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:43:18] Production.INFO: count ==1585 [2025-03-08 11:43:19] Production.ERROR: pbx CDR StartTime 2025-03-08 08:43:06 - End Time 2025-03-08 11:43:06 [2025-03-08 11:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634924', 'tblTempUsageDetail_20' ) start [2025-03-08 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634924', 'tblTempUsageDetail_20' ) end [2025-03-08 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634924', 'tblTempVendorCDR_20' ) start [2025-03-08 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634924', 'tblTempVendorCDR_20' ) end [2025-03-08 11:43:19] Production.INFO: ProcessCDR(1,14634924,1,1,2) [2025-03-08 11:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634924', 'tblTempUsageDetail_20' ) start [2025-03-08 11:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634924', 'tblTempUsageDetail_20' ) end [2025-03-08 11:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:43:22] Production.INFO: ==30500== Releasing lock... [2025-03-08 11:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:43:22] Production.INFO: 40 MB #Memory Used# [2025-03-08 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:44:05 [end_date_ymd] => 2025-03-08 11:44:05 [RateCDR] => 1 ) [2025-03-08 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:44:05' and `end` < '2025-03-08 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:44:17] Production.INFO: count ==1586 [2025-03-08 11:44:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:44:05 - End Time 2025-03-08 11:44:05 [2025-03-08 11:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634929', 'tblTempUsageDetail_20' ) start [2025-03-08 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634929', 'tblTempUsageDetail_20' ) end [2025-03-08 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634929', 'tblTempVendorCDR_20' ) start [2025-03-08 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634929', 'tblTempVendorCDR_20' ) end [2025-03-08 11:44:18] Production.INFO: ProcessCDR(1,14634929,1,1,2) [2025-03-08 11:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634929', 'tblTempUsageDetail_20' ) start [2025-03-08 11:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634929', 'tblTempUsageDetail_20' ) end [2025-03-08 11:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:44:21] Production.INFO: ==30575== Releasing lock... [2025-03-08 11:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:44:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:45:06 [end_date_ymd] => 2025-03-08 11:45:06 [RateCDR] => 1 ) [2025-03-08 11:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:45:06' and `end` < '2025-03-08 11:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:45:18] Production.INFO: count ==1587 [2025-03-08 11:45:19] Production.ERROR: pbx CDR StartTime 2025-03-08 08:45:06 - End Time 2025-03-08 11:45:06 [2025-03-08 11:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634934', 'tblTempUsageDetail_20' ) start [2025-03-08 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634934', 'tblTempUsageDetail_20' ) end [2025-03-08 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634934', 'tblTempVendorCDR_20' ) start [2025-03-08 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634934', 'tblTempVendorCDR_20' ) end [2025-03-08 11:45:19] Production.INFO: ProcessCDR(1,14634934,1,1,2) [2025-03-08 11:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634934', 'tblTempUsageDetail_20' ) start [2025-03-08 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634934', 'tblTempUsageDetail_20' ) end [2025-03-08 11:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:45:23] Production.INFO: ==30649== Releasing lock... [2025-03-08 11:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:45:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:46:05 [end_date_ymd] => 2025-03-08 11:46:05 [RateCDR] => 1 ) [2025-03-08 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:46:05' and `end` < '2025-03-08 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:46:17] Production.INFO: count ==1582 [2025-03-08 11:46:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:46:05 - End Time 2025-03-08 11:46:05 [2025-03-08 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634939', 'tblTempUsageDetail_20' ) start [2025-03-08 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634939', 'tblTempUsageDetail_20' ) end [2025-03-08 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634939', 'tblTempVendorCDR_20' ) start [2025-03-08 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634939', 'tblTempVendorCDR_20' ) end [2025-03-08 11:46:18] Production.INFO: ProcessCDR(1,14634939,1,1,2) [2025-03-08 11:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634939', 'tblTempUsageDetail_20' ) start [2025-03-08 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634939', 'tblTempUsageDetail_20' ) end [2025-03-08 11:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:46:21] Production.INFO: ==30729== Releasing lock... [2025-03-08 11:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:46:21] Production.INFO: 40 MB #Memory Used# [2025-03-08 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:47:05 [end_date_ymd] => 2025-03-08 11:47:05 [RateCDR] => 1 ) [2025-03-08 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:47:05' and `end` < '2025-03-08 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:47:17] Production.INFO: count ==1583 [2025-03-08 11:47:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:47:05 - End Time 2025-03-08 11:47:05 [2025-03-08 11:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634944', 'tblTempUsageDetail_20' ) start [2025-03-08 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634944', 'tblTempUsageDetail_20' ) end [2025-03-08 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634944', 'tblTempVendorCDR_20' ) start [2025-03-08 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634944', 'tblTempVendorCDR_20' ) end [2025-03-08 11:47:18] Production.INFO: ProcessCDR(1,14634944,1,1,2) [2025-03-08 11:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634944', 'tblTempUsageDetail_20' ) start [2025-03-08 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634944', 'tblTempUsageDetail_20' ) end [2025-03-08 11:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:47:23] Production.INFO: ==30804== Releasing lock... [2025-03-08 11:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:47:23] Production.INFO: 40 MB #Memory Used# [2025-03-08 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:48:05 [end_date_ymd] => 2025-03-08 11:48:05 [RateCDR] => 1 ) [2025-03-08 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:48:05' and `end` < '2025-03-08 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:48:17] Production.INFO: count ==1583 [2025-03-08 11:48:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:48:05 - End Time 2025-03-08 11:48:05 [2025-03-08 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634949', 'tblTempUsageDetail_20' ) start [2025-03-08 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634949', 'tblTempUsageDetail_20' ) end [2025-03-08 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634949', 'tblTempVendorCDR_20' ) start [2025-03-08 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634949', 'tblTempVendorCDR_20' ) end [2025-03-08 11:48:18] Production.INFO: ProcessCDR(1,14634949,1,1,2) [2025-03-08 11:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634949', 'tblTempUsageDetail_20' ) start [2025-03-08 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634949', 'tblTempUsageDetail_20' ) end [2025-03-08 11:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:48:23] Production.INFO: ==30875== Releasing lock... [2025-03-08 11:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:48:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:49:05 [end_date_ymd] => 2025-03-08 11:49:05 [RateCDR] => 1 ) [2025-03-08 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:49:05' and `end` < '2025-03-08 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:49:17] Production.INFO: count ==1581 [2025-03-08 11:49:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:49:05 - End Time 2025-03-08 11:49:05 [2025-03-08 11:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634954', 'tblTempUsageDetail_20' ) start [2025-03-08 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634954', 'tblTempUsageDetail_20' ) end [2025-03-08 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634954', 'tblTempVendorCDR_20' ) start [2025-03-08 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634954', 'tblTempVendorCDR_20' ) end [2025-03-08 11:49:18] Production.INFO: ProcessCDR(1,14634954,1,1,2) [2025-03-08 11:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634954', 'tblTempUsageDetail_20' ) start [2025-03-08 11:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634954', 'tblTempUsageDetail_20' ) end [2025-03-08 11:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:49:22] Production.INFO: ==30988== Releasing lock... [2025-03-08 11:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:49:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:50:06 [end_date_ymd] => 2025-03-08 11:50:06 [RateCDR] => 1 ) [2025-03-08 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:50:06' and `end` < '2025-03-08 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:50:19] Production.INFO: count ==1582 [2025-03-08 11:50:19] Production.ERROR: pbx CDR StartTime 2025-03-08 08:50:06 - End Time 2025-03-08 11:50:06 [2025-03-08 11:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634960', 'tblTempUsageDetail_20' ) start [2025-03-08 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634960', 'tblTempUsageDetail_20' ) end [2025-03-08 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634960', 'tblTempVendorCDR_20' ) start [2025-03-08 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634960', 'tblTempVendorCDR_20' ) end [2025-03-08 11:50:19] Production.INFO: ProcessCDR(1,14634960,1,1,2) [2025-03-08 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634960', 'tblTempUsageDetail_20' ) start [2025-03-08 11:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634960', 'tblTempUsageDetail_20' ) end [2025-03-08 11:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:50:24] Production.INFO: ==31065== Releasing lock... [2025-03-08 11:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:50:24] Production.INFO: 40 MB #Memory Used# [2025-03-08 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:51:05 [end_date_ymd] => 2025-03-08 11:51:05 [RateCDR] => 1 ) [2025-03-08 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:51:05' and `end` < '2025-03-08 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:51:17] Production.INFO: count ==1616 [2025-03-08 11:51:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:51:05 - End Time 2025-03-08 11:51:05 [2025-03-08 11:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634965', 'tblTempUsageDetail_20' ) start [2025-03-08 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634965', 'tblTempUsageDetail_20' ) end [2025-03-08 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634965', 'tblTempVendorCDR_20' ) start [2025-03-08 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634965', 'tblTempVendorCDR_20' ) end [2025-03-08 11:51:18] Production.INFO: ProcessCDR(1,14634965,1,1,2) [2025-03-08 11:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634965', 'tblTempUsageDetail_20' ) start [2025-03-08 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634965', 'tblTempUsageDetail_20' ) end [2025-03-08 11:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:51:22] Production.INFO: ==31142== Releasing lock... [2025-03-08 11:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:51:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 11:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:52:04 [end_date_ymd] => 2025-03-08 11:52:04 [RateCDR] => 1 ) [2025-03-08 11:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:52:04' and `end` < '2025-03-08 11:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:52:16] Production.INFO: count ==1630 [2025-03-08 11:52:17] Production.ERROR: pbx CDR StartTime 2025-03-08 08:52:04 - End Time 2025-03-08 11:52:04 [2025-03-08 11:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634970', 'tblTempUsageDetail_20' ) start [2025-03-08 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634970', 'tblTempUsageDetail_20' ) end [2025-03-08 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634970', 'tblTempVendorCDR_20' ) start [2025-03-08 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634970', 'tblTempVendorCDR_20' ) end [2025-03-08 11:52:17] Production.INFO: ProcessCDR(1,14634970,1,1,2) [2025-03-08 11:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634970', 'tblTempUsageDetail_20' ) start [2025-03-08 11:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634970', 'tblTempUsageDetail_20' ) end [2025-03-08 11:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:52:22] Production.INFO: ==31214== Releasing lock... [2025-03-08 11:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:52:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:53:05 [end_date_ymd] => 2025-03-08 11:53:05 [RateCDR] => 1 ) [2025-03-08 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:53:05' and `end` < '2025-03-08 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:53:17] Production.INFO: count ==1630 [2025-03-08 11:53:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:53:05 - End Time 2025-03-08 11:53:05 [2025-03-08 11:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634975', 'tblTempUsageDetail_20' ) start [2025-03-08 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634975', 'tblTempUsageDetail_20' ) end [2025-03-08 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634975', 'tblTempVendorCDR_20' ) start [2025-03-08 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634975', 'tblTempVendorCDR_20' ) end [2025-03-08 11:53:18] Production.INFO: ProcessCDR(1,14634975,1,1,2) [2025-03-08 11:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634975', 'tblTempUsageDetail_20' ) start [2025-03-08 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634975', 'tblTempUsageDetail_20' ) end [2025-03-08 11:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:53:23] Production.INFO: ==31296== Releasing lock... [2025-03-08 11:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:53:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:54:06 [end_date_ymd] => 2025-03-08 11:54:06 [RateCDR] => 1 ) [2025-03-08 11:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:54:06' and `end` < '2025-03-08 11:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:54:18] Production.INFO: count ==1629 [2025-03-08 11:54:19] Production.ERROR: pbx CDR StartTime 2025-03-08 08:54:06 - End Time 2025-03-08 11:54:06 [2025-03-08 11:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634980', 'tblTempUsageDetail_20' ) start [2025-03-08 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634980', 'tblTempUsageDetail_20' ) end [2025-03-08 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634980', 'tblTempVendorCDR_20' ) start [2025-03-08 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634980', 'tblTempVendorCDR_20' ) end [2025-03-08 11:54:19] Production.INFO: ProcessCDR(1,14634980,1,1,2) [2025-03-08 11:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634980', 'tblTempUsageDetail_20' ) start [2025-03-08 11:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634980', 'tblTempUsageDetail_20' ) end [2025-03-08 11:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:54:22] Production.INFO: ==31374== Releasing lock... [2025-03-08 11:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:54:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:55:05 [end_date_ymd] => 2025-03-08 11:55:05 [RateCDR] => 1 ) [2025-03-08 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:55:05' and `end` < '2025-03-08 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:55:17] Production.INFO: count ==1627 [2025-03-08 11:55:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:55:05 - End Time 2025-03-08 11:55:05 [2025-03-08 11:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634985', 'tblTempUsageDetail_20' ) start [2025-03-08 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634985', 'tblTempUsageDetail_20' ) end [2025-03-08 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634985', 'tblTempVendorCDR_20' ) start [2025-03-08 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634985', 'tblTempVendorCDR_20' ) end [2025-03-08 11:55:18] Production.INFO: ProcessCDR(1,14634985,1,1,2) [2025-03-08 11:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634985', 'tblTempUsageDetail_20' ) start [2025-03-08 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634985', 'tblTempUsageDetail_20' ) end [2025-03-08 11:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:55:23] Production.INFO: ==31448== Releasing lock... [2025-03-08 11:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:55:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:56:05 [end_date_ymd] => 2025-03-08 11:56:05 [RateCDR] => 1 ) [2025-03-08 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:56:05' and `end` < '2025-03-08 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:56:18] Production.INFO: count ==1629 [2025-03-08 11:56:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:56:05 - End Time 2025-03-08 11:56:05 [2025-03-08 11:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634990', 'tblTempUsageDetail_20' ) start [2025-03-08 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634990', 'tblTempUsageDetail_20' ) end [2025-03-08 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634990', 'tblTempVendorCDR_20' ) start [2025-03-08 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634990', 'tblTempVendorCDR_20' ) end [2025-03-08 11:56:18] Production.INFO: ProcessCDR(1,14634990,1,1,2) [2025-03-08 11:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634990', 'tblTempUsageDetail_20' ) start [2025-03-08 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634990', 'tblTempUsageDetail_20' ) end [2025-03-08 11:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:56:22] Production.INFO: ==31524== Releasing lock... [2025-03-08 11:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:56:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:57:05 [end_date_ymd] => 2025-03-08 11:57:05 [RateCDR] => 1 ) [2025-03-08 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:57:05' and `end` < '2025-03-08 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:57:17] Production.INFO: count ==1635 [2025-03-08 11:57:18] Production.ERROR: pbx CDR StartTime 2025-03-08 08:57:05 - End Time 2025-03-08 11:57:05 [2025-03-08 11:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634995', 'tblTempUsageDetail_20' ) start [2025-03-08 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14634995', 'tblTempUsageDetail_20' ) end [2025-03-08 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634995', 'tblTempVendorCDR_20' ) start [2025-03-08 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14634995', 'tblTempVendorCDR_20' ) end [2025-03-08 11:57:18] Production.INFO: ProcessCDR(1,14634995,1,1,2) [2025-03-08 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14634995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14634995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14634995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14634995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634995', 'tblTempUsageDetail_20' ) start [2025-03-08 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14634995', 'tblTempUsageDetail_20' ) end [2025-03-08 11:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:57:23] Production.INFO: ==31597== Releasing lock... [2025-03-08 11:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:57:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:58:06 [end_date_ymd] => 2025-03-08 11:58:06 [RateCDR] => 1 ) [2025-03-08 11:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:58:06' and `end` < '2025-03-08 11:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:58:18] Production.INFO: count ==1634 [2025-03-08 11:58:19] Production.ERROR: pbx CDR StartTime 2025-03-08 08:58:06 - End Time 2025-03-08 11:58:06 [2025-03-08 11:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635000', 'tblTempUsageDetail_20' ) start [2025-03-08 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635000', 'tblTempUsageDetail_20' ) end [2025-03-08 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635000', 'tblTempVendorCDR_20' ) start [2025-03-08 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635000', 'tblTempVendorCDR_20' ) end [2025-03-08 11:58:19] Production.INFO: ProcessCDR(1,14635000,1,1,2) [2025-03-08 11:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635000', 'tblTempUsageDetail_20' ) start [2025-03-08 11:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635000', 'tblTempUsageDetail_20' ) end [2025-03-08 11:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:58:24] Production.INFO: ==31672== Releasing lock... [2025-03-08 11:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:58:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 08:59:05 [end_date_ymd] => 2025-03-08 11:59:05 [RateCDR] => 1 ) [2025-03-08 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 08:59:05' and `end` < '2025-03-08 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 11:59:17] Production.INFO: count ==1649 [2025-03-08 11:59:17] Production.ERROR: pbx CDR StartTime 2025-03-08 08:59:05 - End Time 2025-03-08 11:59:05 [2025-03-08 11:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 11:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635005', 'tblTempUsageDetail_20' ) start [2025-03-08 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635005', 'tblTempUsageDetail_20' ) end [2025-03-08 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635005', 'tblTempVendorCDR_20' ) start [2025-03-08 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635005', 'tblTempVendorCDR_20' ) end [2025-03-08 11:59:18] Production.INFO: ProcessCDR(1,14635005,1,1,2) [2025-03-08 11:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 11:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 11:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635005', 'tblTempUsageDetail_20' ) start [2025-03-08 11:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635005', 'tblTempUsageDetail_20' ) end [2025-03-08 11:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 11:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 11:59:21] Production.INFO: ==31740== Releasing lock... [2025-03-08 11:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 11:59:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:00:06 [end_date_ymd] => 2025-03-08 12:00:06 [RateCDR] => 1 ) [2025-03-08 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:00:06' and `end` < '2025-03-08 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:00:18] Production.INFO: count ==1643 [2025-03-08 12:00:19] Production.ERROR: pbx CDR StartTime 2025-03-08 09:00:06 - End Time 2025-03-08 12:00:06 [2025-03-08 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635011', 'tblTempUsageDetail_20' ) start [2025-03-08 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635011', 'tblTempUsageDetail_20' ) end [2025-03-08 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635011', 'tblTempVendorCDR_20' ) start [2025-03-08 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635011', 'tblTempVendorCDR_20' ) end [2025-03-08 12:00:19] Production.INFO: ProcessCDR(1,14635011,1,1,2) [2025-03-08 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635011', 'tblTempUsageDetail_20' ) start [2025-03-08 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635011', 'tblTempUsageDetail_20' ) end [2025-03-08 12:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:00:23] Production.INFO: ==31817== Releasing lock... [2025-03-08 12:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:00:23] Production.INFO: 40 MB #Memory Used# [2025-03-08 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:01:05 [end_date_ymd] => 2025-03-08 12:01:05 [RateCDR] => 1 ) [2025-03-08 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:01:05' and `end` < '2025-03-08 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:01:18] Production.INFO: count ==1654 [2025-03-08 12:01:19] Production.ERROR: pbx CDR StartTime 2025-03-08 09:01:05 - End Time 2025-03-08 12:01:05 [2025-03-08 12:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635016', 'tblTempUsageDetail_20' ) start [2025-03-08 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635016', 'tblTempUsageDetail_20' ) end [2025-03-08 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635016', 'tblTempVendorCDR_20' ) start [2025-03-08 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635016', 'tblTempVendorCDR_20' ) end [2025-03-08 12:01:19] Production.INFO: ProcessCDR(1,14635016,1,1,2) [2025-03-08 12:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635016', 'tblTempUsageDetail_20' ) start [2025-03-08 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635016', 'tblTempUsageDetail_20' ) end [2025-03-08 12:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:01:24] Production.INFO: ==31907== Releasing lock... [2025-03-08 12:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:01:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:02:06 [end_date_ymd] => 2025-03-08 12:02:06 [RateCDR] => 1 ) [2025-03-08 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:02:06' and `end` < '2025-03-08 12:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:02:18] Production.INFO: count ==1656 [2025-03-08 12:02:19] Production.ERROR: pbx CDR StartTime 2025-03-08 09:02:06 - End Time 2025-03-08 12:02:06 [2025-03-08 12:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635021', 'tblTempUsageDetail_20' ) start [2025-03-08 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635021', 'tblTempUsageDetail_20' ) end [2025-03-08 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635021', 'tblTempVendorCDR_20' ) start [2025-03-08 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635021', 'tblTempVendorCDR_20' ) end [2025-03-08 12:02:19] Production.INFO: ProcessCDR(1,14635021,1,1,2) [2025-03-08 12:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635021', 'tblTempUsageDetail_20' ) start [2025-03-08 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635021', 'tblTempUsageDetail_20' ) end [2025-03-08 12:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:02:22] Production.INFO: ==31978== Releasing lock... [2025-03-08 12:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:02:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:03:06 [end_date_ymd] => 2025-03-08 12:03:06 [RateCDR] => 1 ) [2025-03-08 12:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:03:06' and `end` < '2025-03-08 12:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:03:18] Production.INFO: count ==1651 [2025-03-08 12:03:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:03:06 - End Time 2025-03-08 12:03:06 [2025-03-08 12:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635026', 'tblTempUsageDetail_20' ) start [2025-03-08 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635026', 'tblTempUsageDetail_20' ) end [2025-03-08 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635026', 'tblTempVendorCDR_20' ) start [2025-03-08 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635026', 'tblTempVendorCDR_20' ) end [2025-03-08 12:03:19] Production.INFO: ProcessCDR(1,14635026,1,1,2) [2025-03-08 12:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635026', 'tblTempUsageDetail_20' ) start [2025-03-08 12:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635026', 'tblTempUsageDetail_20' ) end [2025-03-08 12:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:03:24] Production.INFO: ==32052== Releasing lock... [2025-03-08 12:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:03:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:04:06 [end_date_ymd] => 2025-03-08 12:04:06 [RateCDR] => 1 ) [2025-03-08 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:04:06' and `end` < '2025-03-08 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:04:18] Production.INFO: count ==1655 [2025-03-08 12:04:19] Production.ERROR: pbx CDR StartTime 2025-03-08 09:04:06 - End Time 2025-03-08 12:04:06 [2025-03-08 12:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635031', 'tblTempUsageDetail_20' ) start [2025-03-08 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635031', 'tblTempUsageDetail_20' ) end [2025-03-08 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635031', 'tblTempVendorCDR_20' ) start [2025-03-08 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635031', 'tblTempVendorCDR_20' ) end [2025-03-08 12:04:19] Production.INFO: ProcessCDR(1,14635031,1,1,2) [2025-03-08 12:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635031', 'tblTempUsageDetail_20' ) start [2025-03-08 12:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635031', 'tblTempUsageDetail_20' ) end [2025-03-08 12:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:04:24] Production.INFO: ==32130== Releasing lock... [2025-03-08 12:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:04:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:05:05 [end_date_ymd] => 2025-03-08 12:05:05 [RateCDR] => 1 ) [2025-03-08 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:05:05' and `end` < '2025-03-08 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:05:17] Production.INFO: count ==1651 [2025-03-08 12:05:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:05:05 - End Time 2025-03-08 12:05:05 [2025-03-08 12:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635036', 'tblTempUsageDetail_20' ) start [2025-03-08 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635036', 'tblTempUsageDetail_20' ) end [2025-03-08 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635036', 'tblTempVendorCDR_20' ) start [2025-03-08 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635036', 'tblTempVendorCDR_20' ) end [2025-03-08 12:05:18] Production.INFO: ProcessCDR(1,14635036,1,1,2) [2025-03-08 12:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635036', 'tblTempUsageDetail_20' ) start [2025-03-08 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635036', 'tblTempUsageDetail_20' ) end [2025-03-08 12:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:05:22] Production.INFO: ==32241== Releasing lock... [2025-03-08 12:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:05:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:06:05 [end_date_ymd] => 2025-03-08 12:06:05 [RateCDR] => 1 ) [2025-03-08 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:06:05' and `end` < '2025-03-08 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:06:17] Production.INFO: count ==1643 [2025-03-08 12:06:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:06:05 - End Time 2025-03-08 12:06:05 [2025-03-08 12:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635041', 'tblTempUsageDetail_20' ) start [2025-03-08 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635041', 'tblTempUsageDetail_20' ) end [2025-03-08 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635041', 'tblTempVendorCDR_20' ) start [2025-03-08 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635041', 'tblTempVendorCDR_20' ) end [2025-03-08 12:06:18] Production.INFO: ProcessCDR(1,14635041,1,1,2) [2025-03-08 12:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635041', 'tblTempUsageDetail_20' ) start [2025-03-08 12:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635041', 'tblTempUsageDetail_20' ) end [2025-03-08 12:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:06:23] Production.INFO: ==32316== Releasing lock... [2025-03-08 12:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:06:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:07:05 [end_date_ymd] => 2025-03-08 12:07:05 [RateCDR] => 1 ) [2025-03-08 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:07:05' and `end` < '2025-03-08 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:07:17] Production.INFO: count ==1643 [2025-03-08 12:07:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:07:05 - End Time 2025-03-08 12:07:05 [2025-03-08 12:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635046', 'tblTempUsageDetail_20' ) start [2025-03-08 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635046', 'tblTempUsageDetail_20' ) end [2025-03-08 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635046', 'tblTempVendorCDR_20' ) start [2025-03-08 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635046', 'tblTempVendorCDR_20' ) end [2025-03-08 12:07:18] Production.INFO: ProcessCDR(1,14635046,1,1,2) [2025-03-08 12:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635046', 'tblTempUsageDetail_20' ) start [2025-03-08 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635046', 'tblTempUsageDetail_20' ) end [2025-03-08 12:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:07:23] Production.INFO: ==32387== Releasing lock... [2025-03-08 12:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:07:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:08:05 [end_date_ymd] => 2025-03-08 12:08:05 [RateCDR] => 1 ) [2025-03-08 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:08:05' and `end` < '2025-03-08 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:08:18] Production.INFO: count ==1631 [2025-03-08 12:08:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:08:05 - End Time 2025-03-08 12:08:05 [2025-03-08 12:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635051', 'tblTempUsageDetail_20' ) start [2025-03-08 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635051', 'tblTempUsageDetail_20' ) end [2025-03-08 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635051', 'tblTempVendorCDR_20' ) start [2025-03-08 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635051', 'tblTempVendorCDR_20' ) end [2025-03-08 12:08:18] Production.INFO: ProcessCDR(1,14635051,1,1,2) [2025-03-08 12:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635051', 'tblTempUsageDetail_20' ) start [2025-03-08 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635051', 'tblTempUsageDetail_20' ) end [2025-03-08 12:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:08:22] Production.INFO: ==32467== Releasing lock... [2025-03-08 12:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:08:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:09:05 [end_date_ymd] => 2025-03-08 12:09:05 [RateCDR] => 1 ) [2025-03-08 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:09:05' and `end` < '2025-03-08 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:09:17] Production.INFO: count ==1622 [2025-03-08 12:09:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:09:05 - End Time 2025-03-08 12:09:05 [2025-03-08 12:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635056', 'tblTempUsageDetail_20' ) start [2025-03-08 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635056', 'tblTempUsageDetail_20' ) end [2025-03-08 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635056', 'tblTempVendorCDR_20' ) start [2025-03-08 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635056', 'tblTempVendorCDR_20' ) end [2025-03-08 12:09:18] Production.INFO: ProcessCDR(1,14635056,1,1,2) [2025-03-08 12:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635056', 'tblTempUsageDetail_20' ) start [2025-03-08 12:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635056', 'tblTempUsageDetail_20' ) end [2025-03-08 12:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:09:23] Production.INFO: ==32538== Releasing lock... [2025-03-08 12:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:09:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 12:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:10:06 [end_date_ymd] => 2025-03-08 12:10:06 [RateCDR] => 1 ) [2025-03-08 12:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:10:06' and `end` < '2025-03-08 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:10:19] Production.INFO: count ==1613 [2025-03-08 12:10:19] Production.ERROR: pbx CDR StartTime 2025-03-08 09:10:06 - End Time 2025-03-08 12:10:06 [2025-03-08 12:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635062', 'tblTempUsageDetail_20' ) start [2025-03-08 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635062', 'tblTempUsageDetail_20' ) end [2025-03-08 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635062', 'tblTempVendorCDR_20' ) start [2025-03-08 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635062', 'tblTempVendorCDR_20' ) end [2025-03-08 12:10:19] Production.INFO: ProcessCDR(1,14635062,1,1,2) [2025-03-08 12:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635062', 'tblTempUsageDetail_20' ) start [2025-03-08 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635062', 'tblTempUsageDetail_20' ) end [2025-03-08 12:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:10:23] Production.INFO: ==32615== Releasing lock... [2025-03-08 12:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:10:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:11:05 [end_date_ymd] => 2025-03-08 12:11:05 [RateCDR] => 1 ) [2025-03-08 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:11:05' and `end` < '2025-03-08 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:11:17] Production.INFO: count ==1602 [2025-03-08 12:11:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:11:05 - End Time 2025-03-08 12:11:05 [2025-03-08 12:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635067', 'tblTempUsageDetail_20' ) start [2025-03-08 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635067', 'tblTempUsageDetail_20' ) end [2025-03-08 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635067', 'tblTempVendorCDR_20' ) start [2025-03-08 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635067', 'tblTempVendorCDR_20' ) end [2025-03-08 12:11:18] Production.INFO: ProcessCDR(1,14635067,1,1,2) [2025-03-08 12:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635067', 'tblTempUsageDetail_20' ) start [2025-03-08 12:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635067', 'tblTempUsageDetail_20' ) end [2025-03-08 12:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:11:21] Production.INFO: ==32690== Releasing lock... [2025-03-08 12:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:11:21] Production.INFO: 40 MB #Memory Used# [2025-03-08 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:12:05 [end_date_ymd] => 2025-03-08 12:12:05 [RateCDR] => 1 ) [2025-03-08 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:12:05' and `end` < '2025-03-08 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:12:18] Production.INFO: count ==1595 [2025-03-08 12:12:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:12:05 - End Time 2025-03-08 12:12:05 [2025-03-08 12:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635072', 'tblTempUsageDetail_20' ) start [2025-03-08 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635072', 'tblTempUsageDetail_20' ) end [2025-03-08 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635072', 'tblTempVendorCDR_20' ) start [2025-03-08 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635072', 'tblTempVendorCDR_20' ) end [2025-03-08 12:12:18] Production.INFO: ProcessCDR(1,14635072,1,1,2) [2025-03-08 12:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635072', 'tblTempUsageDetail_20' ) start [2025-03-08 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635072', 'tblTempUsageDetail_20' ) end [2025-03-08 12:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:12:22] Production.INFO: ==32760== Releasing lock... [2025-03-08 12:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:12:22] Production.INFO: 40 MB #Memory Used# [2025-03-08 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:13:05 [end_date_ymd] => 2025-03-08 12:13:05 [RateCDR] => 1 ) [2025-03-08 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:13:05' and `end` < '2025-03-08 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:13:18] Production.INFO: count ==1608 [2025-03-08 12:13:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:13:05 - End Time 2025-03-08 12:13:05 [2025-03-08 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635077', 'tblTempUsageDetail_20' ) start [2025-03-08 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635077', 'tblTempUsageDetail_20' ) end [2025-03-08 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635077', 'tblTempVendorCDR_20' ) start [2025-03-08 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635077', 'tblTempVendorCDR_20' ) end [2025-03-08 12:13:18] Production.INFO: ProcessCDR(1,14635077,1,1,2) [2025-03-08 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635077', 'tblTempUsageDetail_20' ) start [2025-03-08 12:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635077', 'tblTempUsageDetail_20' ) end [2025-03-08 12:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:13:23] Production.INFO: ==385== Releasing lock... [2025-03-08 12:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:13:23] Production.INFO: 40 MB #Memory Used# [2025-03-08 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:14:06 [end_date_ymd] => 2025-03-08 12:14:06 [RateCDR] => 1 ) [2025-03-08 12:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:14:06' and `end` < '2025-03-08 12:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:14:18] Production.INFO: count ==1617 [2025-03-08 12:14:19] Production.ERROR: pbx CDR StartTime 2025-03-08 09:14:06 - End Time 2025-03-08 12:14:06 [2025-03-08 12:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635082', 'tblTempUsageDetail_20' ) start [2025-03-08 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635082', 'tblTempUsageDetail_20' ) end [2025-03-08 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635082', 'tblTempVendorCDR_20' ) start [2025-03-08 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635082', 'tblTempVendorCDR_20' ) end [2025-03-08 12:14:19] Production.INFO: ProcessCDR(1,14635082,1,1,2) [2025-03-08 12:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635082', 'tblTempUsageDetail_20' ) start [2025-03-08 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635082', 'tblTempUsageDetail_20' ) end [2025-03-08 12:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:14:22] Production.INFO: ==458== Releasing lock... [2025-03-08 12:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:14:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:15:05 [end_date_ymd] => 2025-03-08 12:15:05 [RateCDR] => 1 ) [2025-03-08 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:15:05' and `end` < '2025-03-08 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:15:17] Production.INFO: count ==1611 [2025-03-08 12:15:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:15:05 - End Time 2025-03-08 12:15:05 [2025-03-08 12:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635087', 'tblTempUsageDetail_20' ) start [2025-03-08 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635087', 'tblTempUsageDetail_20' ) end [2025-03-08 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635087', 'tblTempVendorCDR_20' ) start [2025-03-08 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635087', 'tblTempVendorCDR_20' ) end [2025-03-08 12:15:18] Production.INFO: ProcessCDR(1,14635087,1,1,2) [2025-03-08 12:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635087', 'tblTempUsageDetail_20' ) start [2025-03-08 12:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635087', 'tblTempUsageDetail_20' ) end [2025-03-08 12:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:15:21] Production.INFO: ==534== Releasing lock... [2025-03-08 12:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:15:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:16:05 [end_date_ymd] => 2025-03-08 12:16:05 [RateCDR] => 1 ) [2025-03-08 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:16:05' and `end` < '2025-03-08 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:16:18] Production.INFO: count ==1608 [2025-03-08 12:16:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:16:05 - End Time 2025-03-08 12:16:05 [2025-03-08 12:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635092', 'tblTempUsageDetail_20' ) start [2025-03-08 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635092', 'tblTempUsageDetail_20' ) end [2025-03-08 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635092', 'tblTempVendorCDR_20' ) start [2025-03-08 12:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635092', 'tblTempVendorCDR_20' ) end [2025-03-08 12:16:18] Production.INFO: ProcessCDR(1,14635092,1,1,2) [2025-03-08 12:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635092', 'tblTempUsageDetail_20' ) start [2025-03-08 12:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635092', 'tblTempUsageDetail_20' ) end [2025-03-08 12:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:16:22] Production.INFO: ==610== Releasing lock... [2025-03-08 12:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:16:22] Production.INFO: 40 MB #Memory Used# [2025-03-08 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:17:05 [end_date_ymd] => 2025-03-08 12:17:05 [RateCDR] => 1 ) [2025-03-08 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:17:05' and `end` < '2025-03-08 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:17:17] Production.INFO: count ==1615 [2025-03-08 12:17:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:17:05 - End Time 2025-03-08 12:17:05 [2025-03-08 12:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635097', 'tblTempUsageDetail_20' ) start [2025-03-08 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635097', 'tblTempUsageDetail_20' ) end [2025-03-08 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635097', 'tblTempVendorCDR_20' ) start [2025-03-08 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635097', 'tblTempVendorCDR_20' ) end [2025-03-08 12:17:18] Production.INFO: ProcessCDR(1,14635097,1,1,2) [2025-03-08 12:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635097', 'tblTempUsageDetail_20' ) start [2025-03-08 12:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635097', 'tblTempUsageDetail_20' ) end [2025-03-08 12:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:17:22] Production.INFO: ==709== Releasing lock... [2025-03-08 12:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:17:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:18:06 [end_date_ymd] => 2025-03-08 12:18:06 [RateCDR] => 1 ) [2025-03-08 12:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:18:06' and `end` < '2025-03-08 12:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:18:18] Production.INFO: count ==1611 [2025-03-08 12:18:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:18:06 - End Time 2025-03-08 12:18:06 [2025-03-08 12:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635102', 'tblTempUsageDetail_20' ) start [2025-03-08 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635102', 'tblTempUsageDetail_20' ) end [2025-03-08 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635102', 'tblTempVendorCDR_20' ) start [2025-03-08 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635102', 'tblTempVendorCDR_20' ) end [2025-03-08 12:18:19] Production.INFO: ProcessCDR(1,14635102,1,1,2) [2025-03-08 12:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635102', 'tblTempUsageDetail_20' ) start [2025-03-08 12:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635102', 'tblTempUsageDetail_20' ) end [2025-03-08 12:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:18:24] Production.INFO: ==795== Releasing lock... [2025-03-08 12:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:18:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:19:05 [end_date_ymd] => 2025-03-08 12:19:05 [RateCDR] => 1 ) [2025-03-08 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:19:05' and `end` < '2025-03-08 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:19:18] Production.INFO: count ==1608 [2025-03-08 12:19:19] Production.ERROR: pbx CDR StartTime 2025-03-08 09:19:05 - End Time 2025-03-08 12:19:05 [2025-03-08 12:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635107', 'tblTempUsageDetail_20' ) start [2025-03-08 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635107', 'tblTempUsageDetail_20' ) end [2025-03-08 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635107', 'tblTempVendorCDR_20' ) start [2025-03-08 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635107', 'tblTempVendorCDR_20' ) end [2025-03-08 12:19:19] Production.INFO: ProcessCDR(1,14635107,1,1,2) [2025-03-08 12:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635107', 'tblTempUsageDetail_20' ) start [2025-03-08 12:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635107', 'tblTempUsageDetail_20' ) end [2025-03-08 12:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:19:22] Production.INFO: ==867== Releasing lock... [2025-03-08 12:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:19:22] Production.INFO: 40 MB #Memory Used# [2025-03-08 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:20:06 [end_date_ymd] => 2025-03-08 12:20:06 [RateCDR] => 1 ) [2025-03-08 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:20:06' and `end` < '2025-03-08 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:20:19] Production.INFO: count ==1612 [2025-03-08 12:20:19] Production.ERROR: pbx CDR StartTime 2025-03-08 09:20:06 - End Time 2025-03-08 12:20:06 [2025-03-08 12:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635113', 'tblTempUsageDetail_20' ) start [2025-03-08 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635113', 'tblTempUsageDetail_20' ) end [2025-03-08 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635113', 'tblTempVendorCDR_20' ) start [2025-03-08 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635113', 'tblTempVendorCDR_20' ) end [2025-03-08 12:20:19] Production.INFO: ProcessCDR(1,14635113,1,1,2) [2025-03-08 12:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635113', 'tblTempUsageDetail_20' ) start [2025-03-08 12:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635113', 'tblTempUsageDetail_20' ) end [2025-03-08 12:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:20:25] Production.INFO: ==984== Releasing lock... [2025-03-08 12:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:20:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:21:05 [end_date_ymd] => 2025-03-08 12:21:05 [RateCDR] => 1 ) [2025-03-08 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:21:05' and `end` < '2025-03-08 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:21:17] Production.INFO: count ==1636 [2025-03-08 12:21:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:21:05 - End Time 2025-03-08 12:21:05 [2025-03-08 12:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635118', 'tblTempUsageDetail_20' ) start [2025-03-08 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635118', 'tblTempUsageDetail_20' ) end [2025-03-08 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635118', 'tblTempVendorCDR_20' ) start [2025-03-08 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635118', 'tblTempVendorCDR_20' ) end [2025-03-08 12:21:18] Production.INFO: ProcessCDR(1,14635118,1,1,2) [2025-03-08 12:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635118', 'tblTempUsageDetail_20' ) start [2025-03-08 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635118', 'tblTempUsageDetail_20' ) end [2025-03-08 12:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:21:23] Production.INFO: ==1059== Releasing lock... [2025-03-08 12:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:21:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:22:05 [end_date_ymd] => 2025-03-08 12:22:05 [RateCDR] => 1 ) [2025-03-08 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:22:05' and `end` < '2025-03-08 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:22:18] Production.INFO: count ==1655 [2025-03-08 12:22:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:22:05 - End Time 2025-03-08 12:22:05 [2025-03-08 12:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635123', 'tblTempUsageDetail_20' ) start [2025-03-08 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635123', 'tblTempUsageDetail_20' ) end [2025-03-08 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635123', 'tblTempVendorCDR_20' ) start [2025-03-08 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635123', 'tblTempVendorCDR_20' ) end [2025-03-08 12:22:18] Production.INFO: ProcessCDR(1,14635123,1,1,2) [2025-03-08 12:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635123', 'tblTempUsageDetail_20' ) start [2025-03-08 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635123', 'tblTempUsageDetail_20' ) end [2025-03-08 12:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:22:22] Production.INFO: ==1130== Releasing lock... [2025-03-08 12:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:22:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:23:05 [end_date_ymd] => 2025-03-08 12:23:05 [RateCDR] => 1 ) [2025-03-08 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:23:05' and `end` < '2025-03-08 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:23:17] Production.INFO: count ==1679 [2025-03-08 12:23:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:23:05 - End Time 2025-03-08 12:23:05 [2025-03-08 12:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635128', 'tblTempUsageDetail_20' ) start [2025-03-08 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635128', 'tblTempUsageDetail_20' ) end [2025-03-08 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635128', 'tblTempVendorCDR_20' ) start [2025-03-08 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635128', 'tblTempVendorCDR_20' ) end [2025-03-08 12:23:18] Production.INFO: ProcessCDR(1,14635128,1,1,2) [2025-03-08 12:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635128', 'tblTempUsageDetail_20' ) start [2025-03-08 12:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635128', 'tblTempUsageDetail_20' ) end [2025-03-08 12:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:23:21] Production.INFO: ==1207== Releasing lock... [2025-03-08 12:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:23:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:24:06 [end_date_ymd] => 2025-03-08 12:24:06 [RateCDR] => 1 ) [2025-03-08 12:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:24:06' and `end` < '2025-03-08 12:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:24:18] Production.INFO: count ==1685 [2025-03-08 12:24:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:24:06 - End Time 2025-03-08 12:24:06 [2025-03-08 12:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635133', 'tblTempUsageDetail_20' ) start [2025-03-08 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635133', 'tblTempUsageDetail_20' ) end [2025-03-08 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635133', 'tblTempVendorCDR_20' ) start [2025-03-08 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635133', 'tblTempVendorCDR_20' ) end [2025-03-08 12:24:18] Production.INFO: ProcessCDR(1,14635133,1,1,2) [2025-03-08 12:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635133', 'tblTempUsageDetail_20' ) start [2025-03-08 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635133', 'tblTempUsageDetail_20' ) end [2025-03-08 12:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:24:22] Production.INFO: ==1296== Releasing lock... [2025-03-08 12:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:24:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 12:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:25:04 [end_date_ymd] => 2025-03-08 12:25:04 [RateCDR] => 1 ) [2025-03-08 12: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-03-08 09:25:04' and `end` < '2025-03-08 12: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-03-08 12:25:17] Production.INFO: count ==1687 [2025-03-08 12:25:17] Production.ERROR: pbx CDR StartTime 2025-03-08 09:25:04 - End Time 2025-03-08 12:25:04 [2025-03-08 12:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635138', 'tblTempUsageDetail_20' ) start [2025-03-08 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635138', 'tblTempUsageDetail_20' ) end [2025-03-08 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635138', 'tblTempVendorCDR_20' ) start [2025-03-08 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635138', 'tblTempVendorCDR_20' ) end [2025-03-08 12:25:18] Production.INFO: ProcessCDR(1,14635138,1,1,2) [2025-03-08 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635138', 'tblTempUsageDetail_20' ) start [2025-03-08 12:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635138', 'tblTempUsageDetail_20' ) end [2025-03-08 12:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:25:22] Production.INFO: ==1375== Releasing lock... [2025-03-08 12:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:25:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:26:05 [end_date_ymd] => 2025-03-08 12:26:05 [RateCDR] => 1 ) [2025-03-08 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:26:05' and `end` < '2025-03-08 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:26:17] Production.INFO: count ==1692 [2025-03-08 12:26:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:26:05 - End Time 2025-03-08 12:26:05 [2025-03-08 12:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635143', 'tblTempUsageDetail_20' ) start [2025-03-08 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635143', 'tblTempUsageDetail_20' ) end [2025-03-08 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635143', 'tblTempVendorCDR_20' ) start [2025-03-08 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635143', 'tblTempVendorCDR_20' ) end [2025-03-08 12:26:18] Production.INFO: ProcessCDR(1,14635143,1,1,2) [2025-03-08 12:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635143', 'tblTempUsageDetail_20' ) start [2025-03-08 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635143', 'tblTempUsageDetail_20' ) end [2025-03-08 12:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:26:22] Production.INFO: ==1451== Releasing lock... [2025-03-08 12:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:26:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:27:05 [end_date_ymd] => 2025-03-08 12:27:05 [RateCDR] => 1 ) [2025-03-08 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:27:05' and `end` < '2025-03-08 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:27:17] Production.INFO: count ==1692 [2025-03-08 12:27:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:27:05 - End Time 2025-03-08 12:27:05 [2025-03-08 12:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635148', 'tblTempUsageDetail_20' ) start [2025-03-08 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635148', 'tblTempUsageDetail_20' ) end [2025-03-08 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635148', 'tblTempVendorCDR_20' ) start [2025-03-08 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635148', 'tblTempVendorCDR_20' ) end [2025-03-08 12:27:18] Production.INFO: ProcessCDR(1,14635148,1,1,2) [2025-03-08 12:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635148', 'tblTempUsageDetail_20' ) start [2025-03-08 12:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635148', 'tblTempUsageDetail_20' ) end [2025-03-08 12:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:27:21] Production.INFO: ==1555== Releasing lock... [2025-03-08 12:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:27:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:28:05 [end_date_ymd] => 2025-03-08 12:28:05 [RateCDR] => 1 ) [2025-03-08 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:28:05' and `end` < '2025-03-08 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:28:18] Production.INFO: count ==1692 [2025-03-08 12:28:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:28:05 - End Time 2025-03-08 12:28:05 [2025-03-08 12:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635153', 'tblTempUsageDetail_20' ) start [2025-03-08 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635153', 'tblTempUsageDetail_20' ) end [2025-03-08 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635153', 'tblTempVendorCDR_20' ) start [2025-03-08 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635153', 'tblTempVendorCDR_20' ) end [2025-03-08 12:28:18] Production.INFO: ProcessCDR(1,14635153,1,1,2) [2025-03-08 12:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635153', 'tblTempUsageDetail_20' ) start [2025-03-08 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635153', 'tblTempUsageDetail_20' ) end [2025-03-08 12:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:28:23] Production.INFO: ==1630== Releasing lock... [2025-03-08 12:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:28:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:29:05 [end_date_ymd] => 2025-03-08 12:29:05 [RateCDR] => 1 ) [2025-03-08 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:29:05' and `end` < '2025-03-08 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:29:18] Production.INFO: count ==1689 [2025-03-08 12:29:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:29:05 - End Time 2025-03-08 12:29:05 [2025-03-08 12:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635158', 'tblTempUsageDetail_20' ) start [2025-03-08 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635158', 'tblTempUsageDetail_20' ) end [2025-03-08 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635158', 'tblTempVendorCDR_20' ) start [2025-03-08 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635158', 'tblTempVendorCDR_20' ) end [2025-03-08 12:29:18] Production.INFO: ProcessCDR(1,14635158,1,1,2) [2025-03-08 12:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635158', 'tblTempUsageDetail_20' ) start [2025-03-08 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635158', 'tblTempUsageDetail_20' ) end [2025-03-08 12:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:29:23] Production.INFO: ==1706== Releasing lock... [2025-03-08 12:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:29:23] Production.INFO: 41 MB #Memory Used# [2025-03-08 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:30:06 [end_date_ymd] => 2025-03-08 12:30:06 [RateCDR] => 1 ) [2025-03-08 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:30:06' and `end` < '2025-03-08 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:30:18] Production.INFO: count ==1696 [2025-03-08 12:30:19] Production.ERROR: pbx CDR StartTime 2025-03-08 09:30:06 - End Time 2025-03-08 12:30:06 [2025-03-08 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635164', 'tblTempUsageDetail_20' ) start [2025-03-08 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635164', 'tblTempUsageDetail_20' ) end [2025-03-08 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635164', 'tblTempVendorCDR_20' ) start [2025-03-08 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635164', 'tblTempVendorCDR_20' ) end [2025-03-08 12:30:19] Production.INFO: ProcessCDR(1,14635164,1,1,2) [2025-03-08 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635164', 'tblTempUsageDetail_20' ) start [2025-03-08 12:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635164', 'tblTempUsageDetail_20' ) end [2025-03-08 12:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:30:24] Production.INFO: ==1778== Releasing lock... [2025-03-08 12:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:30:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:31:05 [end_date_ymd] => 2025-03-08 12:31:05 [RateCDR] => 1 ) [2025-03-08 12:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:31:05' and `end` < '2025-03-08 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:31:18] Production.INFO: count ==1725 [2025-03-08 12:31:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:31:05 - End Time 2025-03-08 12:31:05 [2025-03-08 12:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635169', 'tblTempUsageDetail_20' ) start [2025-03-08 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635169', 'tblTempUsageDetail_20' ) end [2025-03-08 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635169', 'tblTempVendorCDR_20' ) start [2025-03-08 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635169', 'tblTempVendorCDR_20' ) end [2025-03-08 12:31:19] Production.INFO: ProcessCDR(1,14635169,1,1,2) [2025-03-08 12:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635169', 'tblTempUsageDetail_20' ) start [2025-03-08 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635169', 'tblTempUsageDetail_20' ) end [2025-03-08 12:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:31:23] Production.INFO: ==1856== Releasing lock... [2025-03-08 12:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:31:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:32:05 [end_date_ymd] => 2025-03-08 12:32:05 [RateCDR] => 1 ) [2025-03-08 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:32:05' and `end` < '2025-03-08 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:32:17] Production.INFO: count ==1726 [2025-03-08 12:32:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:32:05 - End Time 2025-03-08 12:32:05 [2025-03-08 12:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635174', 'tblTempUsageDetail_20' ) start [2025-03-08 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635174', 'tblTempUsageDetail_20' ) end [2025-03-08 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635174', 'tblTempVendorCDR_20' ) start [2025-03-08 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635174', 'tblTempVendorCDR_20' ) end [2025-03-08 12:32:18] Production.INFO: ProcessCDR(1,14635174,1,1,2) [2025-03-08 12:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635174', 'tblTempUsageDetail_20' ) start [2025-03-08 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635174', 'tblTempUsageDetail_20' ) end [2025-03-08 12:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:32:22] Production.INFO: ==1933== Releasing lock... [2025-03-08 12:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:32:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:33:05 [end_date_ymd] => 2025-03-08 12:33:05 [RateCDR] => 1 ) [2025-03-08 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:33:05' and `end` < '2025-03-08 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:33:18] Production.INFO: count ==1732 [2025-03-08 12:33:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:33:05 - End Time 2025-03-08 12:33:05 [2025-03-08 12:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635179', 'tblTempUsageDetail_20' ) start [2025-03-08 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635179', 'tblTempUsageDetail_20' ) end [2025-03-08 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635179', 'tblTempVendorCDR_20' ) start [2025-03-08 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635179', 'tblTempVendorCDR_20' ) end [2025-03-08 12:33:18] Production.INFO: ProcessCDR(1,14635179,1,1,2) [2025-03-08 12:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635179', 'tblTempUsageDetail_20' ) start [2025-03-08 12:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635179', 'tblTempUsageDetail_20' ) end [2025-03-08 12:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:33:24] Production.INFO: ==2005== Releasing lock... [2025-03-08 12:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:33:24] Production.INFO: 41 MB #Memory Used# [2025-03-08 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:34:05 [end_date_ymd] => 2025-03-08 12:34:05 [RateCDR] => 1 ) [2025-03-08 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:34:05' and `end` < '2025-03-08 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:34:17] Production.INFO: count ==1729 [2025-03-08 12:34:17] Production.ERROR: pbx CDR StartTime 2025-03-08 09:34:05 - End Time 2025-03-08 12:34:05 [2025-03-08 12:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635184', 'tblTempUsageDetail_20' ) start [2025-03-08 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635184', 'tblTempUsageDetail_20' ) end [2025-03-08 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635184', 'tblTempVendorCDR_20' ) start [2025-03-08 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635184', 'tblTempVendorCDR_20' ) end [2025-03-08 12:34:18] Production.INFO: ProcessCDR(1,14635184,1,1,2) [2025-03-08 12:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635184', 'tblTempUsageDetail_20' ) start [2025-03-08 12:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635184', 'tblTempUsageDetail_20' ) end [2025-03-08 12:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:34:21] Production.INFO: ==2082== Releasing lock... [2025-03-08 12:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:34:21] Production.INFO: 41 MB #Memory Used# [2025-03-08 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:35:05 [end_date_ymd] => 2025-03-08 12:35:05 [RateCDR] => 1 ) [2025-03-08 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:35:05' and `end` < '2025-03-08 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:35:18] Production.INFO: count ==1727 [2025-03-08 12:35:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:35:05 - End Time 2025-03-08 12:35:05 [2025-03-08 12:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635189', 'tblTempUsageDetail_20' ) start [2025-03-08 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635189', 'tblTempUsageDetail_20' ) end [2025-03-08 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635189', 'tblTempVendorCDR_20' ) start [2025-03-08 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635189', 'tblTempVendorCDR_20' ) end [2025-03-08 12:35:18] Production.INFO: ProcessCDR(1,14635189,1,1,2) [2025-03-08 12:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635189', 'tblTempUsageDetail_20' ) start [2025-03-08 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635189', 'tblTempUsageDetail_20' ) end [2025-03-08 12:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:35:22] Production.INFO: ==2154== Releasing lock... [2025-03-08 12:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:35:22] Production.INFO: 41 MB #Memory Used# [2025-03-08 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:36:05 [end_date_ymd] => 2025-03-08 12:36:05 [RateCDR] => 1 ) [2025-03-08 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:36:05' and `end` < '2025-03-08 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:36:17] Production.INFO: count ==1737 [2025-03-08 12:36:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:36:05 - End Time 2025-03-08 12:36:05 [2025-03-08 12:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635194', 'tblTempUsageDetail_20' ) start [2025-03-08 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635194', 'tblTempUsageDetail_20' ) end [2025-03-08 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635194', 'tblTempVendorCDR_20' ) start [2025-03-08 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635194', 'tblTempVendorCDR_20' ) end [2025-03-08 12:36:18] Production.INFO: ProcessCDR(1,14635194,1,1,2) [2025-03-08 12:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635194', 'tblTempUsageDetail_20' ) start [2025-03-08 12:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635194', 'tblTempUsageDetail_20' ) end [2025-03-08 12:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:36:22] Production.INFO: ==2264== Releasing lock... [2025-03-08 12:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:36:22] Production.INFO: 41 MB #Memory Used# [2025-03-08 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:37:05 [end_date_ymd] => 2025-03-08 12:37:05 [RateCDR] => 1 ) [2025-03-08 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:37:05' and `end` < '2025-03-08 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:37:17] Production.INFO: count ==1744 [2025-03-08 12:37:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:37:05 - End Time 2025-03-08 12:37:05 [2025-03-08 12:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635195', 'tblTempUsageDetail_20' ) start [2025-03-08 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635195', 'tblTempUsageDetail_20' ) end [2025-03-08 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635195', 'tblTempVendorCDR_20' ) start [2025-03-08 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635195', 'tblTempVendorCDR_20' ) end [2025-03-08 12:37:18] Production.INFO: ProcessCDR(1,14635195,1,1,2) [2025-03-08 12:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635195', 'tblTempUsageDetail_20' ) start [2025-03-08 12:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635195', 'tblTempUsageDetail_20' ) end [2025-03-08 12:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:37:23] Production.INFO: ==2338== Releasing lock... [2025-03-08 12:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:37:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:38:05 [end_date_ymd] => 2025-03-08 12:38:05 [RateCDR] => 1 ) [2025-03-08 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:38:05' and `end` < '2025-03-08 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:38:17] Production.INFO: count ==1755 [2025-03-08 12:38:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:38:05 - End Time 2025-03-08 12:38:05 [2025-03-08 12:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635204', 'tblTempUsageDetail_20' ) start [2025-03-08 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635204', 'tblTempUsageDetail_20' ) end [2025-03-08 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635204', 'tblTempVendorCDR_20' ) start [2025-03-08 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635204', 'tblTempVendorCDR_20' ) end [2025-03-08 12:38:18] Production.INFO: ProcessCDR(1,14635204,1,1,2) [2025-03-08 12:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635204', 'tblTempUsageDetail_20' ) start [2025-03-08 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635204', 'tblTempUsageDetail_20' ) end [2025-03-08 12:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:38:23] Production.INFO: ==2410== Releasing lock... [2025-03-08 12:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:38:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:39:05 [end_date_ymd] => 2025-03-08 12:39:05 [RateCDR] => 1 ) [2025-03-08 12:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:39:05' and `end` < '2025-03-08 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:39:18] Production.INFO: count ==1778 [2025-03-08 12:39:19] Production.ERROR: pbx CDR StartTime 2025-03-08 09:39:05 - End Time 2025-03-08 12:39:05 [2025-03-08 12:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635209', 'tblTempUsageDetail_20' ) start [2025-03-08 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635209', 'tblTempUsageDetail_20' ) end [2025-03-08 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635209', 'tblTempVendorCDR_20' ) start [2025-03-08 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635209', 'tblTempVendorCDR_20' ) end [2025-03-08 12:39:19] Production.INFO: ProcessCDR(1,14635209,1,1,2) [2025-03-08 12:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635209', 'tblTempUsageDetail_20' ) start [2025-03-08 12:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635209', 'tblTempUsageDetail_20' ) end [2025-03-08 12:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:39:24] Production.INFO: ==2487== Releasing lock... [2025-03-08 12:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:39:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-08 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:40:05 [end_date_ymd] => 2025-03-08 12:40:05 [RateCDR] => 1 ) [2025-03-08 12:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:40:05' and `end` < '2025-03-08 12:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:40:17] Production.INFO: count ==1780 [2025-03-08 12:40:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:40:05 - End Time 2025-03-08 12:40:05 [2025-03-08 12:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635214', 'tblTempUsageDetail_20' ) start [2025-03-08 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635214', 'tblTempUsageDetail_20' ) end [2025-03-08 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635214', 'tblTempVendorCDR_20' ) start [2025-03-08 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635214', 'tblTempVendorCDR_20' ) end [2025-03-08 12:40:18] Production.INFO: ProcessCDR(1,14635214,1,1,2) [2025-03-08 12:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635214', 'tblTempUsageDetail_20' ) start [2025-03-08 12:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635214', 'tblTempUsageDetail_20' ) end [2025-03-08 12:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:40:23] Production.INFO: ==2559== Releasing lock... [2025-03-08 12:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:40:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-08 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:41:05 [end_date_ymd] => 2025-03-08 12:41:05 [RateCDR] => 1 ) [2025-03-08 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:41:05' and `end` < '2025-03-08 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:41:17] Production.INFO: count ==1828 [2025-03-08 12:41:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:41:05 - End Time 2025-03-08 12:41:05 [2025-03-08 12:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635220', 'tblTempUsageDetail_20' ) start [2025-03-08 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635220', 'tblTempUsageDetail_20' ) end [2025-03-08 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635220', 'tblTempVendorCDR_20' ) start [2025-03-08 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635220', 'tblTempVendorCDR_20' ) end [2025-03-08 12:41:18] Production.INFO: ProcessCDR(1,14635220,1,1,2) [2025-03-08 12:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635220', 'tblTempUsageDetail_20' ) start [2025-03-08 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635220', 'tblTempUsageDetail_20' ) end [2025-03-08 12:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:41:23] Production.INFO: ==2634== Releasing lock... [2025-03-08 12:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:41:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-08 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:42:05 [end_date_ymd] => 2025-03-08 12:42:05 [RateCDR] => 1 ) [2025-03-08 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:42:05' and `end` < '2025-03-08 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:42:18] Production.INFO: count ==1840 [2025-03-08 12:42:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:42:05 - End Time 2025-03-08 12:42:05 [2025-03-08 12:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635225', 'tblTempUsageDetail_20' ) start [2025-03-08 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635225', 'tblTempUsageDetail_20' ) end [2025-03-08 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635225', 'tblTempVendorCDR_20' ) start [2025-03-08 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635225', 'tblTempVendorCDR_20' ) end [2025-03-08 12:42:18] Production.INFO: ProcessCDR(1,14635225,1,1,2) [2025-03-08 12:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635225', 'tblTempUsageDetail_20' ) start [2025-03-08 12:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635225', 'tblTempUsageDetail_20' ) end [2025-03-08 12:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:42:23] Production.INFO: ==2711== Releasing lock... [2025-03-08 12:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:42:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-08 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:43:05 [end_date_ymd] => 2025-03-08 12:43:05 [RateCDR] => 1 ) [2025-03-08 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:43:05' and `end` < '2025-03-08 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:43:17] Production.INFO: count ==1843 [2025-03-08 12:43:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:43:05 - End Time 2025-03-08 12:43:05 [2025-03-08 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635230', 'tblTempUsageDetail_20' ) start [2025-03-08 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635230', 'tblTempUsageDetail_20' ) end [2025-03-08 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635230', 'tblTempVendorCDR_20' ) start [2025-03-08 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635230', 'tblTempVendorCDR_20' ) end [2025-03-08 12:43:18] Production.INFO: ProcessCDR(1,14635230,1,1,2) [2025-03-08 12:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635230', 'tblTempUsageDetail_20' ) start [2025-03-08 12:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635230', 'tblTempUsageDetail_20' ) end [2025-03-08 12:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:43:22] Production.INFO: ==2781== Releasing lock... [2025-03-08 12:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:43:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-08 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:44:05 [end_date_ymd] => 2025-03-08 12:44:05 [RateCDR] => 1 ) [2025-03-08 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:44:05' and `end` < '2025-03-08 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:44:18] Production.INFO: count ==1863 [2025-03-08 12:44:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:44:05 - End Time 2025-03-08 12:44:05 [2025-03-08 12:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635235', 'tblTempUsageDetail_20' ) start [2025-03-08 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635235', 'tblTempUsageDetail_20' ) end [2025-03-08 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635235', 'tblTempVendorCDR_20' ) start [2025-03-08 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635235', 'tblTempVendorCDR_20' ) end [2025-03-08 12:44:18] Production.INFO: ProcessCDR(1,14635235,1,1,2) [2025-03-08 12:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635235', 'tblTempUsageDetail_20' ) start [2025-03-08 12:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635235', 'tblTempUsageDetail_20' ) end [2025-03-08 12:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:44:22] Production.INFO: ==2856== Releasing lock... [2025-03-08 12:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:44:22] Production.INFO: 42 MB #Memory Used# [2025-03-08 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:45:05 [end_date_ymd] => 2025-03-08 12:45:05 [RateCDR] => 1 ) [2025-03-08 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:45:05' and `end` < '2025-03-08 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:45:17] Production.INFO: count ==1854 [2025-03-08 12:45:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:45:05 - End Time 2025-03-08 12:45:05 [2025-03-08 12:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635240', 'tblTempUsageDetail_20' ) start [2025-03-08 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635240', 'tblTempUsageDetail_20' ) end [2025-03-08 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635240', 'tblTempVendorCDR_20' ) start [2025-03-08 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635240', 'tblTempVendorCDR_20' ) end [2025-03-08 12:45:18] Production.INFO: ProcessCDR(1,14635240,1,1,2) [2025-03-08 12:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635240', 'tblTempUsageDetail_20' ) start [2025-03-08 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635240', 'tblTempUsageDetail_20' ) end [2025-03-08 12:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:45:22] Production.INFO: ==2931== Releasing lock... [2025-03-08 12:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:45:22] Production.INFO: 42 MB #Memory Used# [2025-03-08 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:46:05 [end_date_ymd] => 2025-03-08 12:46:05 [RateCDR] => 1 ) [2025-03-08 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:46:05' and `end` < '2025-03-08 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:46:17] Production.INFO: count ==1849 [2025-03-08 12:46:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:46:05 - End Time 2025-03-08 12:46:05 [2025-03-08 12:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635245', 'tblTempUsageDetail_20' ) start [2025-03-08 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635245', 'tblTempUsageDetail_20' ) end [2025-03-08 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635245', 'tblTempVendorCDR_20' ) start [2025-03-08 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635245', 'tblTempVendorCDR_20' ) end [2025-03-08 12:46:18] Production.INFO: ProcessCDR(1,14635245,1,1,2) [2025-03-08 12:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635245', 'tblTempUsageDetail_20' ) start [2025-03-08 12:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635245', 'tblTempUsageDetail_20' ) end [2025-03-08 12:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:46:23] Production.INFO: ==3011== Releasing lock... [2025-03-08 12:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:46:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-08 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:47:05 [end_date_ymd] => 2025-03-08 12:47:05 [RateCDR] => 1 ) [2025-03-08 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:47:05' and `end` < '2025-03-08 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:47:17] Production.INFO: count ==1857 [2025-03-08 12:47:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:47:05 - End Time 2025-03-08 12:47:05 [2025-03-08 12:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635250', 'tblTempUsageDetail_20' ) start [2025-03-08 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635250', 'tblTempUsageDetail_20' ) end [2025-03-08 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635250', 'tblTempVendorCDR_20' ) start [2025-03-08 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635250', 'tblTempVendorCDR_20' ) end [2025-03-08 12:47:18] Production.INFO: ProcessCDR(1,14635250,1,1,2) [2025-03-08 12:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635250', 'tblTempUsageDetail_20' ) start [2025-03-08 12:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635250', 'tblTempUsageDetail_20' ) end [2025-03-08 12:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:47:21] Production.INFO: ==3084== Releasing lock... [2025-03-08 12:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:47:21] Production.INFO: 42 MB #Memory Used# [2025-03-08 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:48:05 [end_date_ymd] => 2025-03-08 12:48:05 [RateCDR] => 1 ) [2025-03-08 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:48:05' and `end` < '2025-03-08 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:48:18] Production.INFO: count ==1856 [2025-03-08 12:48:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:48:05 - End Time 2025-03-08 12:48:05 [2025-03-08 12:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635255', 'tblTempUsageDetail_20' ) start [2025-03-08 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635255', 'tblTempUsageDetail_20' ) end [2025-03-08 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635255', 'tblTempVendorCDR_20' ) start [2025-03-08 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635255', 'tblTempVendorCDR_20' ) end [2025-03-08 12:48:18] Production.INFO: ProcessCDR(1,14635255,1,1,2) [2025-03-08 12:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635255', 'tblTempUsageDetail_20' ) start [2025-03-08 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635255', 'tblTempUsageDetail_20' ) end [2025-03-08 12:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:48:22] Production.INFO: ==3158== Releasing lock... [2025-03-08 12:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:48:22] Production.INFO: 42 MB #Memory Used# [2025-03-08 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:49:05 [end_date_ymd] => 2025-03-08 12:49:05 [RateCDR] => 1 ) [2025-03-08 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:49:05' and `end` < '2025-03-08 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:49:17] Production.INFO: count ==1860 [2025-03-08 12:49:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:49:05 - End Time 2025-03-08 12:49:05 [2025-03-08 12:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635260', 'tblTempUsageDetail_20' ) start [2025-03-08 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635260', 'tblTempUsageDetail_20' ) end [2025-03-08 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635260', 'tblTempVendorCDR_20' ) start [2025-03-08 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635260', 'tblTempVendorCDR_20' ) end [2025-03-08 12:49:18] Production.INFO: ProcessCDR(1,14635260,1,1,2) [2025-03-08 12:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635260', 'tblTempUsageDetail_20' ) start [2025-03-08 12:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635260', 'tblTempUsageDetail_20' ) end [2025-03-08 12:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:49:23] Production.INFO: ==3231== Releasing lock... [2025-03-08 12:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:49:23] Production.INFO: 42 MB #Memory Used# [2025-03-08 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:50:06 [end_date_ymd] => 2025-03-08 12:50:06 [RateCDR] => 1 ) [2025-03-08 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:50:06' and `end` < '2025-03-08 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:50:18] Production.INFO: count ==1863 [2025-03-08 12:50:19] Production.ERROR: pbx CDR StartTime 2025-03-08 09:50:06 - End Time 2025-03-08 12:50:06 [2025-03-08 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635266', 'tblTempUsageDetail_20' ) start [2025-03-08 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635266', 'tblTempUsageDetail_20' ) end [2025-03-08 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635266', 'tblTempVendorCDR_20' ) start [2025-03-08 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635266', 'tblTempVendorCDR_20' ) end [2025-03-08 12:50:19] Production.INFO: ProcessCDR(1,14635266,1,1,2) [2025-03-08 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635266', 'tblTempUsageDetail_20' ) start [2025-03-08 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635266', 'tblTempUsageDetail_20' ) end [2025-03-08 12:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:50:24] Production.INFO: ==3307== Releasing lock... [2025-03-08 12:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:50:24] Production.INFO: 42 MB #Memory Used# [2025-03-08 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:51:05 [end_date_ymd] => 2025-03-08 12:51:05 [RateCDR] => 1 ) [2025-03-08 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:51:05' and `end` < '2025-03-08 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:51:17] Production.INFO: count ==1901 [2025-03-08 12:51:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:51:05 - End Time 2025-03-08 12:51:05 [2025-03-08 12:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635271', 'tblTempUsageDetail_20' ) start [2025-03-08 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635271', 'tblTempUsageDetail_20' ) end [2025-03-08 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635271', 'tblTempVendorCDR_20' ) start [2025-03-08 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635271', 'tblTempVendorCDR_20' ) end [2025-03-08 12:51:18] Production.INFO: ProcessCDR(1,14635271,1,1,2) [2025-03-08 12:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635271', 'tblTempUsageDetail_20' ) start [2025-03-08 12:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635271', 'tblTempUsageDetail_20' ) end [2025-03-08 12:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:51:23] Production.INFO: ==3424== Releasing lock... [2025-03-08 12:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:51:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-08 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:52:06 [end_date_ymd] => 2025-03-08 12:52:06 [RateCDR] => 1 ) [2025-03-08 12:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:52:06' and `end` < '2025-03-08 12:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:52:18] Production.INFO: count ==1892 [2025-03-08 12:52:19] Production.ERROR: pbx CDR StartTime 2025-03-08 09:52:06 - End Time 2025-03-08 12:52:06 [2025-03-08 12:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635276', 'tblTempUsageDetail_20' ) start [2025-03-08 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635276', 'tblTempUsageDetail_20' ) end [2025-03-08 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635276', 'tblTempVendorCDR_20' ) start [2025-03-08 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635276', 'tblTempVendorCDR_20' ) end [2025-03-08 12:52:19] Production.INFO: ProcessCDR(1,14635276,1,1,2) [2025-03-08 12:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635276', 'tblTempUsageDetail_20' ) start [2025-03-08 12:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635276', 'tblTempUsageDetail_20' ) end [2025-03-08 12:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:52:24] Production.INFO: ==3499== Releasing lock... [2025-03-08 12:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:52:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-08 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:53:05 [end_date_ymd] => 2025-03-08 12:53:05 [RateCDR] => 1 ) [2025-03-08 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:53:05' and `end` < '2025-03-08 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:53:17] Production.INFO: count ==1888 [2025-03-08 12:53:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:53:05 - End Time 2025-03-08 12:53:05 [2025-03-08 12:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635281', 'tblTempUsageDetail_20' ) start [2025-03-08 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635281', 'tblTempUsageDetail_20' ) end [2025-03-08 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635281', 'tblTempVendorCDR_20' ) start [2025-03-08 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635281', 'tblTempVendorCDR_20' ) end [2025-03-08 12:53:18] Production.INFO: ProcessCDR(1,14635281,1,1,2) [2025-03-08 12:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635281', 'tblTempUsageDetail_20' ) start [2025-03-08 12:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635281', 'tblTempUsageDetail_20' ) end [2025-03-08 12:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:53:23] Production.INFO: ==3574== Releasing lock... [2025-03-08 12:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:53:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-08 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:54:05 [end_date_ymd] => 2025-03-08 12:54:05 [RateCDR] => 1 ) [2025-03-08 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:54:05' and `end` < '2025-03-08 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:54:17] Production.INFO: count ==1883 [2025-03-08 12:54:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:54:05 - End Time 2025-03-08 12:54:05 [2025-03-08 12:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635286', 'tblTempUsageDetail_20' ) start [2025-03-08 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635286', 'tblTempUsageDetail_20' ) end [2025-03-08 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635286', 'tblTempVendorCDR_20' ) start [2025-03-08 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635286', 'tblTempVendorCDR_20' ) end [2025-03-08 12:54:18] Production.INFO: ProcessCDR(1,14635286,1,1,2) [2025-03-08 12:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635286', 'tblTempUsageDetail_20' ) start [2025-03-08 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635286', 'tblTempUsageDetail_20' ) end [2025-03-08 12:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:54:23] Production.INFO: ==3650== Releasing lock... [2025-03-08 12:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:54:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-08 12:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:55:04 [end_date_ymd] => 2025-03-08 12:55:04 [RateCDR] => 1 ) [2025-03-08 12:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:55:04' and `end` < '2025-03-08 12:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:55:17] Production.INFO: count ==1884 [2025-03-08 12:55:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:55:04 - End Time 2025-03-08 12:55:04 [2025-03-08 12:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635291', 'tblTempUsageDetail_20' ) start [2025-03-08 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635291', 'tblTempUsageDetail_20' ) end [2025-03-08 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635291', 'tblTempVendorCDR_20' ) start [2025-03-08 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635291', 'tblTempVendorCDR_20' ) end [2025-03-08 12:55:18] Production.INFO: ProcessCDR(1,14635291,1,1,2) [2025-03-08 12:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635291', 'tblTempUsageDetail_20' ) start [2025-03-08 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635291', 'tblTempUsageDetail_20' ) end [2025-03-08 12:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:55:22] Production.INFO: ==3732== Releasing lock... [2025-03-08 12:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:55:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-08 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:56:05 [end_date_ymd] => 2025-03-08 12:56:05 [RateCDR] => 1 ) [2025-03-08 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:56:05' and `end` < '2025-03-08 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:56:18] Production.INFO: count ==1884 [2025-03-08 12:56:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:56:05 - End Time 2025-03-08 12:56:05 [2025-03-08 12:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635296', 'tblTempUsageDetail_20' ) start [2025-03-08 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635296', 'tblTempUsageDetail_20' ) end [2025-03-08 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635296', 'tblTempVendorCDR_20' ) start [2025-03-08 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635296', 'tblTempVendorCDR_20' ) end [2025-03-08 12:56:18] Production.INFO: ProcessCDR(1,14635296,1,1,2) [2025-03-08 12:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635296', 'tblTempUsageDetail_20' ) start [2025-03-08 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635296', 'tblTempUsageDetail_20' ) end [2025-03-08 12:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:56:22] Production.INFO: ==3837== Releasing lock... [2025-03-08 12:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:56:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-08 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:57:05 [end_date_ymd] => 2025-03-08 12:57:05 [RateCDR] => 1 ) [2025-03-08 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:57:05' and `end` < '2025-03-08 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:57:17] Production.INFO: count ==1877 [2025-03-08 12:57:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:57:05 - End Time 2025-03-08 12:57:05 [2025-03-08 12:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635301', 'tblTempUsageDetail_20' ) start [2025-03-08 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635301', 'tblTempUsageDetail_20' ) end [2025-03-08 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635301', 'tblTempVendorCDR_20' ) start [2025-03-08 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635301', 'tblTempVendorCDR_20' ) end [2025-03-08 12:57:18] Production.INFO: ProcessCDR(1,14635301,1,1,2) [2025-03-08 12:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635301', 'tblTempUsageDetail_20' ) start [2025-03-08 12:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635301', 'tblTempUsageDetail_20' ) end [2025-03-08 12:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:57:21] Production.INFO: ==3923== Releasing lock... [2025-03-08 12:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:57:21] Production.INFO: 42.25 MB #Memory Used# [2025-03-08 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:58:05 [end_date_ymd] => 2025-03-08 12:58:05 [RateCDR] => 1 ) [2025-03-08 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:58:05' and `end` < '2025-03-08 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:58:17] Production.INFO: count ==1871 [2025-03-08 12:58:18] Production.ERROR: pbx CDR StartTime 2025-03-08 09:58:05 - End Time 2025-03-08 12:58:05 [2025-03-08 12:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635306', 'tblTempUsageDetail_20' ) start [2025-03-08 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635306', 'tblTempUsageDetail_20' ) end [2025-03-08 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635306', 'tblTempVendorCDR_20' ) start [2025-03-08 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635306', 'tblTempVendorCDR_20' ) end [2025-03-08 12:58:18] Production.INFO: ProcessCDR(1,14635306,1,1,2) [2025-03-08 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635306', 'tblTempUsageDetail_20' ) start [2025-03-08 12:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635306', 'tblTempUsageDetail_20' ) end [2025-03-08 12:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:58:21] Production.INFO: ==4003== Releasing lock... [2025-03-08 12:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:58:21] Production.INFO: 42.25 MB #Memory Used# [2025-03-08 12:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 09:59:04 [end_date_ymd] => 2025-03-08 12:59:04 [RateCDR] => 1 ) [2025-03-08 12:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 09:59:04' and `end` < '2025-03-08 12:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 12:59:17] Production.INFO: count ==1872 [2025-03-08 12:59:17] Production.ERROR: pbx CDR StartTime 2025-03-08 09:59:04 - End Time 2025-03-08 12:59:04 [2025-03-08 12:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635311', 'tblTempUsageDetail_20' ) start [2025-03-08 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635311', 'tblTempUsageDetail_20' ) end [2025-03-08 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635311', 'tblTempVendorCDR_20' ) start [2025-03-08 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635311', 'tblTempVendorCDR_20' ) end [2025-03-08 12:59:17] Production.INFO: ProcessCDR(1,14635311,1,1,2) [2025-03-08 12:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 12:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635311', 'tblTempUsageDetail_20' ) start [2025-03-08 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635311', 'tblTempUsageDetail_20' ) end [2025-03-08 12:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 12:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 12:59:21] Production.INFO: ==4093== Releasing lock... [2025-03-08 12:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 12:59:21] Production.INFO: 42 MB #Memory Used# [2025-03-08 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:00:06 [end_date_ymd] => 2025-03-08 13:00:06 [RateCDR] => 1 ) [2025-03-08 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:00:06' and `end` < '2025-03-08 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:00:18] Production.INFO: count ==1872 [2025-03-08 13:00:19] Production.ERROR: pbx CDR StartTime 2025-03-08 10:00:06 - End Time 2025-03-08 13:00:06 [2025-03-08 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635316', 'tblTempUsageDetail_20' ) start [2025-03-08 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635316', 'tblTempUsageDetail_20' ) end [2025-03-08 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635316', 'tblTempVendorCDR_20' ) start [2025-03-08 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635316', 'tblTempVendorCDR_20' ) end [2025-03-08 13:00:19] Production.INFO: ProcessCDR(1,14635316,1,1,2) [2025-03-08 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635316', 'tblTempUsageDetail_20' ) start [2025-03-08 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635316', 'tblTempUsageDetail_20' ) end [2025-03-08 13:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:00:22] Production.INFO: ==4179== Releasing lock... [2025-03-08 13:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:00:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-08 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:01:05 [end_date_ymd] => 2025-03-08 13:01:05 [RateCDR] => 1 ) [2025-03-08 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:01:05' and `end` < '2025-03-08 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:01:17] Production.INFO: count ==1898 [2025-03-08 13:01:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:01:05 - End Time 2025-03-08 13:01:05 [2025-03-08 13:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635322', 'tblTempUsageDetail_20' ) start [2025-03-08 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635322', 'tblTempUsageDetail_20' ) end [2025-03-08 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635322', 'tblTempVendorCDR_20' ) start [2025-03-08 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635322', 'tblTempVendorCDR_20' ) end [2025-03-08 13:01:18] Production.INFO: ProcessCDR(1,14635322,1,1,2) [2025-03-08 13:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635322', 'tblTempUsageDetail_20' ) start [2025-03-08 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635322', 'tblTempUsageDetail_20' ) end [2025-03-08 13:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:01:23] Production.INFO: ==4268== Releasing lock... [2025-03-08 13:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:01:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-08 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:02:05 [end_date_ymd] => 2025-03-08 13:02:05 [RateCDR] => 1 ) [2025-03-08 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:02:05' and `end` < '2025-03-08 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:02:17] Production.INFO: count ==1895 [2025-03-08 13:02:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:02:05 - End Time 2025-03-08 13:02:05 [2025-03-08 13:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635327', 'tblTempUsageDetail_20' ) start [2025-03-08 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635327', 'tblTempUsageDetail_20' ) end [2025-03-08 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635327', 'tblTempVendorCDR_20' ) start [2025-03-08 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635327', 'tblTempVendorCDR_20' ) end [2025-03-08 13:02:18] Production.INFO: ProcessCDR(1,14635327,1,1,2) [2025-03-08 13:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635327', 'tblTempUsageDetail_20' ) start [2025-03-08 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635327', 'tblTempUsageDetail_20' ) end [2025-03-08 13:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:02:23] Production.INFO: ==4343== Releasing lock... [2025-03-08 13:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:02:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-08 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:03:06 [end_date_ymd] => 2025-03-08 13:03:06 [RateCDR] => 1 ) [2025-03-08 13:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:03:06' and `end` < '2025-03-08 13:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:03:18] Production.INFO: count ==1885 [2025-03-08 13:03:19] Production.ERROR: pbx CDR StartTime 2025-03-08 10:03:06 - End Time 2025-03-08 13:03:06 [2025-03-08 13:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635332', 'tblTempUsageDetail_20' ) start [2025-03-08 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635332', 'tblTempUsageDetail_20' ) end [2025-03-08 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635332', 'tblTempVendorCDR_20' ) start [2025-03-08 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635332', 'tblTempVendorCDR_20' ) end [2025-03-08 13:03:19] Production.INFO: ProcessCDR(1,14635332,1,1,2) [2025-03-08 13:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635332', 'tblTempUsageDetail_20' ) start [2025-03-08 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635332', 'tblTempUsageDetail_20' ) end [2025-03-08 13:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:03:23] Production.INFO: ==4424== Releasing lock... [2025-03-08 13:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:03:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-08 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:04:06 [end_date_ymd] => 2025-03-08 13:04:06 [RateCDR] => 1 ) [2025-03-08 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:04:06' and `end` < '2025-03-08 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:04:18] Production.INFO: count ==1890 [2025-03-08 13:04:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:04:06 - End Time 2025-03-08 13:04:06 [2025-03-08 13:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635337', 'tblTempUsageDetail_20' ) start [2025-03-08 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635337', 'tblTempUsageDetail_20' ) end [2025-03-08 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635337', 'tblTempVendorCDR_20' ) start [2025-03-08 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635337', 'tblTempVendorCDR_20' ) end [2025-03-08 13:04:19] Production.INFO: ProcessCDR(1,14635337,1,1,2) [2025-03-08 13:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635337', 'tblTempUsageDetail_20' ) start [2025-03-08 13:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635337', 'tblTempUsageDetail_20' ) end [2025-03-08 13:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:04:22] Production.INFO: ==4505== Releasing lock... [2025-03-08 13:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:04:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-08 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:05:06 [end_date_ymd] => 2025-03-08 13:05:06 [RateCDR] => 1 ) [2025-03-08 13:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:05:06' and `end` < '2025-03-08 13:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:05:18] Production.INFO: count ==1880 [2025-03-08 13:05:19] Production.ERROR: pbx CDR StartTime 2025-03-08 10:05:06 - End Time 2025-03-08 13:05:06 [2025-03-08 13:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635342', 'tblTempUsageDetail_20' ) start [2025-03-08 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635342', 'tblTempUsageDetail_20' ) end [2025-03-08 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635342', 'tblTempVendorCDR_20' ) start [2025-03-08 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635342', 'tblTempVendorCDR_20' ) end [2025-03-08 13:05:19] Production.INFO: ProcessCDR(1,14635342,1,1,2) [2025-03-08 13:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635342', 'tblTempUsageDetail_20' ) start [2025-03-08 13:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635342', 'tblTempUsageDetail_20' ) end [2025-03-08 13:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:05:22] Production.INFO: ==4592== Releasing lock... [2025-03-08 13:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:05:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-08 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:06:05 [end_date_ymd] => 2025-03-08 13:06:05 [RateCDR] => 1 ) [2025-03-08 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:06:05' and `end` < '2025-03-08 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:06:18] Production.INFO: count ==1879 [2025-03-08 13:06:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:06:05 - End Time 2025-03-08 13:06:05 [2025-03-08 13:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635347', 'tblTempUsageDetail_20' ) start [2025-03-08 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635347', 'tblTempUsageDetail_20' ) end [2025-03-08 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635347', 'tblTempVendorCDR_20' ) start [2025-03-08 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635347', 'tblTempVendorCDR_20' ) end [2025-03-08 13:06:18] Production.INFO: ProcessCDR(1,14635347,1,1,2) [2025-03-08 13:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635347', 'tblTempUsageDetail_20' ) start [2025-03-08 13:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635347', 'tblTempUsageDetail_20' ) end [2025-03-08 13:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:06:22] Production.INFO: ==4708== Releasing lock... [2025-03-08 13:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:06:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-08 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:07:06 [end_date_ymd] => 2025-03-08 13:07:06 [RateCDR] => 1 ) [2025-03-08 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:07:06' and `end` < '2025-03-08 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:07:18] Production.INFO: count ==1878 [2025-03-08 13:07:19] Production.ERROR: pbx CDR StartTime 2025-03-08 10:07:06 - End Time 2025-03-08 13:07:06 [2025-03-08 13:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635352', 'tblTempUsageDetail_20' ) start [2025-03-08 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635352', 'tblTempUsageDetail_20' ) end [2025-03-08 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635352', 'tblTempVendorCDR_20' ) start [2025-03-08 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635352', 'tblTempVendorCDR_20' ) end [2025-03-08 13:07:19] Production.INFO: ProcessCDR(1,14635352,1,1,2) [2025-03-08 13:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635352', 'tblTempUsageDetail_20' ) start [2025-03-08 13:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635352', 'tblTempUsageDetail_20' ) end [2025-03-08 13:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:07:22] Production.INFO: ==4789== Releasing lock... [2025-03-08 13:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:07:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-08 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:08:05 [end_date_ymd] => 2025-03-08 13:08:05 [RateCDR] => 1 ) [2025-03-08 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:08:05' and `end` < '2025-03-08 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:08:17] Production.INFO: count ==1894 [2025-03-08 13:08:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:08:05 - End Time 2025-03-08 13:08:05 [2025-03-08 13:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635357', 'tblTempUsageDetail_20' ) start [2025-03-08 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635357', 'tblTempUsageDetail_20' ) end [2025-03-08 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635357', 'tblTempVendorCDR_20' ) start [2025-03-08 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635357', 'tblTempVendorCDR_20' ) end [2025-03-08 13:08:18] Production.INFO: ProcessCDR(1,14635357,1,1,2) [2025-03-08 13:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635357', 'tblTempUsageDetail_20' ) start [2025-03-08 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635357', 'tblTempUsageDetail_20' ) end [2025-03-08 13:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:08:22] Production.INFO: ==4873== Releasing lock... [2025-03-08 13:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:08:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-08 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:09:06 [end_date_ymd] => 2025-03-08 13:09:06 [RateCDR] => 1 ) [2025-03-08 13:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:09:06' and `end` < '2025-03-08 13:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:09:18] Production.INFO: count ==1888 [2025-03-08 13:09:19] Production.ERROR: pbx CDR StartTime 2025-03-08 10:09:06 - End Time 2025-03-08 13:09:06 [2025-03-08 13:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635362', 'tblTempUsageDetail_20' ) start [2025-03-08 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635362', 'tblTempUsageDetail_20' ) end [2025-03-08 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635362', 'tblTempVendorCDR_20' ) start [2025-03-08 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635362', 'tblTempVendorCDR_20' ) end [2025-03-08 13:09:19] Production.INFO: ProcessCDR(1,14635362,1,1,2) [2025-03-08 13:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635362', 'tblTempUsageDetail_20' ) start [2025-03-08 13:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635362', 'tblTempUsageDetail_20' ) end [2025-03-08 13:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:09:24] Production.INFO: ==5045== Releasing lock... [2025-03-08 13:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:09:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-08 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:10:05 [end_date_ymd] => 2025-03-08 13:10:05 [RateCDR] => 1 ) [2025-03-08 13:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:10:05' and `end` < '2025-03-08 13:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:10:18] Production.INFO: count ==1875 [2025-03-08 13:10:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:10:05 - End Time 2025-03-08 13:10:05 [2025-03-08 13:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635368', 'tblTempUsageDetail_20' ) start [2025-03-08 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635368', 'tblTempUsageDetail_20' ) end [2025-03-08 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635368', 'tblTempVendorCDR_20' ) start [2025-03-08 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635368', 'tblTempVendorCDR_20' ) end [2025-03-08 13:10:19] Production.INFO: ProcessCDR(1,14635368,1,1,2) [2025-03-08 13:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635368', 'tblTempUsageDetail_20' ) start [2025-03-08 13:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635368', 'tblTempUsageDetail_20' ) end [2025-03-08 13:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:10:23] Production.INFO: ==5197== Releasing lock... [2025-03-08 13:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:10:23] Production.INFO: 42 MB #Memory Used# [2025-03-08 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:11:06 [end_date_ymd] => 2025-03-08 13:11:06 [RateCDR] => 1 ) [2025-03-08 13:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:11:06' and `end` < '2025-03-08 13:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:11:18] Production.INFO: count ==1874 [2025-03-08 13:11:19] Production.ERROR: pbx CDR StartTime 2025-03-08 10:11:06 - End Time 2025-03-08 13:11:06 [2025-03-08 13:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635373', 'tblTempUsageDetail_20' ) start [2025-03-08 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635373', 'tblTempUsageDetail_20' ) end [2025-03-08 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635373', 'tblTempVendorCDR_20' ) start [2025-03-08 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635373', 'tblTempVendorCDR_20' ) end [2025-03-08 13:11:19] Production.INFO: ProcessCDR(1,14635373,1,1,2) [2025-03-08 13:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635373', 'tblTempUsageDetail_20' ) start [2025-03-08 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635373', 'tblTempUsageDetail_20' ) end [2025-03-08 13:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:11:24] Production.INFO: ==5318== Releasing lock... [2025-03-08 13:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:11:24] Production.INFO: 42 MB #Memory Used# [2025-03-08 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:12:05 [end_date_ymd] => 2025-03-08 13:12:05 [RateCDR] => 1 ) [2025-03-08 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:12:05' and `end` < '2025-03-08 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:12:18] Production.INFO: count ==1876 [2025-03-08 13:12:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:12:05 - End Time 2025-03-08 13:12:05 [2025-03-08 13:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635378', 'tblTempUsageDetail_20' ) start [2025-03-08 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635378', 'tblTempUsageDetail_20' ) end [2025-03-08 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635378', 'tblTempVendorCDR_20' ) start [2025-03-08 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635378', 'tblTempVendorCDR_20' ) end [2025-03-08 13:12:18] Production.INFO: ProcessCDR(1,14635378,1,1,2) [2025-03-08 13:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635378', 'tblTempUsageDetail_20' ) start [2025-03-08 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635378', 'tblTempUsageDetail_20' ) end [2025-03-08 13:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:12:23] Production.INFO: ==5414== Releasing lock... [2025-03-08 13:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:12:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-08 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:13:05 [end_date_ymd] => 2025-03-08 13:13:05 [RateCDR] => 1 ) [2025-03-08 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:13:05' and `end` < '2025-03-08 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:13:17] Production.INFO: count ==1856 [2025-03-08 13:13:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:13:05 - End Time 2025-03-08 13:13:05 [2025-03-08 13:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635379', 'tblTempUsageDetail_20' ) start [2025-03-08 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635379', 'tblTempUsageDetail_20' ) end [2025-03-08 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635379', 'tblTempVendorCDR_20' ) start [2025-03-08 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635379', 'tblTempVendorCDR_20' ) end [2025-03-08 13:13:18] Production.INFO: ProcessCDR(1,14635379,1,1,2) [2025-03-08 13:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635379', 'tblTempUsageDetail_20' ) start [2025-03-08 13:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635379', 'tblTempUsageDetail_20' ) end [2025-03-08 13:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:13:21] Production.INFO: ==5489== Releasing lock... [2025-03-08 13:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:13:21] Production.INFO: 42 MB #Memory Used# [2025-03-08 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:14:05 [end_date_ymd] => 2025-03-08 13:14:05 [RateCDR] => 1 ) [2025-03-08 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:14:05' and `end` < '2025-03-08 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:14:17] Production.INFO: count ==1831 [2025-03-08 13:14:17] Production.ERROR: pbx CDR StartTime 2025-03-08 10:14:05 - End Time 2025-03-08 13:14:05 [2025-03-08 13:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635388', 'tblTempUsageDetail_20' ) start [2025-03-08 13:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635388', 'tblTempUsageDetail_20' ) end [2025-03-08 13:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635388', 'tblTempVendorCDR_20' ) start [2025-03-08 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635388', 'tblTempVendorCDR_20' ) end [2025-03-08 13:14:18] Production.INFO: ProcessCDR(1,14635388,1,1,2) [2025-03-08 13:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635388', 'tblTempUsageDetail_20' ) start [2025-03-08 13:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635388', 'tblTempUsageDetail_20' ) end [2025-03-08 13:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:14:22] Production.INFO: ==5572== Releasing lock... [2025-03-08 13:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:14:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-08 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:15:05 [end_date_ymd] => 2025-03-08 13:15:05 [RateCDR] => 1 ) [2025-03-08 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:15:05' and `end` < '2025-03-08 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:15:18] Production.INFO: count ==1831 [2025-03-08 13:15:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:15:05 - End Time 2025-03-08 13:15:05 [2025-03-08 13:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635393', 'tblTempUsageDetail_20' ) start [2025-03-08 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635393', 'tblTempUsageDetail_20' ) end [2025-03-08 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635393', 'tblTempVendorCDR_20' ) start [2025-03-08 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635393', 'tblTempVendorCDR_20' ) end [2025-03-08 13:15:18] Production.INFO: ProcessCDR(1,14635393,1,1,2) [2025-03-08 13:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635393', 'tblTempUsageDetail_20' ) start [2025-03-08 13:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635393', 'tblTempUsageDetail_20' ) end [2025-03-08 13:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:15:22] Production.INFO: ==5655== Releasing lock... [2025-03-08 13:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:15:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-08 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:16:05 [end_date_ymd] => 2025-03-08 13:16:05 [RateCDR] => 1 ) [2025-03-08 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:16:05' and `end` < '2025-03-08 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:16:17] Production.INFO: count ==1833 [2025-03-08 13:16:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:16:05 - End Time 2025-03-08 13:16:05 [2025-03-08 13:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635398', 'tblTempUsageDetail_20' ) start [2025-03-08 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635398', 'tblTempUsageDetail_20' ) end [2025-03-08 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635398', 'tblTempVendorCDR_20' ) start [2025-03-08 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635398', 'tblTempVendorCDR_20' ) end [2025-03-08 13:16:18] Production.INFO: ProcessCDR(1,14635398,1,1,2) [2025-03-08 13:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635398', 'tblTempUsageDetail_20' ) start [2025-03-08 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635398', 'tblTempUsageDetail_20' ) end [2025-03-08 13:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:16:23] Production.INFO: ==5737== Releasing lock... [2025-03-08 13:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:16:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-08 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:17:06 [end_date_ymd] => 2025-03-08 13:17:06 [RateCDR] => 1 ) [2025-03-08 13:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:17:06' and `end` < '2025-03-08 13:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:17:18] Production.INFO: count ==1848 [2025-03-08 13:17:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:17:06 - End Time 2025-03-08 13:17:06 [2025-03-08 13:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635403', 'tblTempUsageDetail_20' ) start [2025-03-08 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635403', 'tblTempUsageDetail_20' ) end [2025-03-08 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635403', 'tblTempVendorCDR_20' ) start [2025-03-08 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635403', 'tblTempVendorCDR_20' ) end [2025-03-08 13:17:19] Production.INFO: ProcessCDR(1,14635403,1,1,2) [2025-03-08 13:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635403', 'tblTempUsageDetail_20' ) start [2025-03-08 13:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635403', 'tblTempUsageDetail_20' ) end [2025-03-08 13:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:17:23] Production.INFO: ==5826== Releasing lock... [2025-03-08 13:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:17:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-08 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:18:05 [end_date_ymd] => 2025-03-08 13:18:05 [RateCDR] => 1 ) [2025-03-08 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:18:05' and `end` < '2025-03-08 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:18:17] Production.INFO: count ==1842 [2025-03-08 13:18:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:18:05 - End Time 2025-03-08 13:18:05 [2025-03-08 13:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635408', 'tblTempUsageDetail_20' ) start [2025-03-08 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635408', 'tblTempUsageDetail_20' ) end [2025-03-08 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635408', 'tblTempVendorCDR_20' ) start [2025-03-08 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635408', 'tblTempVendorCDR_20' ) end [2025-03-08 13:18:18] Production.INFO: ProcessCDR(1,14635408,1,1,2) [2025-03-08 13:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635408', 'tblTempUsageDetail_20' ) start [2025-03-08 13:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635408', 'tblTempUsageDetail_20' ) end [2025-03-08 13:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:18:21] Production.INFO: ==5904== Releasing lock... [2025-03-08 13:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:18:21] Production.INFO: 41.75 MB #Memory Used# [2025-03-08 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:19:05 [end_date_ymd] => 2025-03-08 13:19:05 [RateCDR] => 1 ) [2025-03-08 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:19:05' and `end` < '2025-03-08 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:19:18] Production.INFO: count ==1832 [2025-03-08 13:19:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:19:05 - End Time 2025-03-08 13:19:05 [2025-03-08 13:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635413', 'tblTempUsageDetail_20' ) start [2025-03-08 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635413', 'tblTempUsageDetail_20' ) end [2025-03-08 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635413', 'tblTempVendorCDR_20' ) start [2025-03-08 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635413', 'tblTempVendorCDR_20' ) end [2025-03-08 13:19:18] Production.INFO: ProcessCDR(1,14635413,1,1,2) [2025-03-08 13:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635413', 'tblTempUsageDetail_20' ) start [2025-03-08 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635413', 'tblTempUsageDetail_20' ) end [2025-03-08 13:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:19:22] Production.INFO: ==5988== Releasing lock... [2025-03-08 13:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:19:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-08 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:20:06 [end_date_ymd] => 2025-03-08 13:20:06 [RateCDR] => 1 ) [2025-03-08 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:20:06' and `end` < '2025-03-08 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:20:18] Production.INFO: count ==1816 [2025-03-08 13:20:19] Production.ERROR: pbx CDR StartTime 2025-03-08 10:20:06 - End Time 2025-03-08 13:20:06 [2025-03-08 13:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635419', 'tblTempUsageDetail_20' ) start [2025-03-08 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635419', 'tblTempUsageDetail_20' ) end [2025-03-08 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635419', 'tblTempVendorCDR_20' ) start [2025-03-08 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635419', 'tblTempVendorCDR_20' ) end [2025-03-08 13:20:19] Production.INFO: ProcessCDR(1,14635419,1,1,2) [2025-03-08 13:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635419', 'tblTempUsageDetail_20' ) start [2025-03-08 13:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635419', 'tblTempUsageDetail_20' ) end [2025-03-08 13:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:20:22] Production.INFO: ==6072== Releasing lock... [2025-03-08 13:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:20:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-08 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:21:05 [end_date_ymd] => 2025-03-08 13:21:05 [RateCDR] => 1 ) [2025-03-08 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:21:05' and `end` < '2025-03-08 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:21:17] Production.INFO: count ==1794 [2025-03-08 13:21:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:21:05 - End Time 2025-03-08 13:21:05 [2025-03-08 13:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635424', 'tblTempUsageDetail_20' ) start [2025-03-08 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635424', 'tblTempUsageDetail_20' ) end [2025-03-08 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635424', 'tblTempVendorCDR_20' ) start [2025-03-08 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635424', 'tblTempVendorCDR_20' ) end [2025-03-08 13:21:18] Production.INFO: ProcessCDR(1,14635424,1,1,2) [2025-03-08 13:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635424', 'tblTempUsageDetail_20' ) start [2025-03-08 13:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635424', 'tblTempUsageDetail_20' ) end [2025-03-08 13:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:21:21] Production.INFO: ==6159== Releasing lock... [2025-03-08 13:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:21:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-08 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:22:05 [end_date_ymd] => 2025-03-08 13:22:05 [RateCDR] => 1 ) [2025-03-08 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:22:05' and `end` < '2025-03-08 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:22:17] Production.INFO: count ==1795 [2025-03-08 13:22:17] Production.ERROR: pbx CDR StartTime 2025-03-08 10:22:05 - End Time 2025-03-08 13:22:05 [2025-03-08 13:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635429', 'tblTempUsageDetail_20' ) start [2025-03-08 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635429', 'tblTempUsageDetail_20' ) end [2025-03-08 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635429', 'tblTempVendorCDR_20' ) start [2025-03-08 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635429', 'tblTempVendorCDR_20' ) end [2025-03-08 13:22:17] Production.INFO: ProcessCDR(1,14635429,1,1,2) [2025-03-08 13:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635429', 'tblTempUsageDetail_20' ) start [2025-03-08 13:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635429', 'tblTempUsageDetail_20' ) end [2025-03-08 13:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:22:21] Production.INFO: ==6276== Releasing lock... [2025-03-08 13:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:22:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-08 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:23:05 [end_date_ymd] => 2025-03-08 13:23:05 [RateCDR] => 1 ) [2025-03-08 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:23:05' and `end` < '2025-03-08 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:23:17] Production.INFO: count ==1798 [2025-03-08 13:23:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:23:05 - End Time 2025-03-08 13:23:05 [2025-03-08 13:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635434', 'tblTempUsageDetail_20' ) start [2025-03-08 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635434', 'tblTempUsageDetail_20' ) end [2025-03-08 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635434', 'tblTempVendorCDR_20' ) start [2025-03-08 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635434', 'tblTempVendorCDR_20' ) end [2025-03-08 13:23:18] Production.INFO: ProcessCDR(1,14635434,1,1,2) [2025-03-08 13:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635434', 'tblTempUsageDetail_20' ) start [2025-03-08 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635434', 'tblTempUsageDetail_20' ) end [2025-03-08 13:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:23:23] Production.INFO: ==6364== Releasing lock... [2025-03-08 13:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:23:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-08 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:24:05 [end_date_ymd] => 2025-03-08 13:24:05 [RateCDR] => 1 ) [2025-03-08 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:24:05' and `end` < '2025-03-08 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:24:17] Production.INFO: count ==1819 [2025-03-08 13:24:17] Production.ERROR: pbx CDR StartTime 2025-03-08 10:24:05 - End Time 2025-03-08 13:24:05 [2025-03-08 13:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635439', 'tblTempUsageDetail_20' ) start [2025-03-08 13:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635439', 'tblTempUsageDetail_20' ) end [2025-03-08 13:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635439', 'tblTempVendorCDR_20' ) start [2025-03-08 13:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635439', 'tblTempVendorCDR_20' ) end [2025-03-08 13:24:17] Production.INFO: ProcessCDR(1,14635439,1,1,2) [2025-03-08 13:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635439', 'tblTempUsageDetail_20' ) start [2025-03-08 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635439', 'tblTempUsageDetail_20' ) end [2025-03-08 13:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:24:23] Production.INFO: ==6445== Releasing lock... [2025-03-08 13:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:24:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-08 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:25:05 [end_date_ymd] => 2025-03-08 13:25:05 [RateCDR] => 1 ) [2025-03-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-03-08 10:25:05' and `end` < '2025-03-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-03-08 13:25:17] Production.INFO: count ==1809 [2025-03-08 13:25:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:25:05 - End Time 2025-03-08 13:25:05 [2025-03-08 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635444', 'tblTempUsageDetail_20' ) start [2025-03-08 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635444', 'tblTempUsageDetail_20' ) end [2025-03-08 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635444', 'tblTempVendorCDR_20' ) start [2025-03-08 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635444', 'tblTempVendorCDR_20' ) end [2025-03-08 13:25:18] Production.INFO: ProcessCDR(1,14635444,1,1,2) [2025-03-08 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635444', 'tblTempUsageDetail_20' ) start [2025-03-08 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635444', 'tblTempUsageDetail_20' ) end [2025-03-08 13:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:25:23] Production.INFO: ==6525== Releasing lock... [2025-03-08 13:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:25:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-08 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:26:06 [end_date_ymd] => 2025-03-08 13:26:06 [RateCDR] => 1 ) [2025-03-08 13:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:26:06' and `end` < '2025-03-08 13:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:26:18] Production.INFO: count ==1817 [2025-03-08 13:26:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:26:06 - End Time 2025-03-08 13:26:06 [2025-03-08 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635449', 'tblTempUsageDetail_20' ) start [2025-03-08 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635449', 'tblTempUsageDetail_20' ) end [2025-03-08 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635449', 'tblTempVendorCDR_20' ) start [2025-03-08 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635449', 'tblTempVendorCDR_20' ) end [2025-03-08 13:26:19] Production.INFO: ProcessCDR(1,14635449,1,1,2) [2025-03-08 13:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635449', 'tblTempUsageDetail_20' ) start [2025-03-08 13:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635449', 'tblTempUsageDetail_20' ) end [2025-03-08 13:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:26:24] Production.INFO: ==6606== Releasing lock... [2025-03-08 13:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:26:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-08 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:27:05 [end_date_ymd] => 2025-03-08 13:27:05 [RateCDR] => 1 ) [2025-03-08 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:27:05' and `end` < '2025-03-08 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:27:17] Production.INFO: count ==1803 [2025-03-08 13:27:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:27:05 - End Time 2025-03-08 13:27:05 [2025-03-08 13:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635454', 'tblTempUsageDetail_20' ) start [2025-03-08 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635454', 'tblTempUsageDetail_20' ) end [2025-03-08 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635454', 'tblTempVendorCDR_20' ) start [2025-03-08 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635454', 'tblTempVendorCDR_20' ) end [2025-03-08 13:27:18] Production.INFO: ProcessCDR(1,14635454,1,1,2) [2025-03-08 13:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635454', 'tblTempUsageDetail_20' ) start [2025-03-08 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635454', 'tblTempUsageDetail_20' ) end [2025-03-08 13:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:27:23] Production.INFO: ==6684== Releasing lock... [2025-03-08 13:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:27:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-08 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:28:05 [end_date_ymd] => 2025-03-08 13:28:05 [RateCDR] => 1 ) [2025-03-08 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:28:05' and `end` < '2025-03-08 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:28:18] Production.INFO: count ==1803 [2025-03-08 13:28:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:28:05 - End Time 2025-03-08 13:28:05 [2025-03-08 13:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635459', 'tblTempUsageDetail_20' ) start [2025-03-08 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635459', 'tblTempUsageDetail_20' ) end [2025-03-08 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635459', 'tblTempVendorCDR_20' ) start [2025-03-08 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635459', 'tblTempVendorCDR_20' ) end [2025-03-08 13:28:18] Production.INFO: ProcessCDR(1,14635459,1,1,2) [2025-03-08 13:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635459', 'tblTempUsageDetail_20' ) start [2025-03-08 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635459', 'tblTempUsageDetail_20' ) end [2025-03-08 13:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:28:23] Production.INFO: ==6767== Releasing lock... [2025-03-08 13:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:28:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-08 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:29:05 [end_date_ymd] => 2025-03-08 13:29:05 [RateCDR] => 1 ) [2025-03-08 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:29:05' and `end` < '2025-03-08 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:29:17] Production.INFO: count ==1795 [2025-03-08 13:29:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:29:05 - End Time 2025-03-08 13:29:05 [2025-03-08 13:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635464', 'tblTempUsageDetail_20' ) start [2025-03-08 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635464', 'tblTempUsageDetail_20' ) end [2025-03-08 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635464', 'tblTempVendorCDR_20' ) start [2025-03-08 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635464', 'tblTempVendorCDR_20' ) end [2025-03-08 13:29:18] Production.INFO: ProcessCDR(1,14635464,1,1,2) [2025-03-08 13:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635464', 'tblTempUsageDetail_20' ) start [2025-03-08 13:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635464', 'tblTempUsageDetail_20' ) end [2025-03-08 13:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:29:21] Production.INFO: ==6843== Releasing lock... [2025-03-08 13:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:29:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-08 13:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:30:07 [end_date_ymd] => 2025-03-08 13:30:07 [RateCDR] => 1 ) [2025-03-08 13:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:30:07' and `end` < '2025-03-08 13:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:30:19] Production.INFO: count ==1784 [2025-03-08 13:30:20] Production.ERROR: pbx CDR StartTime 2025-03-08 10:30:07 - End Time 2025-03-08 13:30:07 [2025-03-08 13:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635470', 'tblTempUsageDetail_20' ) start [2025-03-08 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635470', 'tblTempUsageDetail_20' ) end [2025-03-08 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635470', 'tblTempVendorCDR_20' ) start [2025-03-08 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635470', 'tblTempVendorCDR_20' ) end [2025-03-08 13:30:20] Production.INFO: ProcessCDR(1,14635470,1,1,2) [2025-03-08 13:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635470', 'tblTempUsageDetail_20' ) start [2025-03-08 13:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635470', 'tblTempUsageDetail_20' ) end [2025-03-08 13:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:30:25] Production.INFO: ==6932== Releasing lock... [2025-03-08 13:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:30:25] Production.INFO: 41.5 MB #Memory Used# [2025-03-08 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:31:05 [end_date_ymd] => 2025-03-08 13:31:05 [RateCDR] => 1 ) [2025-03-08 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:31:05' and `end` < '2025-03-08 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:31:17] Production.INFO: count ==1738 [2025-03-08 13:31:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:31:05 - End Time 2025-03-08 13:31:05 [2025-03-08 13:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635475', 'tblTempUsageDetail_20' ) start [2025-03-08 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635475', 'tblTempUsageDetail_20' ) end [2025-03-08 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635475', 'tblTempVendorCDR_20' ) start [2025-03-08 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635475', 'tblTempVendorCDR_20' ) end [2025-03-08 13:31:18] Production.INFO: ProcessCDR(1,14635475,1,1,2) [2025-03-08 13:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635475', 'tblTempUsageDetail_20' ) start [2025-03-08 13:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635475', 'tblTempUsageDetail_20' ) end [2025-03-08 13:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:31:22] Production.INFO: ==7017== Releasing lock... [2025-03-08 13:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:31:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:32:05 [end_date_ymd] => 2025-03-08 13:32:05 [RateCDR] => 1 ) [2025-03-08 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:32:05' and `end` < '2025-03-08 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:32:17] Production.INFO: count ==1737 [2025-03-08 13:32:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:32:05 - End Time 2025-03-08 13:32:05 [2025-03-08 13:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635480', 'tblTempUsageDetail_20' ) start [2025-03-08 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635480', 'tblTempUsageDetail_20' ) end [2025-03-08 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635480', 'tblTempVendorCDR_20' ) start [2025-03-08 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635480', 'tblTempVendorCDR_20' ) end [2025-03-08 13:32:18] Production.INFO: ProcessCDR(1,14635480,1,1,2) [2025-03-08 13:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635480', 'tblTempUsageDetail_20' ) start [2025-03-08 13:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635480', 'tblTempUsageDetail_20' ) end [2025-03-08 13:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:32:23] Production.INFO: ==7099== Releasing lock... [2025-03-08 13:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:32:23] Production.INFO: 41 MB #Memory Used# [2025-03-08 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:33:05 [end_date_ymd] => 2025-03-08 13:33:05 [RateCDR] => 1 ) [2025-03-08 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:33:05' and `end` < '2025-03-08 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:33:17] Production.INFO: count ==1738 [2025-03-08 13:33:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:33:05 - End Time 2025-03-08 13:33:05 [2025-03-08 13:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635485', 'tblTempUsageDetail_20' ) start [2025-03-08 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635485', 'tblTempUsageDetail_20' ) end [2025-03-08 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635485', 'tblTempVendorCDR_20' ) start [2025-03-08 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635485', 'tblTempVendorCDR_20' ) end [2025-03-08 13:33:18] Production.INFO: ProcessCDR(1,14635485,1,1,2) [2025-03-08 13:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635485', 'tblTempUsageDetail_20' ) start [2025-03-08 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635485', 'tblTempUsageDetail_20' ) end [2025-03-08 13:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:33:22] Production.INFO: ==7178== Releasing lock... [2025-03-08 13:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:33:22] Production.INFO: 41 MB #Memory Used# [2025-03-08 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:34:05 [end_date_ymd] => 2025-03-08 13:34:05 [RateCDR] => 1 ) [2025-03-08 13:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:34:05' and `end` < '2025-03-08 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:34:18] Production.INFO: count ==1739 [2025-03-08 13:34:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:34:05 - End Time 2025-03-08 13:34:05 [2025-03-08 13:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635490', 'tblTempUsageDetail_20' ) start [2025-03-08 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635490', 'tblTempUsageDetail_20' ) end [2025-03-08 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635490', 'tblTempVendorCDR_20' ) start [2025-03-08 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635490', 'tblTempVendorCDR_20' ) end [2025-03-08 13:34:18] Production.INFO: ProcessCDR(1,14635490,1,1,2) [2025-03-08 13:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635490', 'tblTempUsageDetail_20' ) start [2025-03-08 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635490', 'tblTempUsageDetail_20' ) end [2025-03-08 13:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:34:22] Production.INFO: ==7258== Releasing lock... [2025-03-08 13:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:34:22] Production.INFO: 41 MB #Memory Used# [2025-03-08 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:35:06 [end_date_ymd] => 2025-03-08 13:35:06 [RateCDR] => 1 ) [2025-03-08 13:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:35:06' and `end` < '2025-03-08 13:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:35:18] Production.INFO: count ==1739 [2025-03-08 13:35:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:35:06 - End Time 2025-03-08 13:35:06 [2025-03-08 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635495', 'tblTempUsageDetail_20' ) start [2025-03-08 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635495', 'tblTempUsageDetail_20' ) end [2025-03-08 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635495', 'tblTempVendorCDR_20' ) start [2025-03-08 13:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635495', 'tblTempVendorCDR_20' ) end [2025-03-08 13:35:19] Production.INFO: ProcessCDR(1,14635495,1,1,2) [2025-03-08 13:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635495', 'tblTempUsageDetail_20' ) start [2025-03-08 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635495', 'tblTempUsageDetail_20' ) end [2025-03-08 13:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:35:22] Production.INFO: ==7333== Releasing lock... [2025-03-08 13:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:35:22] Production.INFO: 41 MB #Memory Used# [2025-03-08 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:36:06 [end_date_ymd] => 2025-03-08 13:36:06 [RateCDR] => 1 ) [2025-03-08 13:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:36:06' and `end` < '2025-03-08 13:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:36:18] Production.INFO: count ==1743 [2025-03-08 13:36:19] Production.ERROR: pbx CDR StartTime 2025-03-08 10:36:06 - End Time 2025-03-08 13:36:06 [2025-03-08 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635500', 'tblTempUsageDetail_20' ) start [2025-03-08 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635500', 'tblTempUsageDetail_20' ) end [2025-03-08 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635500', 'tblTempVendorCDR_20' ) start [2025-03-08 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635500', 'tblTempVendorCDR_20' ) end [2025-03-08 13:36:19] Production.INFO: ProcessCDR(1,14635500,1,1,2) [2025-03-08 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635500', 'tblTempUsageDetail_20' ) start [2025-03-08 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635500', 'tblTempUsageDetail_20' ) end [2025-03-08 13:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:36:22] Production.INFO: ==7407== Releasing lock... [2025-03-08 13:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:36:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:37:05 [end_date_ymd] => 2025-03-08 13:37:05 [RateCDR] => 1 ) [2025-03-08 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:37:05' and `end` < '2025-03-08 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:37:17] Production.INFO: count ==1741 [2025-03-08 13:37:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:37:05 - End Time 2025-03-08 13:37:05 [2025-03-08 13:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635505', 'tblTempUsageDetail_20' ) start [2025-03-08 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635505', 'tblTempUsageDetail_20' ) end [2025-03-08 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635505', 'tblTempVendorCDR_20' ) start [2025-03-08 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635505', 'tblTempVendorCDR_20' ) end [2025-03-08 13:37:18] Production.INFO: ProcessCDR(1,14635505,1,1,2) [2025-03-08 13:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635505', 'tblTempUsageDetail_20' ) start [2025-03-08 13:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635505', 'tblTempUsageDetail_20' ) end [2025-03-08 13:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:37:21] Production.INFO: ==7519== Releasing lock... [2025-03-08 13:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:37:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:38:06 [end_date_ymd] => 2025-03-08 13:38:06 [RateCDR] => 1 ) [2025-03-08 13:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:38:06' and `end` < '2025-03-08 13:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:38:18] Production.INFO: count ==1735 [2025-03-08 13:38:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:38:06 - End Time 2025-03-08 13:38:06 [2025-03-08 13:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635510', 'tblTempUsageDetail_20' ) start [2025-03-08 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635510', 'tblTempUsageDetail_20' ) end [2025-03-08 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635510', 'tblTempVendorCDR_20' ) start [2025-03-08 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635510', 'tblTempVendorCDR_20' ) end [2025-03-08 13:38:18] Production.INFO: ProcessCDR(1,14635510,1,1,2) [2025-03-08 13:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635510', 'tblTempUsageDetail_20' ) start [2025-03-08 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635510', 'tblTempUsageDetail_20' ) end [2025-03-08 13:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:38:22] Production.INFO: ==7594== Releasing lock... [2025-03-08 13:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:38:22] Production.INFO: 41 MB #Memory Used# [2025-03-08 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:39:05 [end_date_ymd] => 2025-03-08 13:39:05 [RateCDR] => 1 ) [2025-03-08 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:39:05' and `end` < '2025-03-08 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:39:17] Production.INFO: count ==1738 [2025-03-08 13:39:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:39:05 - End Time 2025-03-08 13:39:05 [2025-03-08 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635515', 'tblTempUsageDetail_20' ) start [2025-03-08 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635515', 'tblTempUsageDetail_20' ) end [2025-03-08 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635515', 'tblTempVendorCDR_20' ) start [2025-03-08 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635515', 'tblTempVendorCDR_20' ) end [2025-03-08 13:39:18] Production.INFO: ProcessCDR(1,14635515,1,1,2) [2025-03-08 13:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635515', 'tblTempUsageDetail_20' ) start [2025-03-08 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635515', 'tblTempUsageDetail_20' ) end [2025-03-08 13:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:39:23] Production.INFO: ==7668== Releasing lock... [2025-03-08 13:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:39:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:40:06 [end_date_ymd] => 2025-03-08 13:40:06 [RateCDR] => 1 ) [2025-03-08 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:40:06' and `end` < '2025-03-08 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:40:19] Production.INFO: count ==1739 [2025-03-08 13:40:19] Production.ERROR: pbx CDR StartTime 2025-03-08 10:40:06 - End Time 2025-03-08 13:40:06 [2025-03-08 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635521', 'tblTempUsageDetail_20' ) start [2025-03-08 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635521', 'tblTempUsageDetail_20' ) end [2025-03-08 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635521', 'tblTempVendorCDR_20' ) start [2025-03-08 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635521', 'tblTempVendorCDR_20' ) end [2025-03-08 13:40:19] Production.INFO: ProcessCDR(1,14635521,1,1,2) [2025-03-08 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635521', 'tblTempUsageDetail_20' ) start [2025-03-08 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635521', 'tblTempUsageDetail_20' ) end [2025-03-08 13:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:40:23] Production.INFO: ==7750== Releasing lock... [2025-03-08 13:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:40:23] Production.INFO: 41 MB #Memory Used# [2025-03-08 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:41:06 [end_date_ymd] => 2025-03-08 13:41:06 [RateCDR] => 1 ) [2025-03-08 13:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:41:06' and `end` < '2025-03-08 13:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:41:18] Production.INFO: count ==1749 [2025-03-08 13:41:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:41:06 - End Time 2025-03-08 13:41:06 [2025-03-08 13:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635526', 'tblTempUsageDetail_20' ) start [2025-03-08 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635526', 'tblTempUsageDetail_20' ) end [2025-03-08 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635526', 'tblTempVendorCDR_20' ) start [2025-03-08 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635526', 'tblTempVendorCDR_20' ) end [2025-03-08 13:41:18] Production.INFO: ProcessCDR(1,14635526,1,1,2) [2025-03-08 13:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635526', 'tblTempUsageDetail_20' ) start [2025-03-08 13:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635526', 'tblTempUsageDetail_20' ) end [2025-03-08 13:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:41:23] Production.INFO: ==7828== Releasing lock... [2025-03-08 13:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:41:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:42:06 [end_date_ymd] => 2025-03-08 13:42:06 [RateCDR] => 1 ) [2025-03-08 13:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:42:06' and `end` < '2025-03-08 13:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:42:18] Production.INFO: count ==1750 [2025-03-08 13:42:19] Production.ERROR: pbx CDR StartTime 2025-03-08 10:42:06 - End Time 2025-03-08 13:42:06 [2025-03-08 13:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635531', 'tblTempUsageDetail_20' ) start [2025-03-08 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635531', 'tblTempUsageDetail_20' ) end [2025-03-08 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635531', 'tblTempVendorCDR_20' ) start [2025-03-08 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635531', 'tblTempVendorCDR_20' ) end [2025-03-08 13:42:19] Production.INFO: ProcessCDR(1,14635531,1,1,2) [2025-03-08 13:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635531', 'tblTempUsageDetail_20' ) start [2025-03-08 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635531', 'tblTempUsageDetail_20' ) end [2025-03-08 13:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:42:24] Production.INFO: ==7909== Releasing lock... [2025-03-08 13:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:42:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:43:05 [end_date_ymd] => 2025-03-08 13:43:05 [RateCDR] => 1 ) [2025-03-08 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:43:05' and `end` < '2025-03-08 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:43:17] Production.INFO: count ==1749 [2025-03-08 13:43:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:43:05 - End Time 2025-03-08 13:43:05 [2025-03-08 13:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635536', 'tblTempUsageDetail_20' ) start [2025-03-08 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635536', 'tblTempUsageDetail_20' ) end [2025-03-08 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635536', 'tblTempVendorCDR_20' ) start [2025-03-08 13:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635536', 'tblTempVendorCDR_20' ) end [2025-03-08 13:43:18] Production.INFO: ProcessCDR(1,14635536,1,1,2) [2025-03-08 13:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635536', 'tblTempUsageDetail_20' ) start [2025-03-08 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635536', 'tblTempUsageDetail_20' ) end [2025-03-08 13:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:43:21] Production.INFO: ==7984== Releasing lock... [2025-03-08 13:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:43:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:44:05 [end_date_ymd] => 2025-03-08 13:44:05 [RateCDR] => 1 ) [2025-03-08 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:44:05' and `end` < '2025-03-08 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:44:17] Production.INFO: count ==1748 [2025-03-08 13:44:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:44:05 - End Time 2025-03-08 13:44:05 [2025-03-08 13:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635541', 'tblTempUsageDetail_20' ) start [2025-03-08 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635541', 'tblTempUsageDetail_20' ) end [2025-03-08 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635541', 'tblTempVendorCDR_20' ) start [2025-03-08 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635541', 'tblTempVendorCDR_20' ) end [2025-03-08 13:44:18] Production.INFO: ProcessCDR(1,14635541,1,1,2) [2025-03-08 13:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635541', 'tblTempUsageDetail_20' ) start [2025-03-08 13:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635541', 'tblTempUsageDetail_20' ) end [2025-03-08 13:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:44:21] Production.INFO: ==8057== Releasing lock... [2025-03-08 13:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:44:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:45:05 [end_date_ymd] => 2025-03-08 13:45:05 [RateCDR] => 1 ) [2025-03-08 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:45:05' and `end` < '2025-03-08 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:45:17] Production.INFO: count ==1736 [2025-03-08 13:45:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:45:05 - End Time 2025-03-08 13:45:05 [2025-03-08 13:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635546', 'tblTempUsageDetail_20' ) start [2025-03-08 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635546', 'tblTempUsageDetail_20' ) end [2025-03-08 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635546', 'tblTempVendorCDR_20' ) start [2025-03-08 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635546', 'tblTempVendorCDR_20' ) end [2025-03-08 13:45:18] Production.INFO: ProcessCDR(1,14635546,1,1,2) [2025-03-08 13:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635546', 'tblTempUsageDetail_20' ) start [2025-03-08 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635546', 'tblTempUsageDetail_20' ) end [2025-03-08 13:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:45:23] Production.INFO: ==8135== Releasing lock... [2025-03-08 13:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:45:23] Production.INFO: 41 MB #Memory Used# [2025-03-08 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:46:05 [end_date_ymd] => 2025-03-08 13:46:05 [RateCDR] => 1 ) [2025-03-08 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:46:05' and `end` < '2025-03-08 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:46:17] Production.INFO: count ==1739 [2025-03-08 13:46:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:46:05 - End Time 2025-03-08 13:46:05 [2025-03-08 13:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635551', 'tblTempUsageDetail_20' ) start [2025-03-08 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635551', 'tblTempUsageDetail_20' ) end [2025-03-08 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635551', 'tblTempVendorCDR_20' ) start [2025-03-08 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635551', 'tblTempVendorCDR_20' ) end [2025-03-08 13:46:18] Production.INFO: ProcessCDR(1,14635551,1,1,2) [2025-03-08 13:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635551', 'tblTempUsageDetail_20' ) start [2025-03-08 13:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635551', 'tblTempUsageDetail_20' ) end [2025-03-08 13:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:46:22] Production.INFO: ==8213== Releasing lock... [2025-03-08 13:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:46:22] Production.INFO: 41 MB #Memory Used# [2025-03-08 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:47:05 [end_date_ymd] => 2025-03-08 13:47:05 [RateCDR] => 1 ) [2025-03-08 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:47:05' and `end` < '2025-03-08 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:47:18] Production.INFO: count ==1739 [2025-03-08 13:47:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:47:05 - End Time 2025-03-08 13:47:05 [2025-03-08 13:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635556', 'tblTempUsageDetail_20' ) start [2025-03-08 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635556', 'tblTempUsageDetail_20' ) end [2025-03-08 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635556', 'tblTempVendorCDR_20' ) start [2025-03-08 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635556', 'tblTempVendorCDR_20' ) end [2025-03-08 13:47:18] Production.INFO: ProcessCDR(1,14635556,1,1,2) [2025-03-08 13:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635556', 'tblTempUsageDetail_20' ) start [2025-03-08 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635556', 'tblTempUsageDetail_20' ) end [2025-03-08 13:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:47:22] Production.INFO: ==8287== Releasing lock... [2025-03-08 13:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:47:22] Production.INFO: 41 MB #Memory Used# [2025-03-08 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:48:05 [end_date_ymd] => 2025-03-08 13:48:05 [RateCDR] => 1 ) [2025-03-08 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:48:05' and `end` < '2025-03-08 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:48:17] Production.INFO: count ==1735 [2025-03-08 13:48:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:48:05 - End Time 2025-03-08 13:48:05 [2025-03-08 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635561', 'tblTempUsageDetail_20' ) start [2025-03-08 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635561', 'tblTempUsageDetail_20' ) end [2025-03-08 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635561', 'tblTempVendorCDR_20' ) start [2025-03-08 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635561', 'tblTempVendorCDR_20' ) end [2025-03-08 13:48:18] Production.INFO: ProcessCDR(1,14635561,1,1,2) [2025-03-08 13:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635561', 'tblTempUsageDetail_20' ) start [2025-03-08 13:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635561', 'tblTempUsageDetail_20' ) end [2025-03-08 13:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:48:21] Production.INFO: ==8360== Releasing lock... [2025-03-08 13:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:48:21] Production.INFO: 41 MB #Memory Used# [2025-03-08 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:49:05 [end_date_ymd] => 2025-03-08 13:49:05 [RateCDR] => 1 ) [2025-03-08 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:49:05' and `end` < '2025-03-08 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:49:18] Production.INFO: count ==1732 [2025-03-08 13:49:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:49:05 - End Time 2025-03-08 13:49:05 [2025-03-08 13:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635566', 'tblTempUsageDetail_20' ) start [2025-03-08 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635566', 'tblTempUsageDetail_20' ) end [2025-03-08 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635566', 'tblTempVendorCDR_20' ) start [2025-03-08 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635566', 'tblTempVendorCDR_20' ) end [2025-03-08 13:49:19] Production.INFO: ProcessCDR(1,14635566,1,1,2) [2025-03-08 13:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635566', 'tblTempUsageDetail_20' ) start [2025-03-08 13:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635566', 'tblTempUsageDetail_20' ) end [2025-03-08 13:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:49:22] Production.INFO: ==8437== Releasing lock... [2025-03-08 13:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:49:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 13:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:50:07 [end_date_ymd] => 2025-03-08 13:50:07 [RateCDR] => 1 ) [2025-03-08 13:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:50:07' and `end` < '2025-03-08 13:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:50:19] Production.INFO: count ==1729 [2025-03-08 13:50:19] Production.ERROR: pbx CDR StartTime 2025-03-08 10:50:07 - End Time 2025-03-08 13:50:07 [2025-03-08 13:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635572', 'tblTempUsageDetail_20' ) start [2025-03-08 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635572', 'tblTempUsageDetail_20' ) end [2025-03-08 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635572', 'tblTempVendorCDR_20' ) start [2025-03-08 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635572', 'tblTempVendorCDR_20' ) end [2025-03-08 13:50:19] Production.INFO: ProcessCDR(1,14635572,1,1,2) [2025-03-08 13:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635572', 'tblTempUsageDetail_20' ) start [2025-03-08 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635572', 'tblTempUsageDetail_20' ) end [2025-03-08 13:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:50:24] Production.INFO: ==8509== Releasing lock... [2025-03-08 13:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:50:24] Production.INFO: 41 MB #Memory Used# [2025-03-08 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:51:05 [end_date_ymd] => 2025-03-08 13:51:05 [RateCDR] => 1 ) [2025-03-08 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:51:05' and `end` < '2025-03-08 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:51:17] Production.INFO: count ==1720 [2025-03-08 13:51:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:51:05 - End Time 2025-03-08 13:51:05 [2025-03-08 13:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635577', 'tblTempUsageDetail_20' ) start [2025-03-08 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635577', 'tblTempUsageDetail_20' ) end [2025-03-08 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635577', 'tblTempVendorCDR_20' ) start [2025-03-08 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635577', 'tblTempVendorCDR_20' ) end [2025-03-08 13:51:18] Production.INFO: ProcessCDR(1,14635577,1,1,2) [2025-03-08 13:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635577', 'tblTempUsageDetail_20' ) start [2025-03-08 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635577', 'tblTempUsageDetail_20' ) end [2025-03-08 13:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:51:23] Production.INFO: ==8586== Releasing lock... [2025-03-08 13:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:51:23] Production.INFO: 41 MB #Memory Used# [2025-03-08 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:52:05 [end_date_ymd] => 2025-03-08 13:52:05 [RateCDR] => 1 ) [2025-03-08 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:52:05' and `end` < '2025-03-08 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:52:17] Production.INFO: count ==1721 [2025-03-08 13:52:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:52:05 - End Time 2025-03-08 13:52:05 [2025-03-08 13:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635582', 'tblTempUsageDetail_20' ) start [2025-03-08 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635582', 'tblTempUsageDetail_20' ) end [2025-03-08 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635582', 'tblTempVendorCDR_20' ) start [2025-03-08 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635582', 'tblTempVendorCDR_20' ) end [2025-03-08 13:52:18] Production.INFO: ProcessCDR(1,14635582,1,1,2) [2025-03-08 13:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635582', 'tblTempUsageDetail_20' ) start [2025-03-08 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635582', 'tblTempUsageDetail_20' ) end [2025-03-08 13:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:52:23] Production.INFO: ==8658== Releasing lock... [2025-03-08 13:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:52:23] Production.INFO: 41 MB #Memory Used# [2025-03-08 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:53:05 [end_date_ymd] => 2025-03-08 13:53:05 [RateCDR] => 1 ) [2025-03-08 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:53:05' and `end` < '2025-03-08 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:53:18] Production.INFO: count ==1711 [2025-03-08 13:53:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:53:05 - End Time 2025-03-08 13:53:05 [2025-03-08 13:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635587', 'tblTempUsageDetail_20' ) start [2025-03-08 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635587', 'tblTempUsageDetail_20' ) end [2025-03-08 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635587', 'tblTempVendorCDR_20' ) start [2025-03-08 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635587', 'tblTempVendorCDR_20' ) end [2025-03-08 13:53:18] Production.INFO: ProcessCDR(1,14635587,1,1,2) [2025-03-08 13:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635587', 'tblTempUsageDetail_20' ) start [2025-03-08 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635587', 'tblTempUsageDetail_20' ) end [2025-03-08 13:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:53:23] Production.INFO: ==8768== Releasing lock... [2025-03-08 13:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:53:23] Production.INFO: 41 MB #Memory Used# [2025-03-08 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:54:05 [end_date_ymd] => 2025-03-08 13:54:05 [RateCDR] => 1 ) [2025-03-08 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:54:05' and `end` < '2025-03-08 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:54:17] Production.INFO: count ==1719 [2025-03-08 13:54:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:54:05 - End Time 2025-03-08 13:54:05 [2025-03-08 13:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635592', 'tblTempUsageDetail_20' ) start [2025-03-08 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635592', 'tblTempUsageDetail_20' ) end [2025-03-08 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635592', 'tblTempVendorCDR_20' ) start [2025-03-08 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635592', 'tblTempVendorCDR_20' ) end [2025-03-08 13:54:18] Production.INFO: ProcessCDR(1,14635592,1,1,2) [2025-03-08 13:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635592', 'tblTempUsageDetail_20' ) start [2025-03-08 13:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635592', 'tblTempUsageDetail_20' ) end [2025-03-08 13:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:54:21] Production.INFO: ==8837== Releasing lock... [2025-03-08 13:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:54:21] Production.INFO: 41 MB #Memory Used# [2025-03-08 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:55:06 [end_date_ymd] => 2025-03-08 13:55:06 [RateCDR] => 1 ) [2025-03-08 13:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:55:06' and `end` < '2025-03-08 13:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:55:19] Production.INFO: count ==1760 [2025-03-08 13:55:19] Production.ERROR: pbx CDR StartTime 2025-03-08 10:55:06 - End Time 2025-03-08 13:55:06 [2025-03-08 13:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635597', 'tblTempUsageDetail_20' ) start [2025-03-08 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635597', 'tblTempUsageDetail_20' ) end [2025-03-08 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635597', 'tblTempVendorCDR_20' ) start [2025-03-08 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635597', 'tblTempVendorCDR_20' ) end [2025-03-08 13:55:19] Production.INFO: ProcessCDR(1,14635597,1,1,2) [2025-03-08 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635597', 'tblTempUsageDetail_20' ) start [2025-03-08 13:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635597', 'tblTempUsageDetail_20' ) end [2025-03-08 13:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:55:24] Production.INFO: ==8912== Releasing lock... [2025-03-08 13:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:55:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-08 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:56:05 [end_date_ymd] => 2025-03-08 13:56:05 [RateCDR] => 1 ) [2025-03-08 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:56:05' and `end` < '2025-03-08 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:56:17] Production.INFO: count ==1762 [2025-03-08 13:56:17] Production.ERROR: pbx CDR StartTime 2025-03-08 10:56:05 - End Time 2025-03-08 13:56:05 [2025-03-08 13:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635602', 'tblTempUsageDetail_20' ) start [2025-03-08 13:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635602', 'tblTempUsageDetail_20' ) end [2025-03-08 13:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635602', 'tblTempVendorCDR_20' ) start [2025-03-08 13:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635602', 'tblTempVendorCDR_20' ) end [2025-03-08 13:56:17] Production.INFO: ProcessCDR(1,14635602,1,1,2) [2025-03-08 13:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635602', 'tblTempUsageDetail_20' ) start [2025-03-08 13:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635602', 'tblTempUsageDetail_20' ) end [2025-03-08 13:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:56:21] Production.INFO: ==8986== Releasing lock... [2025-03-08 13:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:56:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:57:05 [end_date_ymd] => 2025-03-08 13:57:05 [RateCDR] => 1 ) [2025-03-08 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:57:05' and `end` < '2025-03-08 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:57:17] Production.INFO: count ==1765 [2025-03-08 13:57:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:57:05 - End Time 2025-03-08 13:57:05 [2025-03-08 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635607', 'tblTempUsageDetail_20' ) start [2025-03-08 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635607', 'tblTempUsageDetail_20' ) end [2025-03-08 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635607', 'tblTempVendorCDR_20' ) start [2025-03-08 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635607', 'tblTempVendorCDR_20' ) end [2025-03-08 13:57:18] Production.INFO: ProcessCDR(1,14635607,1,1,2) [2025-03-08 13:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635607', 'tblTempUsageDetail_20' ) start [2025-03-08 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635607', 'tblTempUsageDetail_20' ) end [2025-03-08 13:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:57:23] Production.INFO: ==9060== Releasing lock... [2025-03-08 13:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:57:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:58:05 [end_date_ymd] => 2025-03-08 13:58:05 [RateCDR] => 1 ) [2025-03-08 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:58:05' and `end` < '2025-03-08 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:58:17] Production.INFO: count ==1771 [2025-03-08 13:58:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:58:05 - End Time 2025-03-08 13:58:05 [2025-03-08 13:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635612', 'tblTempUsageDetail_20' ) start [2025-03-08 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635612', 'tblTempUsageDetail_20' ) end [2025-03-08 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635612', 'tblTempVendorCDR_20' ) start [2025-03-08 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635612', 'tblTempVendorCDR_20' ) end [2025-03-08 13:58:18] Production.INFO: ProcessCDR(1,14635612,1,1,2) [2025-03-08 13:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635612', 'tblTempUsageDetail_20' ) start [2025-03-08 13:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635612', 'tblTempUsageDetail_20' ) end [2025-03-08 13:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:58:21] Production.INFO: ==9131== Releasing lock... [2025-03-08 13:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:58:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 10:59:05 [end_date_ymd] => 2025-03-08 13:59:05 [RateCDR] => 1 ) [2025-03-08 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 10:59:05' and `end` < '2025-03-08 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 13:59:17] Production.INFO: count ==1777 [2025-03-08 13:59:18] Production.ERROR: pbx CDR StartTime 2025-03-08 10:59:05 - End Time 2025-03-08 13:59:05 [2025-03-08 13:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635617', 'tblTempUsageDetail_20' ) start [2025-03-08 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635617', 'tblTempUsageDetail_20' ) end [2025-03-08 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635617', 'tblTempVendorCDR_20' ) start [2025-03-08 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635617', 'tblTempVendorCDR_20' ) end [2025-03-08 13:59:18] Production.INFO: ProcessCDR(1,14635617,1,1,2) [2025-03-08 13:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 13:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 13:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635617', 'tblTempUsageDetail_20' ) start [2025-03-08 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635617', 'tblTempUsageDetail_20' ) end [2025-03-08 13:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 13:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 13:59:22] Production.INFO: ==9206== Releasing lock... [2025-03-08 13:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 13:59:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-08 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:00:06 [end_date_ymd] => 2025-03-08 14:00:06 [RateCDR] => 1 ) [2025-03-08 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:00:06' and `end` < '2025-03-08 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:00:19] Production.INFO: count ==1776 [2025-03-08 14:00:19] Production.ERROR: pbx CDR StartTime 2025-03-08 11:00:06 - End Time 2025-03-08 14:00:06 [2025-03-08 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635623', 'tblTempUsageDetail_20' ) start [2025-03-08 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635623', 'tblTempUsageDetail_20' ) end [2025-03-08 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635623', 'tblTempVendorCDR_20' ) start [2025-03-08 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635623', 'tblTempVendorCDR_20' ) end [2025-03-08 14:00:19] Production.INFO: ProcessCDR(1,14635623,1,1,2) [2025-03-08 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635623', 'tblTempUsageDetail_20' ) start [2025-03-08 14:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635623', 'tblTempUsageDetail_20' ) end [2025-03-08 14:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:00:23] Production.INFO: ==9284== Releasing lock... [2025-03-08 14:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:00:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:01:05 [end_date_ymd] => 2025-03-08 14:01:05 [RateCDR] => 1 ) [2025-03-08 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:01:05' and `end` < '2025-03-08 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:01:17] Production.INFO: count ==1754 [2025-03-08 14:01:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:01:05 - End Time 2025-03-08 14:01:05 [2025-03-08 14:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635628', 'tblTempUsageDetail_20' ) start [2025-03-08 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635628', 'tblTempUsageDetail_20' ) end [2025-03-08 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635628', 'tblTempVendorCDR_20' ) start [2025-03-08 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635628', 'tblTempVendorCDR_20' ) end [2025-03-08 14:01:18] Production.INFO: ProcessCDR(1,14635628,1,1,2) [2025-03-08 14:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635628', 'tblTempUsageDetail_20' ) start [2025-03-08 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635628', 'tblTempUsageDetail_20' ) end [2025-03-08 14:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:01:22] Production.INFO: ==9370== Releasing lock... [2025-03-08 14:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:01:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:02:06 [end_date_ymd] => 2025-03-08 14:02:06 [RateCDR] => 1 ) [2025-03-08 14:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:02:06' and `end` < '2025-03-08 14:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:02:18] Production.INFO: count ==1750 [2025-03-08 14:02:19] Production.ERROR: pbx CDR StartTime 2025-03-08 11:02:06 - End Time 2025-03-08 14:02:06 [2025-03-08 14:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635633', 'tblTempUsageDetail_20' ) start [2025-03-08 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635633', 'tblTempUsageDetail_20' ) end [2025-03-08 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635633', 'tblTempVendorCDR_20' ) start [2025-03-08 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635633', 'tblTempVendorCDR_20' ) end [2025-03-08 14:02:19] Production.INFO: ProcessCDR(1,14635633,1,1,2) [2025-03-08 14:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635633', 'tblTempUsageDetail_20' ) start [2025-03-08 14:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635633', 'tblTempUsageDetail_20' ) end [2025-03-08 14:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:02:22] Production.INFO: ==9448== Releasing lock... [2025-03-08 14:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:02:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:03:05 [end_date_ymd] => 2025-03-08 14:03:05 [RateCDR] => 1 ) [2025-03-08 14:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:03:05' and `end` < '2025-03-08 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:03:18] Production.INFO: count ==1731 [2025-03-08 14:03:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:03:05 - End Time 2025-03-08 14:03:05 [2025-03-08 14:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635638', 'tblTempUsageDetail_20' ) start [2025-03-08 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635638', 'tblTempUsageDetail_20' ) end [2025-03-08 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635638', 'tblTempVendorCDR_20' ) start [2025-03-08 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635638', 'tblTempVendorCDR_20' ) end [2025-03-08 14:03:19] Production.INFO: ProcessCDR(1,14635638,1,1,2) [2025-03-08 14:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635638', 'tblTempUsageDetail_20' ) start [2025-03-08 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635638', 'tblTempUsageDetail_20' ) end [2025-03-08 14:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:03:24] Production.INFO: ==9519== Releasing lock... [2025-03-08 14:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:03:24] Production.INFO: 41 MB #Memory Used# [2025-03-08 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:04:05 [end_date_ymd] => 2025-03-08 14:04:05 [RateCDR] => 1 ) [2025-03-08 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:04:05' and `end` < '2025-03-08 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:04:18] Production.INFO: count ==1729 [2025-03-08 14:04:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:04:05 - End Time 2025-03-08 14:04:05 [2025-03-08 14:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635643', 'tblTempUsageDetail_20' ) start [2025-03-08 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635643', 'tblTempUsageDetail_20' ) end [2025-03-08 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635643', 'tblTempVendorCDR_20' ) start [2025-03-08 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635643', 'tblTempVendorCDR_20' ) end [2025-03-08 14:04:18] Production.INFO: ProcessCDR(1,14635643,1,1,2) [2025-03-08 14:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635643', 'tblTempUsageDetail_20' ) start [2025-03-08 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635643', 'tblTempUsageDetail_20' ) end [2025-03-08 14:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:04:23] Production.INFO: ==9590== Releasing lock... [2025-03-08 14:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:04:23] Production.INFO: 41 MB #Memory Used# [2025-03-08 14:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:05:04 [end_date_ymd] => 2025-03-08 14:05:04 [RateCDR] => 1 ) [2025-03-08 14:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:05:04' and `end` < '2025-03-08 14:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:05:17] Production.INFO: count ==1730 [2025-03-08 14:05:17] Production.ERROR: pbx CDR StartTime 2025-03-08 11:05:04 - End Time 2025-03-08 14:05:04 [2025-03-08 14:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635648', 'tblTempUsageDetail_20' ) start [2025-03-08 14:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635648', 'tblTempUsageDetail_20' ) end [2025-03-08 14:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635648', 'tblTempVendorCDR_20' ) start [2025-03-08 14:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635648', 'tblTempVendorCDR_20' ) end [2025-03-08 14:05:17] Production.INFO: ProcessCDR(1,14635648,1,1,2) [2025-03-08 14:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635648', 'tblTempUsageDetail_20' ) start [2025-03-08 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635648', 'tblTempUsageDetail_20' ) end [2025-03-08 14:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:05:23] Production.INFO: ==9661== Releasing lock... [2025-03-08 14:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:05:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:06:06 [end_date_ymd] => 2025-03-08 14:06:06 [RateCDR] => 1 ) [2025-03-08 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:06:06' and `end` < '2025-03-08 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:06:18] Production.INFO: count ==1720 [2025-03-08 14:06:19] Production.ERROR: pbx CDR StartTime 2025-03-08 11:06:06 - End Time 2025-03-08 14:06:06 [2025-03-08 14:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635653', 'tblTempUsageDetail_20' ) start [2025-03-08 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635653', 'tblTempUsageDetail_20' ) end [2025-03-08 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635653', 'tblTempVendorCDR_20' ) start [2025-03-08 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635653', 'tblTempVendorCDR_20' ) end [2025-03-08 14:06:19] Production.INFO: ProcessCDR(1,14635653,1,1,2) [2025-03-08 14:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635653', 'tblTempUsageDetail_20' ) start [2025-03-08 14:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635653', 'tblTempUsageDetail_20' ) end [2025-03-08 14:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:06:22] Production.INFO: ==9732== Releasing lock... [2025-03-08 14:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:06:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-08 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:07:05 [end_date_ymd] => 2025-03-08 14:07:05 [RateCDR] => 1 ) [2025-03-08 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:07:05' and `end` < '2025-03-08 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:07:17] Production.INFO: count ==1708 [2025-03-08 14:07:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:07:05 - End Time 2025-03-08 14:07:05 [2025-03-08 14:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635658', 'tblTempUsageDetail_20' ) start [2025-03-08 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635658', 'tblTempUsageDetail_20' ) end [2025-03-08 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635658', 'tblTempVendorCDR_20' ) start [2025-03-08 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635658', 'tblTempVendorCDR_20' ) end [2025-03-08 14:07:18] Production.INFO: ProcessCDR(1,14635658,1,1,2) [2025-03-08 14:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635658', 'tblTempUsageDetail_20' ) start [2025-03-08 14:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635658', 'tblTempUsageDetail_20' ) end [2025-03-08 14:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:07:21] Production.INFO: ==9807== Releasing lock... [2025-03-08 14:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:07:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:08:06 [end_date_ymd] => 2025-03-08 14:08:06 [RateCDR] => 1 ) [2025-03-08 14:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:08:06' and `end` < '2025-03-08 14:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:08:18] Production.INFO: count ==1697 [2025-03-08 14:08:19] Production.ERROR: pbx CDR StartTime 2025-03-08 11:08:06 - End Time 2025-03-08 14:08:06 [2025-03-08 14:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635663', 'tblTempUsageDetail_20' ) start [2025-03-08 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635663', 'tblTempUsageDetail_20' ) end [2025-03-08 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635663', 'tblTempVendorCDR_20' ) start [2025-03-08 14:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635663', 'tblTempVendorCDR_20' ) end [2025-03-08 14:08:19] Production.INFO: ProcessCDR(1,14635663,1,1,2) [2025-03-08 14:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635663', 'tblTempUsageDetail_20' ) start [2025-03-08 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635663', 'tblTempUsageDetail_20' ) end [2025-03-08 14:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:08:22] Production.INFO: ==9920== Releasing lock... [2025-03-08 14:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:08:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:09:05 [end_date_ymd] => 2025-03-08 14:09:05 [RateCDR] => 1 ) [2025-03-08 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:09:05' and `end` < '2025-03-08 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:09:18] Production.INFO: count ==1702 [2025-03-08 14:09:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:09:05 - End Time 2025-03-08 14:09:05 [2025-03-08 14:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635668', 'tblTempUsageDetail_20' ) start [2025-03-08 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635668', 'tblTempUsageDetail_20' ) end [2025-03-08 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635668', 'tblTempVendorCDR_20' ) start [2025-03-08 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635668', 'tblTempVendorCDR_20' ) end [2025-03-08 14:09:18] Production.INFO: ProcessCDR(1,14635668,1,1,2) [2025-03-08 14:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635668', 'tblTempUsageDetail_20' ) start [2025-03-08 14:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635668', 'tblTempUsageDetail_20' ) end [2025-03-08 14:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:09:22] Production.INFO: ==9989== Releasing lock... [2025-03-08 14:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:09:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:10:06 [end_date_ymd] => 2025-03-08 14:10:06 [RateCDR] => 1 ) [2025-03-08 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:10:06' and `end` < '2025-03-08 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:10:18] Production.INFO: count ==1709 [2025-03-08 14:10:19] Production.ERROR: pbx CDR StartTime 2025-03-08 11:10:06 - End Time 2025-03-08 14:10:06 [2025-03-08 14:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635673', 'tblTempUsageDetail_20' ) start [2025-03-08 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635673', 'tblTempUsageDetail_20' ) end [2025-03-08 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635673', 'tblTempVendorCDR_20' ) start [2025-03-08 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635673', 'tblTempVendorCDR_20' ) end [2025-03-08 14:10:19] Production.INFO: ProcessCDR(1,14635673,1,1,2) [2025-03-08 14:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635673', 'tblTempUsageDetail_20' ) start [2025-03-08 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635673', 'tblTempUsageDetail_20' ) end [2025-03-08 14:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:10:23] Production.INFO: ==10061== Releasing lock... [2025-03-08 14:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:10:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:11:05 [end_date_ymd] => 2025-03-08 14:11:05 [RateCDR] => 1 ) [2025-03-08 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:11:05' and `end` < '2025-03-08 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:11:17] Production.INFO: count ==1712 [2025-03-08 14:11:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:11:05 - End Time 2025-03-08 14:11:05 [2025-03-08 14:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635679', 'tblTempUsageDetail_20' ) start [2025-03-08 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635679', 'tblTempUsageDetail_20' ) end [2025-03-08 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635679', 'tblTempVendorCDR_20' ) start [2025-03-08 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635679', 'tblTempVendorCDR_20' ) end [2025-03-08 14:11:18] Production.INFO: ProcessCDR(1,14635679,1,1,2) [2025-03-08 14:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635679', 'tblTempUsageDetail_20' ) start [2025-03-08 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635679', 'tblTempUsageDetail_20' ) end [2025-03-08 14:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:11:23] Production.INFO: ==10136== Releasing lock... [2025-03-08 14:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:11:23] Production.INFO: 41 MB #Memory Used# [2025-03-08 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:12:06 [end_date_ymd] => 2025-03-08 14:12:06 [RateCDR] => 1 ) [2025-03-08 14:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:12:06' and `end` < '2025-03-08 14:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:12:18] Production.INFO: count ==1710 [2025-03-08 14:12:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:12:06 - End Time 2025-03-08 14:12:06 [2025-03-08 14:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635684', 'tblTempUsageDetail_20' ) start [2025-03-08 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635684', 'tblTempUsageDetail_20' ) end [2025-03-08 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635684', 'tblTempVendorCDR_20' ) start [2025-03-08 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635684', 'tblTempVendorCDR_20' ) end [2025-03-08 14:12:18] Production.INFO: ProcessCDR(1,14635684,1,1,2) [2025-03-08 14:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635684', 'tblTempUsageDetail_20' ) start [2025-03-08 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635684', 'tblTempUsageDetail_20' ) end [2025-03-08 14:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:12:23] Production.INFO: ==10209== Releasing lock... [2025-03-08 14:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:12:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:13:05 [end_date_ymd] => 2025-03-08 14:13:05 [RateCDR] => 1 ) [2025-03-08 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:13:05' and `end` < '2025-03-08 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:13:17] Production.INFO: count ==1709 [2025-03-08 14:13:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:13:05 - End Time 2025-03-08 14:13:05 [2025-03-08 14:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635689', 'tblTempUsageDetail_20' ) start [2025-03-08 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635689', 'tblTempUsageDetail_20' ) end [2025-03-08 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635689', 'tblTempVendorCDR_20' ) start [2025-03-08 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635689', 'tblTempVendorCDR_20' ) end [2025-03-08 14:13:18] Production.INFO: ProcessCDR(1,14635689,1,1,2) [2025-03-08 14:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635689', 'tblTempUsageDetail_20' ) start [2025-03-08 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635689', 'tblTempUsageDetail_20' ) end [2025-03-08 14:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:13:23] Production.INFO: ==10283== Releasing lock... [2025-03-08 14:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:13:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:14:05 [end_date_ymd] => 2025-03-08 14:14:05 [RateCDR] => 1 ) [2025-03-08 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:14:05' and `end` < '2025-03-08 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:14:17] Production.INFO: count ==1707 [2025-03-08 14:14:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:14:05 - End Time 2025-03-08 14:14:05 [2025-03-08 14:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635694', 'tblTempUsageDetail_20' ) start [2025-03-08 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635694', 'tblTempUsageDetail_20' ) end [2025-03-08 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635694', 'tblTempVendorCDR_20' ) start [2025-03-08 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635694', 'tblTempVendorCDR_20' ) end [2025-03-08 14:14:18] Production.INFO: ProcessCDR(1,14635694,1,1,2) [2025-03-08 14:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635694', 'tblTempUsageDetail_20' ) start [2025-03-08 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635694', 'tblTempUsageDetail_20' ) end [2025-03-08 14:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:14:22] Production.INFO: ==10361== Releasing lock... [2025-03-08 14:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:14:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:15:06 [end_date_ymd] => 2025-03-08 14:15:06 [RateCDR] => 1 ) [2025-03-08 14:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:15:06' and `end` < '2025-03-08 14:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:15:18] Production.INFO: count ==1689 [2025-03-08 14:15:19] Production.ERROR: pbx CDR StartTime 2025-03-08 11:15:06 - End Time 2025-03-08 14:15:06 [2025-03-08 14:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635699', 'tblTempUsageDetail_20' ) start [2025-03-08 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635699', 'tblTempUsageDetail_20' ) end [2025-03-08 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635699', 'tblTempVendorCDR_20' ) start [2025-03-08 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635699', 'tblTempVendorCDR_20' ) end [2025-03-08 14:15:19] Production.INFO: ProcessCDR(1,14635699,1,1,2) [2025-03-08 14:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635699', 'tblTempUsageDetail_20' ) start [2025-03-08 14:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635699', 'tblTempUsageDetail_20' ) end [2025-03-08 14:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:15:24] Production.INFO: ==10435== Releasing lock... [2025-03-08 14:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:15:24] Production.INFO: 41 MB #Memory Used# [2025-03-08 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:16:05 [end_date_ymd] => 2025-03-08 14:16:05 [RateCDR] => 1 ) [2025-03-08 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:16:05' and `end` < '2025-03-08 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:16:18] Production.INFO: count ==1662 [2025-03-08 14:16:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:16:05 - End Time 2025-03-08 14:16:05 [2025-03-08 14:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635704', 'tblTempUsageDetail_20' ) start [2025-03-08 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635704', 'tblTempUsageDetail_20' ) end [2025-03-08 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635704', 'tblTempVendorCDR_20' ) start [2025-03-08 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635704', 'tblTempVendorCDR_20' ) end [2025-03-08 14:16:18] Production.INFO: ProcessCDR(1,14635704,1,1,2) [2025-03-08 14:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635704', 'tblTempUsageDetail_20' ) start [2025-03-08 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635704', 'tblTempUsageDetail_20' ) end [2025-03-08 14:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:16:22] Production.INFO: ==10529== Releasing lock... [2025-03-08 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:16:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:17:05 [end_date_ymd] => 2025-03-08 14:17:05 [RateCDR] => 1 ) [2025-03-08 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:17:05' and `end` < '2025-03-08 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:17:17] Production.INFO: count ==1658 [2025-03-08 14:17:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:17:05 - End Time 2025-03-08 14:17:05 [2025-03-08 14:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635709', 'tblTempUsageDetail_20' ) start [2025-03-08 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635709', 'tblTempUsageDetail_20' ) end [2025-03-08 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635709', 'tblTempVendorCDR_20' ) start [2025-03-08 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635709', 'tblTempVendorCDR_20' ) end [2025-03-08 14:17:18] Production.INFO: ProcessCDR(1,14635709,1,1,2) [2025-03-08 14:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635709', 'tblTempUsageDetail_20' ) start [2025-03-08 14:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635709', 'tblTempUsageDetail_20' ) end [2025-03-08 14:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:17:21] Production.INFO: ==10608== Releasing lock... [2025-03-08 14:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:17:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:18:05 [end_date_ymd] => 2025-03-08 14:18:05 [RateCDR] => 1 ) [2025-03-08 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:18:05' and `end` < '2025-03-08 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:18:18] Production.INFO: count ==1659 [2025-03-08 14:18:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:18:05 - End Time 2025-03-08 14:18:05 [2025-03-08 14:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635714', 'tblTempUsageDetail_20' ) start [2025-03-08 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635714', 'tblTempUsageDetail_20' ) end [2025-03-08 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635714', 'tblTempVendorCDR_20' ) start [2025-03-08 14:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635714', 'tblTempVendorCDR_20' ) end [2025-03-08 14:18:18] Production.INFO: ProcessCDR(1,14635714,1,1,2) [2025-03-08 14:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635714', 'tblTempUsageDetail_20' ) start [2025-03-08 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635714', 'tblTempUsageDetail_20' ) end [2025-03-08 14:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:18:23] Production.INFO: ==10678== Releasing lock... [2025-03-08 14:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:18:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:19:05 [end_date_ymd] => 2025-03-08 14:19:05 [RateCDR] => 1 ) [2025-03-08 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:19:05' and `end` < '2025-03-08 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:19:17] Production.INFO: count ==1661 [2025-03-08 14:19:17] Production.ERROR: pbx CDR StartTime 2025-03-08 11:19:05 - End Time 2025-03-08 14:19:05 [2025-03-08 14:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635719', 'tblTempUsageDetail_20' ) start [2025-03-08 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635719', 'tblTempUsageDetail_20' ) end [2025-03-08 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635719', 'tblTempVendorCDR_20' ) start [2025-03-08 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635719', 'tblTempVendorCDR_20' ) end [2025-03-08 14:19:17] Production.INFO: ProcessCDR(1,14635719,1,1,2) [2025-03-08 14:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635719', 'tblTempUsageDetail_20' ) start [2025-03-08 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635719', 'tblTempUsageDetail_20' ) end [2025-03-08 14:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:19:22] Production.INFO: ==10751== Releasing lock... [2025-03-08 14:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:19:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:20:05 [end_date_ymd] => 2025-03-08 14:20:05 [RateCDR] => 1 ) [2025-03-08 14:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:20:05' and `end` < '2025-03-08 14:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:20:17] Production.INFO: count ==1657 [2025-03-08 14:20:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:20:05 - End Time 2025-03-08 14:20:05 [2025-03-08 14:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635725', 'tblTempUsageDetail_20' ) start [2025-03-08 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635725', 'tblTempUsageDetail_20' ) end [2025-03-08 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635725', 'tblTempVendorCDR_20' ) start [2025-03-08 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635725', 'tblTempVendorCDR_20' ) end [2025-03-08 14:20:18] Production.INFO: ProcessCDR(1,14635725,1,1,2) [2025-03-08 14:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635725', 'tblTempUsageDetail_20' ) start [2025-03-08 14:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635725', 'tblTempUsageDetail_20' ) end [2025-03-08 14:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:20:23] Production.INFO: ==10824== Releasing lock... [2025-03-08 14:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:20:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:21:06 [end_date_ymd] => 2025-03-08 14:21:06 [RateCDR] => 1 ) [2025-03-08 14:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:21:06' and `end` < '2025-03-08 14:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:21:18] Production.INFO: count ==1649 [2025-03-08 14:21:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:21:06 - End Time 2025-03-08 14:21:06 [2025-03-08 14:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635730', 'tblTempUsageDetail_20' ) start [2025-03-08 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635730', 'tblTempUsageDetail_20' ) end [2025-03-08 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635730', 'tblTempVendorCDR_20' ) start [2025-03-08 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635730', 'tblTempVendorCDR_20' ) end [2025-03-08 14:21:19] Production.INFO: ProcessCDR(1,14635730,1,1,2) [2025-03-08 14:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635730', 'tblTempUsageDetail_20' ) start [2025-03-08 14:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635730', 'tblTempUsageDetail_20' ) end [2025-03-08 14:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:21:22] Production.INFO: ==10904== Releasing lock... [2025-03-08 14:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:21:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:22:05 [end_date_ymd] => 2025-03-08 14:22:05 [RateCDR] => 1 ) [2025-03-08 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:22:05' and `end` < '2025-03-08 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:22:17] Production.INFO: count ==1648 [2025-03-08 14:22:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:22:05 - End Time 2025-03-08 14:22:05 [2025-03-08 14:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635735', 'tblTempUsageDetail_20' ) start [2025-03-08 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635735', 'tblTempUsageDetail_20' ) end [2025-03-08 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635735', 'tblTempVendorCDR_20' ) start [2025-03-08 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635735', 'tblTempVendorCDR_20' ) end [2025-03-08 14:22:18] Production.INFO: ProcessCDR(1,14635735,1,1,2) [2025-03-08 14:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635735', 'tblTempUsageDetail_20' ) start [2025-03-08 14:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635735', 'tblTempUsageDetail_20' ) end [2025-03-08 14:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:22:21] Production.INFO: ==10977== Releasing lock... [2025-03-08 14:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:22:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:23:06 [end_date_ymd] => 2025-03-08 14:23:06 [RateCDR] => 1 ) [2025-03-08 14:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:23:06' and `end` < '2025-03-08 14:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:23:18] Production.INFO: count ==1649 [2025-03-08 14:23:19] Production.ERROR: pbx CDR StartTime 2025-03-08 11:23:06 - End Time 2025-03-08 14:23:06 [2025-03-08 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635740', 'tblTempUsageDetail_20' ) start [2025-03-08 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635740', 'tblTempUsageDetail_20' ) end [2025-03-08 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635740', 'tblTempVendorCDR_20' ) start [2025-03-08 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635740', 'tblTempVendorCDR_20' ) end [2025-03-08 14:23:19] Production.INFO: ProcessCDR(1,14635740,1,1,2) [2025-03-08 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635740', 'tblTempUsageDetail_20' ) start [2025-03-08 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635740', 'tblTempUsageDetail_20' ) end [2025-03-08 14:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:23:24] Production.INFO: ==11053== Releasing lock... [2025-03-08 14:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:23:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:24:05 [end_date_ymd] => 2025-03-08 14:24:05 [RateCDR] => 1 ) [2025-03-08 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:24:05' and `end` < '2025-03-08 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:24:17] Production.INFO: count ==1646 [2025-03-08 14:24:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:24:05 - End Time 2025-03-08 14:24:05 [2025-03-08 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635745', 'tblTempUsageDetail_20' ) start [2025-03-08 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635745', 'tblTempUsageDetail_20' ) end [2025-03-08 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635745', 'tblTempVendorCDR_20' ) start [2025-03-08 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635745', 'tblTempVendorCDR_20' ) end [2025-03-08 14:24:18] Production.INFO: ProcessCDR(1,14635745,1,1,2) [2025-03-08 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635745', 'tblTempUsageDetail_20' ) start [2025-03-08 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635745', 'tblTempUsageDetail_20' ) end [2025-03-08 14:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:24:23] Production.INFO: ==11166== Releasing lock... [2025-03-08 14:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:24:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:25:06 [end_date_ymd] => 2025-03-08 14:25:06 [RateCDR] => 1 ) [2025-03-08 14: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-03-08 11:25:06' and `end` < '2025-03-08 14: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-03-08 14:25:18] Production.INFO: count ==1644 [2025-03-08 14:25:19] Production.ERROR: pbx CDR StartTime 2025-03-08 11:25:06 - End Time 2025-03-08 14:25:06 [2025-03-08 14:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635750', 'tblTempUsageDetail_20' ) start [2025-03-08 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635750', 'tblTempUsageDetail_20' ) end [2025-03-08 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635750', 'tblTempVendorCDR_20' ) start [2025-03-08 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635750', 'tblTempVendorCDR_20' ) end [2025-03-08 14:25:19] Production.INFO: ProcessCDR(1,14635750,1,1,2) [2025-03-08 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635750', 'tblTempUsageDetail_20' ) start [2025-03-08 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635750', 'tblTempUsageDetail_20' ) end [2025-03-08 14:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:25:23] Production.INFO: ==11236== Releasing lock... [2025-03-08 14:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:25:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:26:05 [end_date_ymd] => 2025-03-08 14:26:05 [RateCDR] => 1 ) [2025-03-08 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:26:05' and `end` < '2025-03-08 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:26:17] Production.INFO: count ==1647 [2025-03-08 14:26:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:26:05 - End Time 2025-03-08 14:26:05 [2025-03-08 14:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635755', 'tblTempUsageDetail_20' ) start [2025-03-08 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635755', 'tblTempUsageDetail_20' ) end [2025-03-08 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635755', 'tblTempVendorCDR_20' ) start [2025-03-08 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635755', 'tblTempVendorCDR_20' ) end [2025-03-08 14:26:18] Production.INFO: ProcessCDR(1,14635755,1,1,2) [2025-03-08 14:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635755', 'tblTempUsageDetail_20' ) start [2025-03-08 14:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635755', 'tblTempUsageDetail_20' ) end [2025-03-08 14:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:26:23] Production.INFO: ==11307== Releasing lock... [2025-03-08 14:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:26:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:27:05 [end_date_ymd] => 2025-03-08 14:27:05 [RateCDR] => 1 ) [2025-03-08 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:27:05' and `end` < '2025-03-08 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:27:17] Production.INFO: count ==1626 [2025-03-08 14:27:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:27:05 - End Time 2025-03-08 14:27:05 [2025-03-08 14:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635760', 'tblTempUsageDetail_20' ) start [2025-03-08 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635760', 'tblTempUsageDetail_20' ) end [2025-03-08 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635760', 'tblTempVendorCDR_20' ) start [2025-03-08 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635760', 'tblTempVendorCDR_20' ) end [2025-03-08 14:27:18] Production.INFO: ProcessCDR(1,14635760,1,1,2) [2025-03-08 14:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635760', 'tblTempUsageDetail_20' ) start [2025-03-08 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635760', 'tblTempUsageDetail_20' ) end [2025-03-08 14:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:27:23] Production.INFO: ==11387== Releasing lock... [2025-03-08 14:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:27:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:28:05 [end_date_ymd] => 2025-03-08 14:28:05 [RateCDR] => 1 ) [2025-03-08 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:28:05' and `end` < '2025-03-08 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:28:17] Production.INFO: count ==1620 [2025-03-08 14:28:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:28:05 - End Time 2025-03-08 14:28:05 [2025-03-08 14:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635765', 'tblTempUsageDetail_20' ) start [2025-03-08 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635765', 'tblTempUsageDetail_20' ) end [2025-03-08 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635765', 'tblTempVendorCDR_20' ) start [2025-03-08 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635765', 'tblTempVendorCDR_20' ) end [2025-03-08 14:28:18] Production.INFO: ProcessCDR(1,14635765,1,1,2) [2025-03-08 14:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635765', 'tblTempUsageDetail_20' ) start [2025-03-08 14:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635765', 'tblTempUsageDetail_20' ) end [2025-03-08 14:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:28:21] Production.INFO: ==11468== Releasing lock... [2025-03-08 14:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:28:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:29:06 [end_date_ymd] => 2025-03-08 14:29:06 [RateCDR] => 1 ) [2025-03-08 14:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:29:06' and `end` < '2025-03-08 14:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:29:18] Production.INFO: count ==1608 [2025-03-08 14:29:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:29:06 - End Time 2025-03-08 14:29:06 [2025-03-08 14:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635770', 'tblTempUsageDetail_20' ) start [2025-03-08 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635770', 'tblTempUsageDetail_20' ) end [2025-03-08 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635770', 'tblTempVendorCDR_20' ) start [2025-03-08 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635770', 'tblTempVendorCDR_20' ) end [2025-03-08 14:29:18] Production.INFO: ProcessCDR(1,14635770,1,1,2) [2025-03-08 14:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635770', 'tblTempUsageDetail_20' ) start [2025-03-08 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635770', 'tblTempUsageDetail_20' ) end [2025-03-08 14:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:29:23] Production.INFO: ==11546== Releasing lock... [2025-03-08 14:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:29:23] Production.INFO: 40 MB #Memory Used# [2025-03-08 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:30:05 [end_date_ymd] => 2025-03-08 14:30:05 [RateCDR] => 1 ) [2025-03-08 14:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:30:05' and `end` < '2025-03-08 14:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:30:17] Production.INFO: count ==1588 [2025-03-08 14:30:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:30:05 - End Time 2025-03-08 14:30:05 [2025-03-08 14:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635775', 'tblTempUsageDetail_20' ) start [2025-03-08 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635775', 'tblTempUsageDetail_20' ) end [2025-03-08 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635775', 'tblTempVendorCDR_20' ) start [2025-03-08 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635775', 'tblTempVendorCDR_20' ) end [2025-03-08 14:30:18] Production.INFO: ProcessCDR(1,14635775,1,1,2) [2025-03-08 14:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635775', 'tblTempUsageDetail_20' ) start [2025-03-08 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635775', 'tblTempUsageDetail_20' ) end [2025-03-08 14:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:30:23] Production.INFO: ==11623== Releasing lock... [2025-03-08 14:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:30:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:31:05 [end_date_ymd] => 2025-03-08 14:31:05 [RateCDR] => 1 ) [2025-03-08 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:31:05' and `end` < '2025-03-08 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:31:18] Production.INFO: count ==1561 [2025-03-08 14:31:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:31:05 - End Time 2025-03-08 14:31:05 [2025-03-08 14:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635781', 'tblTempUsageDetail_20' ) start [2025-03-08 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635781', 'tblTempUsageDetail_20' ) end [2025-03-08 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635781', 'tblTempVendorCDR_20' ) start [2025-03-08 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635781', 'tblTempVendorCDR_20' ) end [2025-03-08 14:31:18] Production.INFO: ProcessCDR(1,14635781,1,1,2) [2025-03-08 14:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635781', 'tblTempUsageDetail_20' ) start [2025-03-08 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635781', 'tblTempUsageDetail_20' ) end [2025-03-08 14:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:31:23] Production.INFO: ==11702== Releasing lock... [2025-03-08 14:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:31:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:32:05 [end_date_ymd] => 2025-03-08 14:32:05 [RateCDR] => 1 ) [2025-03-08 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:32:05' and `end` < '2025-03-08 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:32:17] Production.INFO: count ==1554 [2025-03-08 14:32:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:32:05 - End Time 2025-03-08 14:32:05 [2025-03-08 14:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635786', 'tblTempUsageDetail_20' ) start [2025-03-08 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635786', 'tblTempUsageDetail_20' ) end [2025-03-08 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635786', 'tblTempVendorCDR_20' ) start [2025-03-08 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635786', 'tblTempVendorCDR_20' ) end [2025-03-08 14:32:18] Production.INFO: ProcessCDR(1,14635786,1,1,2) [2025-03-08 14:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635786', 'tblTempUsageDetail_20' ) start [2025-03-08 14:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635786', 'tblTempUsageDetail_20' ) end [2025-03-08 14:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:32:21] Production.INFO: ==11779== Releasing lock... [2025-03-08 14:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:32:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:33:05 [end_date_ymd] => 2025-03-08 14:33:05 [RateCDR] => 1 ) [2025-03-08 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:33:05' and `end` < '2025-03-08 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:33:17] Production.INFO: count ==1554 [2025-03-08 14:33:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:33:05 - End Time 2025-03-08 14:33:05 [2025-03-08 14:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635791', 'tblTempUsageDetail_20' ) start [2025-03-08 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635791', 'tblTempUsageDetail_20' ) end [2025-03-08 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635791', 'tblTempVendorCDR_20' ) start [2025-03-08 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635791', 'tblTempVendorCDR_20' ) end [2025-03-08 14:33:18] Production.INFO: ProcessCDR(1,14635791,1,1,2) [2025-03-08 14:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635791', 'tblTempUsageDetail_20' ) start [2025-03-08 14:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635791', 'tblTempUsageDetail_20' ) end [2025-03-08 14:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:33:21] Production.INFO: ==11858== Releasing lock... [2025-03-08 14:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:33:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:34:05 [end_date_ymd] => 2025-03-08 14:34:05 [RateCDR] => 1 ) [2025-03-08 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:34:05' and `end` < '2025-03-08 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:34:18] Production.INFO: count ==1559 [2025-03-08 14:34:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:34:05 - End Time 2025-03-08 14:34:05 [2025-03-08 14:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635796', 'tblTempUsageDetail_20' ) start [2025-03-08 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635796', 'tblTempUsageDetail_20' ) end [2025-03-08 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635796', 'tblTempVendorCDR_20' ) start [2025-03-08 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635796', 'tblTempVendorCDR_20' ) end [2025-03-08 14:34:18] Production.INFO: ProcessCDR(1,14635796,1,1,2) [2025-03-08 14:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635796', 'tblTempUsageDetail_20' ) start [2025-03-08 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635796', 'tblTempUsageDetail_20' ) end [2025-03-08 14:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:34:23] Production.INFO: ==11934== Releasing lock... [2025-03-08 14:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:34:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:35:05 [end_date_ymd] => 2025-03-08 14:35:05 [RateCDR] => 1 ) [2025-03-08 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:35:05' and `end` < '2025-03-08 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:35:17] Production.INFO: count ==1559 [2025-03-08 14:35:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:35:05 - End Time 2025-03-08 14:35:05 [2025-03-08 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635801', 'tblTempUsageDetail_20' ) start [2025-03-08 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635801', 'tblTempUsageDetail_20' ) end [2025-03-08 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635801', 'tblTempVendorCDR_20' ) start [2025-03-08 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635801', 'tblTempVendorCDR_20' ) end [2025-03-08 14:35:18] Production.INFO: ProcessCDR(1,14635801,1,1,2) [2025-03-08 14:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635801', 'tblTempUsageDetail_20' ) start [2025-03-08 14:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635801', 'tblTempUsageDetail_20' ) end [2025-03-08 14:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:35:23] Production.INFO: ==12022== Releasing lock... [2025-03-08 14:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:35:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:36:05 [end_date_ymd] => 2025-03-08 14:36:05 [RateCDR] => 1 ) [2025-03-08 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:36:05' and `end` < '2025-03-08 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:36:18] Production.INFO: count ==1554 [2025-03-08 14:36:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:36:05 - End Time 2025-03-08 14:36:05 [2025-03-08 14:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635806', 'tblTempUsageDetail_20' ) start [2025-03-08 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635806', 'tblTempUsageDetail_20' ) end [2025-03-08 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635806', 'tblTempVendorCDR_20' ) start [2025-03-08 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635806', 'tblTempVendorCDR_20' ) end [2025-03-08 14:36:18] Production.INFO: ProcessCDR(1,14635806,1,1,2) [2025-03-08 14:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635806', 'tblTempUsageDetail_20' ) start [2025-03-08 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635806', 'tblTempUsageDetail_20' ) end [2025-03-08 14:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:36:24] Production.INFO: ==12095== Releasing lock... [2025-03-08 14:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:36:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:37:05 [end_date_ymd] => 2025-03-08 14:37:05 [RateCDR] => 1 ) [2025-03-08 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:37:05' and `end` < '2025-03-08 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:37:18] Production.INFO: count ==1549 [2025-03-08 14:37:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:37:05 - End Time 2025-03-08 14:37:05 [2025-03-08 14:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635811', 'tblTempUsageDetail_20' ) start [2025-03-08 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635811', 'tblTempUsageDetail_20' ) end [2025-03-08 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635811', 'tblTempVendorCDR_20' ) start [2025-03-08 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635811', 'tblTempVendorCDR_20' ) end [2025-03-08 14:37:18] Production.INFO: ProcessCDR(1,14635811,1,1,2) [2025-03-08 14:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635811', 'tblTempUsageDetail_20' ) start [2025-03-08 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635811', 'tblTempUsageDetail_20' ) end [2025-03-08 14:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:37:22] Production.INFO: ==12170== Releasing lock... [2025-03-08 14:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:37:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:38:05 [end_date_ymd] => 2025-03-08 14:38:05 [RateCDR] => 1 ) [2025-03-08 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:38:05' and `end` < '2025-03-08 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:38:17] Production.INFO: count ==1550 [2025-03-08 14:38:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:38:05 - End Time 2025-03-08 14:38:05 [2025-03-08 14:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635816', 'tblTempUsageDetail_20' ) start [2025-03-08 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635816', 'tblTempUsageDetail_20' ) end [2025-03-08 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635816', 'tblTempVendorCDR_20' ) start [2025-03-08 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635816', 'tblTempVendorCDR_20' ) end [2025-03-08 14:38:18] Production.INFO: ProcessCDR(1,14635816,1,1,2) [2025-03-08 14:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635816', 'tblTempUsageDetail_20' ) start [2025-03-08 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635816', 'tblTempUsageDetail_20' ) end [2025-03-08 14:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:38:23] Production.INFO: ==12276== Releasing lock... [2025-03-08 14:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:38:23] Production.INFO: 40 MB #Memory Used# [2025-03-08 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:39:05 [end_date_ymd] => 2025-03-08 14:39:05 [RateCDR] => 1 ) [2025-03-08 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:39:05' and `end` < '2025-03-08 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:39:18] Production.INFO: count ==1548 [2025-03-08 14:39:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:39:05 - End Time 2025-03-08 14:39:05 [2025-03-08 14:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635821', 'tblTempUsageDetail_20' ) start [2025-03-08 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635821', 'tblTempUsageDetail_20' ) end [2025-03-08 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635821', 'tblTempVendorCDR_20' ) start [2025-03-08 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635821', 'tblTempVendorCDR_20' ) end [2025-03-08 14:39:18] Production.INFO: ProcessCDR(1,14635821,1,1,2) [2025-03-08 14:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635821', 'tblTempUsageDetail_20' ) start [2025-03-08 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635821', 'tblTempUsageDetail_20' ) end [2025-03-08 14:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:39:23] Production.INFO: ==12431== Releasing lock... [2025-03-08 14:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:39:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 14:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:40:07 [end_date_ymd] => 2025-03-08 14:40:07 [RateCDR] => 1 ) [2025-03-08 14:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:40:07' and `end` < '2025-03-08 14:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:40:19] Production.INFO: count ==1532 [2025-03-08 14:40:20] Production.ERROR: pbx CDR StartTime 2025-03-08 11:40:07 - End Time 2025-03-08 14:40:07 [2025-03-08 14:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635827', 'tblTempUsageDetail_20' ) start [2025-03-08 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635827', 'tblTempUsageDetail_20' ) end [2025-03-08 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635827', 'tblTempVendorCDR_20' ) start [2025-03-08 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635827', 'tblTempVendorCDR_20' ) end [2025-03-08 14:40:20] Production.INFO: ProcessCDR(1,14635827,1,1,2) [2025-03-08 14:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635827', 'tblTempUsageDetail_20' ) start [2025-03-08 14:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635827', 'tblTempUsageDetail_20' ) end [2025-03-08 14:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:40:25] Production.INFO: ==12533== Releasing lock... [2025-03-08 14:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:40:25] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:41:05 [end_date_ymd] => 2025-03-08 14:41:05 [RateCDR] => 1 ) [2025-03-08 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:41:05' and `end` < '2025-03-08 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:41:17] Production.INFO: count ==1549 [2025-03-08 14:41:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:41:05 - End Time 2025-03-08 14:41:05 [2025-03-08 14:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635832', 'tblTempUsageDetail_20' ) start [2025-03-08 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635832', 'tblTempUsageDetail_20' ) end [2025-03-08 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635832', 'tblTempVendorCDR_20' ) start [2025-03-08 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635832', 'tblTempVendorCDR_20' ) end [2025-03-08 14:41:18] Production.INFO: ProcessCDR(1,14635832,1,1,2) [2025-03-08 14:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635832', 'tblTempUsageDetail_20' ) start [2025-03-08 14:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635832', 'tblTempUsageDetail_20' ) end [2025-03-08 14:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:41:23] Production.INFO: ==12614== Releasing lock... [2025-03-08 14:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:41:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:42:05 [end_date_ymd] => 2025-03-08 14:42:05 [RateCDR] => 1 ) [2025-03-08 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:42:05' and `end` < '2025-03-08 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:42:17] Production.INFO: count ==1545 [2025-03-08 14:42:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:42:05 - End Time 2025-03-08 14:42:05 [2025-03-08 14:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635837', 'tblTempUsageDetail_20' ) start [2025-03-08 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635837', 'tblTempUsageDetail_20' ) end [2025-03-08 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635837', 'tblTempVendorCDR_20' ) start [2025-03-08 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635837', 'tblTempVendorCDR_20' ) end [2025-03-08 14:42:18] Production.INFO: ProcessCDR(1,14635837,1,1,2) [2025-03-08 14:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635837', 'tblTempUsageDetail_20' ) start [2025-03-08 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635837', 'tblTempUsageDetail_20' ) end [2025-03-08 14:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:42:23] Production.INFO: ==12696== Releasing lock... [2025-03-08 14:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:42:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:43:05 [end_date_ymd] => 2025-03-08 14:43:05 [RateCDR] => 1 ) [2025-03-08 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:43:05' and `end` < '2025-03-08 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:43:17] Production.INFO: count ==1545 [2025-03-08 14:43:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:43:05 - End Time 2025-03-08 14:43:05 [2025-03-08 14:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635842', 'tblTempUsageDetail_20' ) start [2025-03-08 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635842', 'tblTempUsageDetail_20' ) end [2025-03-08 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635842', 'tblTempVendorCDR_20' ) start [2025-03-08 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635842', 'tblTempVendorCDR_20' ) end [2025-03-08 14:43:18] Production.INFO: ProcessCDR(1,14635842,1,1,2) [2025-03-08 14:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635842', 'tblTempUsageDetail_20' ) start [2025-03-08 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635842', 'tblTempUsageDetail_20' ) end [2025-03-08 14:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:43:22] Production.INFO: ==12768== Releasing lock... [2025-03-08 14:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:43:22] Production.INFO: 40 MB #Memory Used# [2025-03-08 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:44:05 [end_date_ymd] => 2025-03-08 14:44:05 [RateCDR] => 1 ) [2025-03-08 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:44:05' and `end` < '2025-03-08 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:44:18] Production.INFO: count ==1542 [2025-03-08 14:44:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:44:05 - End Time 2025-03-08 14:44:05 [2025-03-08 14:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635847', 'tblTempUsageDetail_20' ) start [2025-03-08 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635847', 'tblTempUsageDetail_20' ) end [2025-03-08 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635847', 'tblTempVendorCDR_20' ) start [2025-03-08 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635847', 'tblTempVendorCDR_20' ) end [2025-03-08 14:44:18] Production.INFO: ProcessCDR(1,14635847,1,1,2) [2025-03-08 14:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635847', 'tblTempUsageDetail_20' ) start [2025-03-08 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635847', 'tblTempUsageDetail_20' ) end [2025-03-08 14:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:44:23] Production.INFO: ==12850== Releasing lock... [2025-03-08 14:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:44:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:45:05 [end_date_ymd] => 2025-03-08 14:45:05 [RateCDR] => 1 ) [2025-03-08 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:45:05' and `end` < '2025-03-08 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:45:17] Production.INFO: count ==1546 [2025-03-08 14:45:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:45:05 - End Time 2025-03-08 14:45:05 [2025-03-08 14:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635852', 'tblTempUsageDetail_20' ) start [2025-03-08 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635852', 'tblTempUsageDetail_20' ) end [2025-03-08 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635852', 'tblTempVendorCDR_20' ) start [2025-03-08 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635852', 'tblTempVendorCDR_20' ) end [2025-03-08 14:45:18] Production.INFO: ProcessCDR(1,14635852,1,1,2) [2025-03-08 14:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635852', 'tblTempUsageDetail_20' ) start [2025-03-08 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635852', 'tblTempUsageDetail_20' ) end [2025-03-08 14:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:45:23] Production.INFO: ==12938== Releasing lock... [2025-03-08 14:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:45:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:46:05 [end_date_ymd] => 2025-03-08 14:46:05 [RateCDR] => 1 ) [2025-03-08 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:46:05' and `end` < '2025-03-08 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:46:17] Production.INFO: count ==1555 [2025-03-08 14:46:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:46:05 - End Time 2025-03-08 14:46:05 [2025-03-08 14:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635857', 'tblTempUsageDetail_20' ) start [2025-03-08 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635857', 'tblTempUsageDetail_20' ) end [2025-03-08 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635857', 'tblTempVendorCDR_20' ) start [2025-03-08 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635857', 'tblTempVendorCDR_20' ) end [2025-03-08 14:46:18] Production.INFO: ProcessCDR(1,14635857,1,1,2) [2025-03-08 14:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635857', 'tblTempUsageDetail_20' ) start [2025-03-08 14:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635857', 'tblTempUsageDetail_20' ) end [2025-03-08 14:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:46:23] Production.INFO: ==13054== Releasing lock... [2025-03-08 14:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:46:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:47:06 [end_date_ymd] => 2025-03-08 14:47:06 [RateCDR] => 1 ) [2025-03-08 14:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:47:06' and `end` < '2025-03-08 14:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:47:18] Production.INFO: count ==1561 [2025-03-08 14:47:19] Production.ERROR: pbx CDR StartTime 2025-03-08 11:47:06 - End Time 2025-03-08 14:47:06 [2025-03-08 14:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635862', 'tblTempUsageDetail_20' ) start [2025-03-08 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635862', 'tblTempUsageDetail_20' ) end [2025-03-08 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635862', 'tblTempVendorCDR_20' ) start [2025-03-08 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635862', 'tblTempVendorCDR_20' ) end [2025-03-08 14:47:19] Production.INFO: ProcessCDR(1,14635862,1,1,2) [2025-03-08 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635862', 'tblTempUsageDetail_20' ) start [2025-03-08 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635862', 'tblTempUsageDetail_20' ) end [2025-03-08 14:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:47:22] Production.INFO: ==13171== Releasing lock... [2025-03-08 14:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:47:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:48:06 [end_date_ymd] => 2025-03-08 14:48:06 [RateCDR] => 1 ) [2025-03-08 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:48:06' and `end` < '2025-03-08 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:48:18] Production.INFO: count ==1568 [2025-03-08 14:48:19] Production.ERROR: pbx CDR StartTime 2025-03-08 11:48:06 - End Time 2025-03-08 14:48:06 [2025-03-08 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635867', 'tblTempUsageDetail_20' ) start [2025-03-08 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635867', 'tblTempUsageDetail_20' ) end [2025-03-08 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635867', 'tblTempVendorCDR_20' ) start [2025-03-08 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635867', 'tblTempVendorCDR_20' ) end [2025-03-08 14:48:19] Production.INFO: ProcessCDR(1,14635867,1,1,2) [2025-03-08 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635867', 'tblTempUsageDetail_20' ) start [2025-03-08 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635867', 'tblTempUsageDetail_20' ) end [2025-03-08 14:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:48:22] Production.INFO: ==13285== Releasing lock... [2025-03-08 14:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:48:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:49:06 [end_date_ymd] => 2025-03-08 14:49:06 [RateCDR] => 1 ) [2025-03-08 14:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:49:06' and `end` < '2025-03-08 14:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:49:18] Production.INFO: count ==1566 [2025-03-08 14:49:19] Production.ERROR: pbx CDR StartTime 2025-03-08 11:49:06 - End Time 2025-03-08 14:49:06 [2025-03-08 14:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635872', 'tblTempUsageDetail_20' ) start [2025-03-08 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635872', 'tblTempUsageDetail_20' ) end [2025-03-08 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635872', 'tblTempVendorCDR_20' ) start [2025-03-08 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635872', 'tblTempVendorCDR_20' ) end [2025-03-08 14:49:19] Production.INFO: ProcessCDR(1,14635872,1,1,2) [2025-03-08 14:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635872', 'tblTempUsageDetail_20' ) start [2025-03-08 14:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635872', 'tblTempUsageDetail_20' ) end [2025-03-08 14:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:49:22] Production.INFO: ==13401== Releasing lock... [2025-03-08 14:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:49:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:50:05 [end_date_ymd] => 2025-03-08 14:50:05 [RateCDR] => 1 ) [2025-03-08 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:50:05' and `end` < '2025-03-08 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:50:17] Production.INFO: count ==1558 [2025-03-08 14:50:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:50:05 - End Time 2025-03-08 14:50:05 [2025-03-08 14:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635878', 'tblTempUsageDetail_20' ) start [2025-03-08 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635878', 'tblTempUsageDetail_20' ) end [2025-03-08 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635878', 'tblTempVendorCDR_20' ) start [2025-03-08 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635878', 'tblTempVendorCDR_20' ) end [2025-03-08 14:50:18] Production.INFO: ProcessCDR(1,14635878,1,1,2) [2025-03-08 14:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635878', 'tblTempUsageDetail_20' ) start [2025-03-08 14:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635878', 'tblTempUsageDetail_20' ) end [2025-03-08 14:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:50:23] Production.INFO: ==13519== Releasing lock... [2025-03-08 14:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:50:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:51:06 [end_date_ymd] => 2025-03-08 14:51:06 [RateCDR] => 1 ) [2025-03-08 14:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:51:06' and `end` < '2025-03-08 14:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:51:18] Production.INFO: count ==1563 [2025-03-08 14:51:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:51:06 - End Time 2025-03-08 14:51:06 [2025-03-08 14:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635883', 'tblTempUsageDetail_20' ) start [2025-03-08 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635883', 'tblTempUsageDetail_20' ) end [2025-03-08 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635883', 'tblTempVendorCDR_20' ) start [2025-03-08 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635883', 'tblTempVendorCDR_20' ) end [2025-03-08 14:51:18] Production.INFO: ProcessCDR(1,14635883,1,1,2) [2025-03-08 14:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635883', 'tblTempUsageDetail_20' ) start [2025-03-08 14:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635883', 'tblTempUsageDetail_20' ) end [2025-03-08 14:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:51:23] Production.INFO: ==13634== Releasing lock... [2025-03-08 14:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:51:23] Production.INFO: 40 MB #Memory Used# [2025-03-08 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:52:05 [end_date_ymd] => 2025-03-08 14:52:05 [RateCDR] => 1 ) [2025-03-08 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:52:05' and `end` < '2025-03-08 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:52:18] Production.INFO: count ==1551 [2025-03-08 14:52:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:52:05 - End Time 2025-03-08 14:52:05 [2025-03-08 14:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635888', 'tblTempUsageDetail_20' ) start [2025-03-08 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635888', 'tblTempUsageDetail_20' ) end [2025-03-08 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635888', 'tblTempVendorCDR_20' ) start [2025-03-08 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635888', 'tblTempVendorCDR_20' ) end [2025-03-08 14:52:18] Production.INFO: ProcessCDR(1,14635888,1,1,2) [2025-03-08 14:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635888', 'tblTempUsageDetail_20' ) start [2025-03-08 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635888', 'tblTempUsageDetail_20' ) end [2025-03-08 14:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:52:22] Production.INFO: ==13753== Releasing lock... [2025-03-08 14:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:52:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:53:05 [end_date_ymd] => 2025-03-08 14:53:05 [RateCDR] => 1 ) [2025-03-08 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:53:05' and `end` < '2025-03-08 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:53:17] Production.INFO: count ==1549 [2025-03-08 14:53:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:53:05 - End Time 2025-03-08 14:53:05 [2025-03-08 14:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635893', 'tblTempUsageDetail_20' ) start [2025-03-08 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635893', 'tblTempUsageDetail_20' ) end [2025-03-08 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635893', 'tblTempVendorCDR_20' ) start [2025-03-08 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635893', 'tblTempVendorCDR_20' ) end [2025-03-08 14:53:18] Production.INFO: ProcessCDR(1,14635893,1,1,2) [2025-03-08 14:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635893', 'tblTempUsageDetail_20' ) start [2025-03-08 14:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635893', 'tblTempUsageDetail_20' ) end [2025-03-08 14:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:53:23] Production.INFO: ==13870== Releasing lock... [2025-03-08 14:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:53:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:54:05 [end_date_ymd] => 2025-03-08 14:54:05 [RateCDR] => 1 ) [2025-03-08 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:54:05' and `end` < '2025-03-08 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:54:17] Production.INFO: count ==1552 [2025-03-08 14:54:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:54:05 - End Time 2025-03-08 14:54:05 [2025-03-08 14:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635898', 'tblTempUsageDetail_20' ) start [2025-03-08 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635898', 'tblTempUsageDetail_20' ) end [2025-03-08 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635898', 'tblTempVendorCDR_20' ) start [2025-03-08 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635898', 'tblTempVendorCDR_20' ) end [2025-03-08 14:54:18] Production.INFO: ProcessCDR(1,14635898,1,1,2) [2025-03-08 14:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635898', 'tblTempUsageDetail_20' ) start [2025-03-08 14:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635898', 'tblTempUsageDetail_20' ) end [2025-03-08 14:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:54:21] Production.INFO: ==13986== Releasing lock... [2025-03-08 14:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:54:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:55:06 [end_date_ymd] => 2025-03-08 14:55:06 [RateCDR] => 1 ) [2025-03-08 14:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:55:06' and `end` < '2025-03-08 14:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:55:18] Production.INFO: count ==1552 [2025-03-08 14:55:19] Production.ERROR: pbx CDR StartTime 2025-03-08 11:55:06 - End Time 2025-03-08 14:55:06 [2025-03-08 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635903', 'tblTempUsageDetail_20' ) start [2025-03-08 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635903', 'tblTempUsageDetail_20' ) end [2025-03-08 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635903', 'tblTempVendorCDR_20' ) start [2025-03-08 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635903', 'tblTempVendorCDR_20' ) end [2025-03-08 14:55:19] Production.INFO: ProcessCDR(1,14635903,1,1,2) [2025-03-08 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635903', 'tblTempUsageDetail_20' ) start [2025-03-08 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635903', 'tblTempUsageDetail_20' ) end [2025-03-08 14:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:55:22] Production.INFO: ==14153== Releasing lock... [2025-03-08 14:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:55:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:56:05 [end_date_ymd] => 2025-03-08 14:56:05 [RateCDR] => 1 ) [2025-03-08 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:56:05' and `end` < '2025-03-08 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:56:17] Production.INFO: count ==1540 [2025-03-08 14:56:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:56:05 - End Time 2025-03-08 14:56:05 [2025-03-08 14:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635908', 'tblTempUsageDetail_20' ) start [2025-03-08 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635908', 'tblTempUsageDetail_20' ) end [2025-03-08 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635908', 'tblTempVendorCDR_20' ) start [2025-03-08 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635908', 'tblTempVendorCDR_20' ) end [2025-03-08 14:56:18] Production.INFO: ProcessCDR(1,14635908,1,1,2) [2025-03-08 14:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635908', 'tblTempUsageDetail_20' ) start [2025-03-08 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635908', 'tblTempUsageDetail_20' ) end [2025-03-08 14:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:56:23] Production.INFO: ==14287== Releasing lock... [2025-03-08 14:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:56:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:57:06 [end_date_ymd] => 2025-03-08 14:57:06 [RateCDR] => 1 ) [2025-03-08 14:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:57:06' and `end` < '2025-03-08 14:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:57:18] Production.INFO: count ==1537 [2025-03-08 14:57:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:57:06 - End Time 2025-03-08 14:57:06 [2025-03-08 14:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635913', 'tblTempUsageDetail_20' ) start [2025-03-08 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635913', 'tblTempUsageDetail_20' ) end [2025-03-08 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635913', 'tblTempVendorCDR_20' ) start [2025-03-08 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635913', 'tblTempVendorCDR_20' ) end [2025-03-08 14:57:18] Production.INFO: ProcessCDR(1,14635913,1,1,2) [2025-03-08 14:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635913', 'tblTempUsageDetail_20' ) start [2025-03-08 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635913', 'tblTempUsageDetail_20' ) end [2025-03-08 14:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:57:22] Production.INFO: ==14417== Releasing lock... [2025-03-08 14:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:57:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:58:05 [end_date_ymd] => 2025-03-08 14:58:05 [RateCDR] => 1 ) [2025-03-08 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:58:05' and `end` < '2025-03-08 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:58:18] Production.INFO: count ==1531 [2025-03-08 14:58:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:58:05 - End Time 2025-03-08 14:58:05 [2025-03-08 14:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635918', 'tblTempUsageDetail_20' ) start [2025-03-08 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635918', 'tblTempUsageDetail_20' ) end [2025-03-08 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635918', 'tblTempVendorCDR_20' ) start [2025-03-08 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635918', 'tblTempVendorCDR_20' ) end [2025-03-08 14:58:18] Production.INFO: ProcessCDR(1,14635918,1,1,2) [2025-03-08 14:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635918', 'tblTempUsageDetail_20' ) start [2025-03-08 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635918', 'tblTempUsageDetail_20' ) end [2025-03-08 14:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:58:23] Production.INFO: ==14513== Releasing lock... [2025-03-08 14:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:58:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 11:59:05 [end_date_ymd] => 2025-03-08 14:59:05 [RateCDR] => 1 ) [2025-03-08 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 11:59:05' and `end` < '2025-03-08 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 14:59:17] Production.INFO: count ==1519 [2025-03-08 14:59:18] Production.ERROR: pbx CDR StartTime 2025-03-08 11:59:05 - End Time 2025-03-08 14:59:05 [2025-03-08 14:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635923', 'tblTempUsageDetail_20' ) start [2025-03-08 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635923', 'tblTempUsageDetail_20' ) end [2025-03-08 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635923', 'tblTempVendorCDR_20' ) start [2025-03-08 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635923', 'tblTempVendorCDR_20' ) end [2025-03-08 14:59:18] Production.INFO: ProcessCDR(1,14635923,1,1,2) [2025-03-08 14:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 14:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635923', 'tblTempUsageDetail_20' ) start [2025-03-08 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635923', 'tblTempUsageDetail_20' ) end [2025-03-08 14:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 14:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 14:59:23] Production.INFO: ==14602== Releasing lock... [2025-03-08 14:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 14:59:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:00:06 [end_date_ymd] => 2025-03-08 15:00:06 [RateCDR] => 1 ) [2025-03-08 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:00:06' and `end` < '2025-03-08 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:00:18] Production.INFO: count ==1520 [2025-03-08 15:00:19] Production.ERROR: pbx CDR StartTime 2025-03-08 12:00:06 - End Time 2025-03-08 15:00:06 [2025-03-08 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635929', 'tblTempUsageDetail_20' ) start [2025-03-08 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635929', 'tblTempUsageDetail_20' ) end [2025-03-08 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635929', 'tblTempVendorCDR_20' ) start [2025-03-08 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635929', 'tblTempVendorCDR_20' ) end [2025-03-08 15:00:19] Production.INFO: ProcessCDR(1,14635929,1,1,2) [2025-03-08 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635929', 'tblTempUsageDetail_20' ) start [2025-03-08 15:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635929', 'tblTempUsageDetail_20' ) end [2025-03-08 15:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:00:24] Production.INFO: ==14708== Releasing lock... [2025-03-08 15:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:00:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:01:06 [end_date_ymd] => 2025-03-08 15:01:06 [RateCDR] => 1 ) [2025-03-08 15:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:01:06' and `end` < '2025-03-08 15:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:01:18] Production.INFO: count ==1534 [2025-03-08 15:01:19] Production.ERROR: pbx CDR StartTime 2025-03-08 12:01:06 - End Time 2025-03-08 15:01:06 [2025-03-08 15:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635934', 'tblTempUsageDetail_20' ) start [2025-03-08 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635934', 'tblTempUsageDetail_20' ) end [2025-03-08 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635934', 'tblTempVendorCDR_20' ) start [2025-03-08 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635934', 'tblTempVendorCDR_20' ) end [2025-03-08 15:01:19] Production.INFO: ProcessCDR(1,14635934,1,1,2) [2025-03-08 15:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635934', 'tblTempUsageDetail_20' ) start [2025-03-08 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635934', 'tblTempUsageDetail_20' ) end [2025-03-08 15:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:01:24] Production.INFO: ==14896== Releasing lock... [2025-03-08 15:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:01:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:02:05 [end_date_ymd] => 2025-03-08 15:02:05 [RateCDR] => 1 ) [2025-03-08 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:02:05' and `end` < '2025-03-08 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:02:17] Production.INFO: count ==1533 [2025-03-08 15:02:17] Production.ERROR: pbx CDR StartTime 2025-03-08 12:02:05 - End Time 2025-03-08 15:02:05 [2025-03-08 15:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635939', 'tblTempUsageDetail_20' ) start [2025-03-08 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635939', 'tblTempUsageDetail_20' ) end [2025-03-08 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635939', 'tblTempVendorCDR_20' ) start [2025-03-08 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635939', 'tblTempVendorCDR_20' ) end [2025-03-08 15:02:17] Production.INFO: ProcessCDR(1,14635939,1,1,2) [2025-03-08 15:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635939', 'tblTempUsageDetail_20' ) start [2025-03-08 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635939', 'tblTempUsageDetail_20' ) end [2025-03-08 15:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:02:22] Production.INFO: ==14990== Releasing lock... [2025-03-08 15:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:02:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:03:05 [end_date_ymd] => 2025-03-08 15:03:05 [RateCDR] => 1 ) [2025-03-08 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:03:05' and `end` < '2025-03-08 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:03:18] Production.INFO: count ==1534 [2025-03-08 15:03:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:03:05 - End Time 2025-03-08 15:03:05 [2025-03-08 15:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635944', 'tblTempUsageDetail_20' ) start [2025-03-08 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635944', 'tblTempUsageDetail_20' ) end [2025-03-08 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635944', 'tblTempVendorCDR_20' ) start [2025-03-08 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635944', 'tblTempVendorCDR_20' ) end [2025-03-08 15:03:18] Production.INFO: ProcessCDR(1,14635944,1,1,2) [2025-03-08 15:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635944', 'tblTempUsageDetail_20' ) start [2025-03-08 15:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635944', 'tblTempUsageDetail_20' ) end [2025-03-08 15:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:03:23] Production.INFO: ==15074== Releasing lock... [2025-03-08 15:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:03:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:04:05 [end_date_ymd] => 2025-03-08 15:04:05 [RateCDR] => 1 ) [2025-03-08 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:04:05' and `end` < '2025-03-08 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:04:17] Production.INFO: count ==1532 [2025-03-08 15:04:17] Production.ERROR: pbx CDR StartTime 2025-03-08 12:04:05 - End Time 2025-03-08 15:04:05 [2025-03-08 15:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635949', 'tblTempUsageDetail_20' ) start [2025-03-08 15:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635949', 'tblTempUsageDetail_20' ) end [2025-03-08 15:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635949', 'tblTempVendorCDR_20' ) start [2025-03-08 15:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635949', 'tblTempVendorCDR_20' ) end [2025-03-08 15:04:17] Production.INFO: ProcessCDR(1,14635949,1,1,2) [2025-03-08 15:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635949', 'tblTempUsageDetail_20' ) start [2025-03-08 15:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635949', 'tblTempUsageDetail_20' ) end [2025-03-08 15:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:04:22] Production.INFO: ==15151== Releasing lock... [2025-03-08 15:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:04:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-08 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:05:05 [end_date_ymd] => 2025-03-08 15:05:05 [RateCDR] => 1 ) [2025-03-08 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:05:05' and `end` < '2025-03-08 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:05:17] Production.INFO: count ==1531 [2025-03-08 15:05:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:05:05 - End Time 2025-03-08 15:05:05 [2025-03-08 15:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635954', 'tblTempUsageDetail_20' ) start [2025-03-08 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635954', 'tblTempUsageDetail_20' ) end [2025-03-08 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635954', 'tblTempVendorCDR_20' ) start [2025-03-08 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635954', 'tblTempVendorCDR_20' ) end [2025-03-08 15:05:18] Production.INFO: ProcessCDR(1,14635954,1,1,2) [2025-03-08 15:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635954', 'tblTempUsageDetail_20' ) start [2025-03-08 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635954', 'tblTempUsageDetail_20' ) end [2025-03-08 15:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:05:22] Production.INFO: ==15305== Releasing lock... [2025-03-08 15:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:05:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:06:05 [end_date_ymd] => 2025-03-08 15:06:05 [RateCDR] => 1 ) [2025-03-08 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:06:05' and `end` < '2025-03-08 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:06:17] Production.INFO: count ==1528 [2025-03-08 15:06:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:06:05 - End Time 2025-03-08 15:06:05 [2025-03-08 15:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635959', 'tblTempUsageDetail_20' ) start [2025-03-08 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635959', 'tblTempUsageDetail_20' ) end [2025-03-08 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635959', 'tblTempVendorCDR_20' ) start [2025-03-08 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635959', 'tblTempVendorCDR_20' ) end [2025-03-08 15:06:18] Production.INFO: ProcessCDR(1,14635959,1,1,2) [2025-03-08 15:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635959', 'tblTempUsageDetail_20' ) start [2025-03-08 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635959', 'tblTempUsageDetail_20' ) end [2025-03-08 15:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:06:22] Production.INFO: ==15383== Releasing lock... [2025-03-08 15:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:06:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:07:05 [end_date_ymd] => 2025-03-08 15:07:05 [RateCDR] => 1 ) [2025-03-08 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:07:05' and `end` < '2025-03-08 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:07:17] Production.INFO: count ==1529 [2025-03-08 15:07:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:07:05 - End Time 2025-03-08 15:07:05 [2025-03-08 15:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635964', 'tblTempUsageDetail_20' ) start [2025-03-08 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635964', 'tblTempUsageDetail_20' ) end [2025-03-08 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635964', 'tblTempVendorCDR_20' ) start [2025-03-08 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635964', 'tblTempVendorCDR_20' ) end [2025-03-08 15:07:18] Production.INFO: ProcessCDR(1,14635964,1,1,2) [2025-03-08 15:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635964', 'tblTempUsageDetail_20' ) start [2025-03-08 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635964', 'tblTempUsageDetail_20' ) end [2025-03-08 15:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:07:23] Production.INFO: ==15457== Releasing lock... [2025-03-08 15:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:07:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:08:05 [end_date_ymd] => 2025-03-08 15:08:05 [RateCDR] => 1 ) [2025-03-08 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:08:05' and `end` < '2025-03-08 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:08:17] Production.INFO: count ==1524 [2025-03-08 15:08:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:08:05 - End Time 2025-03-08 15:08:05 [2025-03-08 15:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635969', 'tblTempUsageDetail_20' ) start [2025-03-08 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635969', 'tblTempUsageDetail_20' ) end [2025-03-08 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635969', 'tblTempVendorCDR_20' ) start [2025-03-08 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635969', 'tblTempVendorCDR_20' ) end [2025-03-08 15:08:18] Production.INFO: ProcessCDR(1,14635969,1,1,2) [2025-03-08 15:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635969', 'tblTempUsageDetail_20' ) start [2025-03-08 15:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635969', 'tblTempUsageDetail_20' ) end [2025-03-08 15:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:08:23] Production.INFO: ==15607== Releasing lock... [2025-03-08 15:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:08:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:09:05 [end_date_ymd] => 2025-03-08 15:09:05 [RateCDR] => 1 ) [2025-03-08 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:09:05' and `end` < '2025-03-08 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:09:18] Production.INFO: count ==1522 [2025-03-08 15:09:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:09:05 - End Time 2025-03-08 15:09:05 [2025-03-08 15:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635974', 'tblTempUsageDetail_20' ) start [2025-03-08 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635974', 'tblTempUsageDetail_20' ) end [2025-03-08 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635974', 'tblTempVendorCDR_20' ) start [2025-03-08 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635974', 'tblTempVendorCDR_20' ) end [2025-03-08 15:09:18] Production.INFO: ProcessCDR(1,14635974,1,1,2) [2025-03-08 15:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635974', 'tblTempUsageDetail_20' ) start [2025-03-08 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635974', 'tblTempUsageDetail_20' ) end [2025-03-08 15:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:09:23] Production.INFO: ==15682== Releasing lock... [2025-03-08 15:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:09:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:10:06 [end_date_ymd] => 2025-03-08 15:10:06 [RateCDR] => 1 ) [2025-03-08 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:10:06' and `end` < '2025-03-08 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:10:18] Production.INFO: count ==1524 [2025-03-08 15:10:19] Production.ERROR: pbx CDR StartTime 2025-03-08 12:10:06 - End Time 2025-03-08 15:10:06 [2025-03-08 15:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635980', 'tblTempUsageDetail_20' ) start [2025-03-08 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635980', 'tblTempUsageDetail_20' ) end [2025-03-08 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635980', 'tblTempVendorCDR_20' ) start [2025-03-08 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635980', 'tblTempVendorCDR_20' ) end [2025-03-08 15:10:19] Production.INFO: ProcessCDR(1,14635980,1,1,2) [2025-03-08 15:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635980', 'tblTempUsageDetail_20' ) start [2025-03-08 15:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635980', 'tblTempUsageDetail_20' ) end [2025-03-08 15:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:10:24] Production.INFO: ==15805== Releasing lock... [2025-03-08 15:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:10:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:11:05 [end_date_ymd] => 2025-03-08 15:11:05 [RateCDR] => 1 ) [2025-03-08 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:11:05' and `end` < '2025-03-08 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:11:17] Production.INFO: count ==1534 [2025-03-08 15:11:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:11:05 - End Time 2025-03-08 15:11:05 [2025-03-08 15:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635985', 'tblTempUsageDetail_20' ) start [2025-03-08 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635985', 'tblTempUsageDetail_20' ) end [2025-03-08 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635985', 'tblTempVendorCDR_20' ) start [2025-03-08 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635985', 'tblTempVendorCDR_20' ) end [2025-03-08 15:11:18] Production.INFO: ProcessCDR(1,14635985,1,1,2) [2025-03-08 15:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635985', 'tblTempUsageDetail_20' ) start [2025-03-08 15:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635985', 'tblTempUsageDetail_20' ) end [2025-03-08 15:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:11:23] Production.INFO: ==15882== Releasing lock... [2025-03-08 15:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:11:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:12:05 [end_date_ymd] => 2025-03-08 15:12:05 [RateCDR] => 1 ) [2025-03-08 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:12:05' and `end` < '2025-03-08 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:12:17] Production.INFO: count ==1534 [2025-03-08 15:12:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:12:05 - End Time 2025-03-08 15:12:05 [2025-03-08 15:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635990', 'tblTempUsageDetail_20' ) start [2025-03-08 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635990', 'tblTempUsageDetail_20' ) end [2025-03-08 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635990', 'tblTempVendorCDR_20' ) start [2025-03-08 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635990', 'tblTempVendorCDR_20' ) end [2025-03-08 15:12:18] Production.INFO: ProcessCDR(1,14635990,1,1,2) [2025-03-08 15:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635990', 'tblTempUsageDetail_20' ) start [2025-03-08 15:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635990', 'tblTempUsageDetail_20' ) end [2025-03-08 15:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:12:21] Production.INFO: ==16032== Releasing lock... [2025-03-08 15:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:12:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:13:05 [end_date_ymd] => 2025-03-08 15:13:05 [RateCDR] => 1 ) [2025-03-08 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:13:05' and `end` < '2025-03-08 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:13:18] Production.INFO: count ==1523 [2025-03-08 15:13:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:13:05 - End Time 2025-03-08 15:13:05 [2025-03-08 15:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635995', 'tblTempUsageDetail_20' ) start [2025-03-08 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14635995', 'tblTempUsageDetail_20' ) end [2025-03-08 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635995', 'tblTempVendorCDR_20' ) start [2025-03-08 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14635995', 'tblTempVendorCDR_20' ) end [2025-03-08 15:13:18] Production.INFO: ProcessCDR(1,14635995,1,1,2) [2025-03-08 15:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14635995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14635995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14635995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14635995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635995', 'tblTempUsageDetail_20' ) start [2025-03-08 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14635995', 'tblTempUsageDetail_20' ) end [2025-03-08 15:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:13:21] Production.INFO: ==16103== Releasing lock... [2025-03-08 15:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:13:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:14:05 [end_date_ymd] => 2025-03-08 15:14:05 [RateCDR] => 1 ) [2025-03-08 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:14:05' and `end` < '2025-03-08 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:14:17] Production.INFO: count ==1514 [2025-03-08 15:14:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:14:05 - End Time 2025-03-08 15:14:05 [2025-03-08 15:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636000', 'tblTempUsageDetail_20' ) start [2025-03-08 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636000', 'tblTempUsageDetail_20' ) end [2025-03-08 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636000', 'tblTempVendorCDR_20' ) start [2025-03-08 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636000', 'tblTempVendorCDR_20' ) end [2025-03-08 15:14:18] Production.INFO: ProcessCDR(1,14636000,1,1,2) [2025-03-08 15:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636000', 'tblTempUsageDetail_20' ) start [2025-03-08 15:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636000', 'tblTempUsageDetail_20' ) end [2025-03-08 15:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:14:23] Production.INFO: ==16175== Releasing lock... [2025-03-08 15:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:14:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:15:05 [end_date_ymd] => 2025-03-08 15:15:05 [RateCDR] => 1 ) [2025-03-08 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:15:05' and `end` < '2025-03-08 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:15:17] Production.INFO: count ==1507 [2025-03-08 15:15:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:15:05 - End Time 2025-03-08 15:15:05 [2025-03-08 15:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636005', 'tblTempUsageDetail_20' ) start [2025-03-08 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636005', 'tblTempUsageDetail_20' ) end [2025-03-08 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636005', 'tblTempVendorCDR_20' ) start [2025-03-08 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636005', 'tblTempVendorCDR_20' ) end [2025-03-08 15:15:18] Production.INFO: ProcessCDR(1,14636005,1,1,2) [2025-03-08 15:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636005', 'tblTempUsageDetail_20' ) start [2025-03-08 15:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636005', 'tblTempUsageDetail_20' ) end [2025-03-08 15:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:15:21] Production.INFO: ==16323== Releasing lock... [2025-03-08 15:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:15:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-08 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:16:05 [end_date_ymd] => 2025-03-08 15:16:05 [RateCDR] => 1 ) [2025-03-08 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:16:05' and `end` < '2025-03-08 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:16:17] Production.INFO: count ==1506 [2025-03-08 15:16:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:16:05 - End Time 2025-03-08 15:16:05 [2025-03-08 15:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636010', 'tblTempUsageDetail_20' ) start [2025-03-08 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636010', 'tblTempUsageDetail_20' ) end [2025-03-08 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636010', 'tblTempVendorCDR_20' ) start [2025-03-08 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636010', 'tblTempVendorCDR_20' ) end [2025-03-08 15:16:18] Production.INFO: ProcessCDR(1,14636010,1,1,2) [2025-03-08 15:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636010', 'tblTempUsageDetail_20' ) start [2025-03-08 15:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636010', 'tblTempUsageDetail_20' ) end [2025-03-08 15:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:16:23] Production.INFO: ==16397== Releasing lock... [2025-03-08 15:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:16:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:17:05 [end_date_ymd] => 2025-03-08 15:17:05 [RateCDR] => 1 ) [2025-03-08 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:17:05' and `end` < '2025-03-08 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:17:18] Production.INFO: count ==1509 [2025-03-08 15:17:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:17:05 - End Time 2025-03-08 15:17:05 [2025-03-08 15:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636015', 'tblTempUsageDetail_20' ) start [2025-03-08 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636015', 'tblTempUsageDetail_20' ) end [2025-03-08 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636015', 'tblTempVendorCDR_20' ) start [2025-03-08 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636015', 'tblTempVendorCDR_20' ) end [2025-03-08 15:17:18] Production.INFO: ProcessCDR(1,14636015,1,1,2) [2025-03-08 15:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636015', 'tblTempUsageDetail_20' ) start [2025-03-08 15:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636015', 'tblTempUsageDetail_20' ) end [2025-03-08 15:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:17:23] Production.INFO: ==16465== Releasing lock... [2025-03-08 15:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:17:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-08 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:18:05 [end_date_ymd] => 2025-03-08 15:18:05 [RateCDR] => 1 ) [2025-03-08 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:18:05' and `end` < '2025-03-08 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:18:17] Production.INFO: count ==1519 [2025-03-08 15:18:17] Production.ERROR: pbx CDR StartTime 2025-03-08 12:18:05 - End Time 2025-03-08 15:18:05 [2025-03-08 15:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636020', 'tblTempUsageDetail_20' ) start [2025-03-08 15:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636020', 'tblTempUsageDetail_20' ) end [2025-03-08 15:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636020', 'tblTempVendorCDR_20' ) start [2025-03-08 15:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636020', 'tblTempVendorCDR_20' ) end [2025-03-08 15:18:17] Production.INFO: ProcessCDR(1,14636020,1,1,2) [2025-03-08 15:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636020', 'tblTempUsageDetail_20' ) start [2025-03-08 15:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636020', 'tblTempUsageDetail_20' ) end [2025-03-08 15:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:18:22] Production.INFO: ==16543== Releasing lock... [2025-03-08 15:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:18:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:19:05 [end_date_ymd] => 2025-03-08 15:19:05 [RateCDR] => 1 ) [2025-03-08 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:19:05' and `end` < '2025-03-08 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:19:17] Production.INFO: count ==1521 [2025-03-08 15:19:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:19:05 - End Time 2025-03-08 15:19:05 [2025-03-08 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636025', 'tblTempUsageDetail_20' ) start [2025-03-08 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636025', 'tblTempUsageDetail_20' ) end [2025-03-08 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636025', 'tblTempVendorCDR_20' ) start [2025-03-08 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636025', 'tblTempVendorCDR_20' ) end [2025-03-08 15:19:18] Production.INFO: ProcessCDR(1,14636025,1,1,2) [2025-03-08 15:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636025', 'tblTempUsageDetail_20' ) start [2025-03-08 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636025', 'tblTempUsageDetail_20' ) end [2025-03-08 15:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:19:22] Production.INFO: ==16621== Releasing lock... [2025-03-08 15:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:19:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:20:06 [end_date_ymd] => 2025-03-08 15:20:06 [RateCDR] => 1 ) [2025-03-08 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:20:06' and `end` < '2025-03-08 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:20:18] Production.INFO: count ==1524 [2025-03-08 15:20:19] Production.ERROR: pbx CDR StartTime 2025-03-08 12:20:06 - End Time 2025-03-08 15:20:06 [2025-03-08 15:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636031', 'tblTempUsageDetail_20' ) start [2025-03-08 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636031', 'tblTempUsageDetail_20' ) end [2025-03-08 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636031', 'tblTempVendorCDR_20' ) start [2025-03-08 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636031', 'tblTempVendorCDR_20' ) end [2025-03-08 15:20:19] Production.INFO: ProcessCDR(1,14636031,1,1,2) [2025-03-08 15:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636031', 'tblTempUsageDetail_20' ) start [2025-03-08 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636031', 'tblTempUsageDetail_20' ) end [2025-03-08 15:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:20:24] Production.INFO: ==16695== Releasing lock... [2025-03-08 15:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:20:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:21:05 [end_date_ymd] => 2025-03-08 15:21:05 [RateCDR] => 1 ) [2025-03-08 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:21:05' and `end` < '2025-03-08 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:21:17] Production.INFO: count ==1501 [2025-03-08 15:21:17] Production.ERROR: pbx CDR StartTime 2025-03-08 12:21:05 - End Time 2025-03-08 15:21:05 [2025-03-08 15:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636036', 'tblTempUsageDetail_20' ) start [2025-03-08 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636036', 'tblTempUsageDetail_20' ) end [2025-03-08 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636036', 'tblTempVendorCDR_20' ) start [2025-03-08 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636036', 'tblTempVendorCDR_20' ) end [2025-03-08 15:21:17] Production.INFO: ProcessCDR(1,14636036,1,1,2) [2025-03-08 15:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636036', 'tblTempUsageDetail_20' ) start [2025-03-08 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636036', 'tblTempUsageDetail_20' ) end [2025-03-08 15:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:21:22] Production.INFO: ==16768== Releasing lock... [2025-03-08 15:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:21:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-08 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:22:06 [end_date_ymd] => 2025-03-08 15:22:06 [RateCDR] => 1 ) [2025-03-08 15:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:22:06' and `end` < '2025-03-08 15:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:22:18] Production.INFO: count ==1482 [2025-03-08 15:22:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:22:06 - End Time 2025-03-08 15:22:06 [2025-03-08 15:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636041', 'tblTempUsageDetail_20' ) start [2025-03-08 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636041', 'tblTempUsageDetail_20' ) end [2025-03-08 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636041', 'tblTempVendorCDR_20' ) start [2025-03-08 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636041', 'tblTempVendorCDR_20' ) end [2025-03-08 15:22:18] Production.INFO: ProcessCDR(1,14636041,1,1,2) [2025-03-08 15:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636041', 'tblTempUsageDetail_20' ) start [2025-03-08 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636041', 'tblTempUsageDetail_20' ) end [2025-03-08 15:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:22:23] Production.INFO: ==16842== Releasing lock... [2025-03-08 15:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:22:23] Production.INFO: 39.5 MB #Memory Used# [2025-03-08 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:23:05 [end_date_ymd] => 2025-03-08 15:23:05 [RateCDR] => 1 ) [2025-03-08 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:23:05' and `end` < '2025-03-08 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:23:17] Production.INFO: count ==1459 [2025-03-08 15:23:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:23:05 - End Time 2025-03-08 15:23:05 [2025-03-08 15:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636046', 'tblTempUsageDetail_20' ) start [2025-03-08 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636046', 'tblTempUsageDetail_20' ) end [2025-03-08 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636046', 'tblTempVendorCDR_20' ) start [2025-03-08 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636046', 'tblTempVendorCDR_20' ) end [2025-03-08 15:23:18] Production.INFO: ProcessCDR(1,14636046,1,1,2) [2025-03-08 15:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636046', 'tblTempUsageDetail_20' ) start [2025-03-08 15:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636046', 'tblTempUsageDetail_20' ) end [2025-03-08 15:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:23:21] Production.INFO: ==16913== Releasing lock... [2025-03-08 15:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:23:21] Production.INFO: 39 MB #Memory Used# [2025-03-08 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:24:05 [end_date_ymd] => 2025-03-08 15:24:05 [RateCDR] => 1 ) [2025-03-08 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:24:05' and `end` < '2025-03-08 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:24:17] Production.INFO: count ==1461 [2025-03-08 15:24:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:24:05 - End Time 2025-03-08 15:24:05 [2025-03-08 15:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636051', 'tblTempUsageDetail_20' ) start [2025-03-08 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636051', 'tblTempUsageDetail_20' ) end [2025-03-08 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636051', 'tblTempVendorCDR_20' ) start [2025-03-08 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636051', 'tblTempVendorCDR_20' ) end [2025-03-08 15:24:18] Production.INFO: ProcessCDR(1,14636051,1,1,2) [2025-03-08 15:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636051', 'tblTempUsageDetail_20' ) start [2025-03-08 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636051', 'tblTempUsageDetail_20' ) end [2025-03-08 15:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:24:23] Production.INFO: ==16984== Releasing lock... [2025-03-08 15:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:24:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-08 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:25:05 [end_date_ymd] => 2025-03-08 15:25:05 [RateCDR] => 1 ) [2025-03-08 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:25:05' and `end` < '2025-03-08 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:25:17] Production.INFO: count ==1458 [2025-03-08 15:25:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:25:05 - End Time 2025-03-08 15:25:05 [2025-03-08 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636056', 'tblTempUsageDetail_20' ) start [2025-03-08 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636056', 'tblTempUsageDetail_20' ) end [2025-03-08 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636056', 'tblTempVendorCDR_20' ) start [2025-03-08 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636056', 'tblTempVendorCDR_20' ) end [2025-03-08 15:25:18] Production.INFO: ProcessCDR(1,14636056,1,1,2) [2025-03-08 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636056', 'tblTempUsageDetail_20' ) start [2025-03-08 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636056', 'tblTempUsageDetail_20' ) end [2025-03-08 15:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:25:23] Production.INFO: ==17053== Releasing lock... [2025-03-08 15:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:25:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-08 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:26:05 [end_date_ymd] => 2025-03-08 15:26:05 [RateCDR] => 1 ) [2025-03-08 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:26:05' and `end` < '2025-03-08 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:26:18] Production.INFO: count ==1456 [2025-03-08 15:26:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:26:05 - End Time 2025-03-08 15:26:05 [2025-03-08 15:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636061', 'tblTempUsageDetail_20' ) start [2025-03-08 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636061', 'tblTempUsageDetail_20' ) end [2025-03-08 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636061', 'tblTempVendorCDR_20' ) start [2025-03-08 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636061', 'tblTempVendorCDR_20' ) end [2025-03-08 15:26:18] Production.INFO: ProcessCDR(1,14636061,1,1,2) [2025-03-08 15:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636061', 'tblTempUsageDetail_20' ) start [2025-03-08 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636061', 'tblTempUsageDetail_20' ) end [2025-03-08 15:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:26:23] Production.INFO: ==17163== Releasing lock... [2025-03-08 15:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:26:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-08 15:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:27:04 [end_date_ymd] => 2025-03-08 15:27:04 [RateCDR] => 1 ) [2025-03-08 15:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:27:04' and `end` < '2025-03-08 15:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:27:17] Production.INFO: count ==1458 [2025-03-08 15:27:17] Production.ERROR: pbx CDR StartTime 2025-03-08 12:27:04 - End Time 2025-03-08 15:27:04 [2025-03-08 15:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636066', 'tblTempUsageDetail_20' ) start [2025-03-08 15:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636066', 'tblTempUsageDetail_20' ) end [2025-03-08 15:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636066', 'tblTempVendorCDR_20' ) start [2025-03-08 15:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636066', 'tblTempVendorCDR_20' ) end [2025-03-08 15:27:17] Production.INFO: ProcessCDR(1,14636066,1,1,2) [2025-03-08 15:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636066', 'tblTempUsageDetail_20' ) start [2025-03-08 15:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636066', 'tblTempUsageDetail_20' ) end [2025-03-08 15:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:27:22] Production.INFO: ==17235== Releasing lock... [2025-03-08 15:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:27:22] Production.INFO: 39 MB #Memory Used# [2025-03-08 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:28:05 [end_date_ymd] => 2025-03-08 15:28:05 [RateCDR] => 1 ) [2025-03-08 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:28:05' and `end` < '2025-03-08 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:28:17] Production.INFO: count ==1459 [2025-03-08 15:28:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:28:05 - End Time 2025-03-08 15:28:05 [2025-03-08 15:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636071', 'tblTempUsageDetail_20' ) start [2025-03-08 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636071', 'tblTempUsageDetail_20' ) end [2025-03-08 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636071', 'tblTempVendorCDR_20' ) start [2025-03-08 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636071', 'tblTempVendorCDR_20' ) end [2025-03-08 15:28:18] Production.INFO: ProcessCDR(1,14636071,1,1,2) [2025-03-08 15:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636071', 'tblTempUsageDetail_20' ) start [2025-03-08 15:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636071', 'tblTempUsageDetail_20' ) end [2025-03-08 15:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:28:21] Production.INFO: ==17310== Releasing lock... [2025-03-08 15:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:28:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-08 15:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:29:04 [end_date_ymd] => 2025-03-08 15:29:04 [RateCDR] => 1 ) [2025-03-08 15:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:29:04' and `end` < '2025-03-08 15:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:29:16] Production.INFO: count ==1450 [2025-03-08 15:29:17] Production.ERROR: pbx CDR StartTime 2025-03-08 12:29:04 - End Time 2025-03-08 15:29:04 [2025-03-08 15:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636076', 'tblTempUsageDetail_20' ) start [2025-03-08 15:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636076', 'tblTempUsageDetail_20' ) end [2025-03-08 15:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636076', 'tblTempVendorCDR_20' ) start [2025-03-08 15:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636076', 'tblTempVendorCDR_20' ) end [2025-03-08 15:29:17] Production.INFO: ProcessCDR(1,14636076,1,1,2) [2025-03-08 15:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636076', 'tblTempUsageDetail_20' ) start [2025-03-08 15:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636076', 'tblTempUsageDetail_20' ) end [2025-03-08 15:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:29:20] Production.INFO: ==17379== Releasing lock... [2025-03-08 15:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:29:20] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:30:06 [end_date_ymd] => 2025-03-08 15:30:06 [RateCDR] => 1 ) [2025-03-08 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:30:06' and `end` < '2025-03-08 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:30:18] Production.INFO: count ==1442 [2025-03-08 15:30:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:30:06 - End Time 2025-03-08 15:30:06 [2025-03-08 15:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636081', 'tblTempUsageDetail_20' ) start [2025-03-08 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636081', 'tblTempUsageDetail_20' ) end [2025-03-08 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636081', 'tblTempVendorCDR_20' ) start [2025-03-08 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636081', 'tblTempVendorCDR_20' ) end [2025-03-08 15:30:18] Production.INFO: ProcessCDR(1,14636081,1,1,2) [2025-03-08 15:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636081', 'tblTempUsageDetail_20' ) start [2025-03-08 15:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636081', 'tblTempUsageDetail_20' ) end [2025-03-08 15:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:30:22] Production.INFO: ==17453== Releasing lock... [2025-03-08 15:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:30:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:31:05 [end_date_ymd] => 2025-03-08 15:31:05 [RateCDR] => 1 ) [2025-03-08 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:31:05' and `end` < '2025-03-08 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:31:17] Production.INFO: count ==1442 [2025-03-08 15:31:17] Production.ERROR: pbx CDR StartTime 2025-03-08 12:31:05 - End Time 2025-03-08 15:31:05 [2025-03-08 15:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636087', 'tblTempUsageDetail_20' ) start [2025-03-08 15:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636087', 'tblTempUsageDetail_20' ) end [2025-03-08 15:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636087', 'tblTempVendorCDR_20' ) start [2025-03-08 15:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636087', 'tblTempVendorCDR_20' ) end [2025-03-08 15:31:17] Production.INFO: ProcessCDR(1,14636087,1,1,2) [2025-03-08 15:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636087', 'tblTempUsageDetail_20' ) start [2025-03-08 15:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636087', 'tblTempUsageDetail_20' ) end [2025-03-08 15:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:31:20] Production.INFO: ==17524== Releasing lock... [2025-03-08 15:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:31:20] Production.INFO: 39 MB #Memory Used# [2025-03-08 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:32:05 [end_date_ymd] => 2025-03-08 15:32:05 [RateCDR] => 1 ) [2025-03-08 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:32:05' and `end` < '2025-03-08 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:32:17] Production.INFO: count ==1450 [2025-03-08 15:32:17] Production.ERROR: pbx CDR StartTime 2025-03-08 12:32:05 - End Time 2025-03-08 15:32:05 [2025-03-08 15:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636092', 'tblTempUsageDetail_20' ) start [2025-03-08 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636092', 'tblTempUsageDetail_20' ) end [2025-03-08 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636092', 'tblTempVendorCDR_20' ) start [2025-03-08 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636092', 'tblTempVendorCDR_20' ) end [2025-03-08 15:32:18] Production.INFO: ProcessCDR(1,14636092,1,1,2) [2025-03-08 15:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636092', 'tblTempUsageDetail_20' ) start [2025-03-08 15:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636092', 'tblTempUsageDetail_20' ) end [2025-03-08 15:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:32:21] Production.INFO: ==17596== Releasing lock... [2025-03-08 15:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:32:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:33:05 [end_date_ymd] => 2025-03-08 15:33:05 [RateCDR] => 1 ) [2025-03-08 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:33:05' and `end` < '2025-03-08 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:33:18] Production.INFO: count ==1451 [2025-03-08 15:33:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:33:05 - End Time 2025-03-08 15:33:05 [2025-03-08 15:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636097', 'tblTempUsageDetail_20' ) start [2025-03-08 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636097', 'tblTempUsageDetail_20' ) end [2025-03-08 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636097', 'tblTempVendorCDR_20' ) start [2025-03-08 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636097', 'tblTempVendorCDR_20' ) end [2025-03-08 15:33:18] Production.INFO: ProcessCDR(1,14636097,1,1,2) [2025-03-08 15:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636097', 'tblTempUsageDetail_20' ) start [2025-03-08 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636097', 'tblTempUsageDetail_20' ) end [2025-03-08 15:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:33:23] Production.INFO: ==17667== Releasing lock... [2025-03-08 15:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:33:23] Production.INFO: 39 MB #Memory Used# [2025-03-08 15:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:34:04 [end_date_ymd] => 2025-03-08 15:34:04 [RateCDR] => 1 ) [2025-03-08 15:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:34:04' and `end` < '2025-03-08 15:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:34:16] Production.INFO: count ==1440 [2025-03-08 15:34:17] Production.ERROR: pbx CDR StartTime 2025-03-08 12:34:04 - End Time 2025-03-08 15:34:04 [2025-03-08 15:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636102', 'tblTempUsageDetail_20' ) start [2025-03-08 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636102', 'tblTempUsageDetail_20' ) end [2025-03-08 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636102', 'tblTempVendorCDR_20' ) start [2025-03-08 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636102', 'tblTempVendorCDR_20' ) end [2025-03-08 15:34:17] Production.INFO: ProcessCDR(1,14636102,1,1,2) [2025-03-08 15:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636102', 'tblTempUsageDetail_20' ) start [2025-03-08 15:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636102', 'tblTempUsageDetail_20' ) end [2025-03-08 15:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:34:20] Production.INFO: ==17739== Releasing lock... [2025-03-08 15:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:34:20] Production.INFO: 39 MB #Memory Used# [2025-03-08 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:35:05 [end_date_ymd] => 2025-03-08 15:35:05 [RateCDR] => 1 ) [2025-03-08 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:35:05' and `end` < '2025-03-08 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:35:17] Production.INFO: count ==1438 [2025-03-08 15:35:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:35:05 - End Time 2025-03-08 15:35:05 [2025-03-08 15:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636107', 'tblTempUsageDetail_20' ) start [2025-03-08 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636107', 'tblTempUsageDetail_20' ) end [2025-03-08 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636107', 'tblTempVendorCDR_20' ) start [2025-03-08 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636107', 'tblTempVendorCDR_20' ) end [2025-03-08 15:35:18] Production.INFO: ProcessCDR(1,14636107,1,1,2) [2025-03-08 15:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636107', 'tblTempUsageDetail_20' ) start [2025-03-08 15:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636107', 'tblTempUsageDetail_20' ) end [2025-03-08 15:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:35:23] Production.INFO: ==17809== Releasing lock... [2025-03-08 15:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:35:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:36:05 [end_date_ymd] => 2025-03-08 15:36:05 [RateCDR] => 1 ) [2025-03-08 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:36:05' and `end` < '2025-03-08 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:36:17] Production.INFO: count ==1431 [2025-03-08 15:36:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:36:05 - End Time 2025-03-08 15:36:05 [2025-03-08 15:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636112', 'tblTempUsageDetail_20' ) start [2025-03-08 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636112', 'tblTempUsageDetail_20' ) end [2025-03-08 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636112', 'tblTempVendorCDR_20' ) start [2025-03-08 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636112', 'tblTempVendorCDR_20' ) end [2025-03-08 15:36:18] Production.INFO: ProcessCDR(1,14636112,1,1,2) [2025-03-08 15:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636112', 'tblTempUsageDetail_20' ) start [2025-03-08 15:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636112', 'tblTempUsageDetail_20' ) end [2025-03-08 15:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:36:22] Production.INFO: ==17882== Releasing lock... [2025-03-08 15:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:36:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:37:05 [end_date_ymd] => 2025-03-08 15:37:05 [RateCDR] => 1 ) [2025-03-08 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:37:05' and `end` < '2025-03-08 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:37:17] Production.INFO: count ==1425 [2025-03-08 15:37:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:37:05 - End Time 2025-03-08 15:37:05 [2025-03-08 15:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636117', 'tblTempUsageDetail_20' ) start [2025-03-08 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636117', 'tblTempUsageDetail_20' ) end [2025-03-08 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636117', 'tblTempVendorCDR_20' ) start [2025-03-08 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636117', 'tblTempVendorCDR_20' ) end [2025-03-08 15:37:18] Production.INFO: ProcessCDR(1,14636117,1,1,2) [2025-03-08 15:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636117', 'tblTempUsageDetail_20' ) start [2025-03-08 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636117', 'tblTempUsageDetail_20' ) end [2025-03-08 15:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:37:22] Production.INFO: ==17952== Releasing lock... [2025-03-08 15:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:37:22] Production.INFO: 39 MB #Memory Used# [2025-03-08 15:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:38:04 [end_date_ymd] => 2025-03-08 15:38:04 [RateCDR] => 1 ) [2025-03-08 15:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:38:04' and `end` < '2025-03-08 15:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:38:17] Production.INFO: count ==1422 [2025-03-08 15:38:17] Production.ERROR: pbx CDR StartTime 2025-03-08 12:38:04 - End Time 2025-03-08 15:38:04 [2025-03-08 15:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636122', 'tblTempUsageDetail_20' ) start [2025-03-08 15:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636122', 'tblTempUsageDetail_20' ) end [2025-03-08 15:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636122', 'tblTempVendorCDR_20' ) start [2025-03-08 15:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636122', 'tblTempVendorCDR_20' ) end [2025-03-08 15:38:17] Production.INFO: ProcessCDR(1,14636122,1,1,2) [2025-03-08 15:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636122', 'tblTempUsageDetail_20' ) start [2025-03-08 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636122', 'tblTempUsageDetail_20' ) end [2025-03-08 15:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:38:22] Production.INFO: ==18030== Releasing lock... [2025-03-08 15:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:38:22] Production.INFO: 39 MB #Memory Used# [2025-03-08 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:39:05 [end_date_ymd] => 2025-03-08 15:39:05 [RateCDR] => 1 ) [2025-03-08 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:39:05' and `end` < '2025-03-08 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:39:17] Production.INFO: count ==1402 [2025-03-08 15:39:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:39:05 - End Time 2025-03-08 15:39:05 [2025-03-08 15:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636127', 'tblTempUsageDetail_20' ) start [2025-03-08 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636127', 'tblTempUsageDetail_20' ) end [2025-03-08 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636127', 'tblTempVendorCDR_20' ) start [2025-03-08 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636127', 'tblTempVendorCDR_20' ) end [2025-03-08 15:39:18] Production.INFO: ProcessCDR(1,14636127,1,1,2) [2025-03-08 15:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636127', 'tblTempUsageDetail_20' ) start [2025-03-08 15:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636127', 'tblTempUsageDetail_20' ) end [2025-03-08 15:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:39:21] Production.INFO: ==18107== Releasing lock... [2025-03-08 15:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:39:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:40:05 [end_date_ymd] => 2025-03-08 15:40:05 [RateCDR] => 1 ) [2025-03-08 15:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:40:05' and `end` < '2025-03-08 15:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:40:17] Production.INFO: count ==1399 [2025-03-08 15:40:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:40:05 - End Time 2025-03-08 15:40:05 [2025-03-08 15:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636133', 'tblTempUsageDetail_20' ) start [2025-03-08 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636133', 'tblTempUsageDetail_20' ) end [2025-03-08 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636133', 'tblTempVendorCDR_20' ) start [2025-03-08 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636133', 'tblTempVendorCDR_20' ) end [2025-03-08 15:40:18] Production.INFO: ProcessCDR(1,14636133,1,1,2) [2025-03-08 15:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636133', 'tblTempUsageDetail_20' ) start [2025-03-08 15:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636133', 'tblTempUsageDetail_20' ) end [2025-03-08 15:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:40:21] Production.INFO: ==18179== Releasing lock... [2025-03-08 15:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:40:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:41:05 [end_date_ymd] => 2025-03-08 15:41:05 [RateCDR] => 1 ) [2025-03-08 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:41:05' and `end` < '2025-03-08 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:41:17] Production.INFO: count ==1359 [2025-03-08 15:41:17] Production.ERROR: pbx CDR StartTime 2025-03-08 12:41:05 - End Time 2025-03-08 15:41:05 [2025-03-08 15:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636138', 'tblTempUsageDetail_20' ) start [2025-03-08 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636138', 'tblTempUsageDetail_20' ) end [2025-03-08 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636138', 'tblTempVendorCDR_20' ) start [2025-03-08 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636138', 'tblTempVendorCDR_20' ) end [2025-03-08 15:41:17] Production.INFO: ProcessCDR(1,14636138,1,1,2) [2025-03-08 15:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636138', 'tblTempUsageDetail_20' ) start [2025-03-08 15:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636138', 'tblTempUsageDetail_20' ) end [2025-03-08 15:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:41:21] Production.INFO: ==18292== Releasing lock... [2025-03-08 15:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:41:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:42:05 [end_date_ymd] => 2025-03-08 15:42:05 [RateCDR] => 1 ) [2025-03-08 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:42:05' and `end` < '2025-03-08 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:42:17] Production.INFO: count ==1340 [2025-03-08 15:42:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:42:05 - End Time 2025-03-08 15:42:05 [2025-03-08 15:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636143', 'tblTempUsageDetail_20' ) start [2025-03-08 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636143', 'tblTempUsageDetail_20' ) end [2025-03-08 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636143', 'tblTempVendorCDR_20' ) start [2025-03-08 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636143', 'tblTempVendorCDR_20' ) end [2025-03-08 15:42:18] Production.INFO: ProcessCDR(1,14636143,1,1,2) [2025-03-08 15:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636143', 'tblTempUsageDetail_20' ) start [2025-03-08 15:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636143', 'tblTempUsageDetail_20' ) end [2025-03-08 15:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:42:21] Production.INFO: ==18364== Releasing lock... [2025-03-08 15:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:42:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:43:05 [end_date_ymd] => 2025-03-08 15:43:05 [RateCDR] => 1 ) [2025-03-08 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:43:05' and `end` < '2025-03-08 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:43:17] Production.INFO: count ==1337 [2025-03-08 15:43:17] Production.ERROR: pbx CDR StartTime 2025-03-08 12:43:05 - End Time 2025-03-08 15:43:05 [2025-03-08 15:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636148', 'tblTempUsageDetail_20' ) start [2025-03-08 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636148', 'tblTempUsageDetail_20' ) end [2025-03-08 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636148', 'tblTempVendorCDR_20' ) start [2025-03-08 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636148', 'tblTempVendorCDR_20' ) end [2025-03-08 15:43:18] Production.INFO: ProcessCDR(1,14636148,1,1,2) [2025-03-08 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636148', 'tblTempUsageDetail_20' ) start [2025-03-08 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636148', 'tblTempUsageDetail_20' ) end [2025-03-08 15:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:43:21] Production.INFO: ==18434== Releasing lock... [2025-03-08 15:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:43:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:44:05 [end_date_ymd] => 2025-03-08 15:44:05 [RateCDR] => 1 ) [2025-03-08 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:44:05' and `end` < '2025-03-08 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:44:17] Production.INFO: count ==1335 [2025-03-08 15:44:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:44:05 - End Time 2025-03-08 15:44:05 [2025-03-08 15:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636153', 'tblTempUsageDetail_20' ) start [2025-03-08 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636153', 'tblTempUsageDetail_20' ) end [2025-03-08 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636153', 'tblTempVendorCDR_20' ) start [2025-03-08 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636153', 'tblTempVendorCDR_20' ) end [2025-03-08 15:44:18] Production.INFO: ProcessCDR(1,14636153,1,1,2) [2025-03-08 15:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636153', 'tblTempUsageDetail_20' ) start [2025-03-08 15:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636153', 'tblTempUsageDetail_20' ) end [2025-03-08 15:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:44:23] Production.INFO: ==18508== Releasing lock... [2025-03-08 15:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:44:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:45:05 [end_date_ymd] => 2025-03-08 15:45:05 [RateCDR] => 1 ) [2025-03-08 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:45:05' and `end` < '2025-03-08 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:45:17] Production.INFO: count ==1324 [2025-03-08 15:45:17] Production.ERROR: pbx CDR StartTime 2025-03-08 12:45:05 - End Time 2025-03-08 15:45:05 [2025-03-08 15:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636158', 'tblTempUsageDetail_20' ) start [2025-03-08 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636158', 'tblTempUsageDetail_20' ) end [2025-03-08 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636158', 'tblTempVendorCDR_20' ) start [2025-03-08 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636158', 'tblTempVendorCDR_20' ) end [2025-03-08 15:45:17] Production.INFO: ProcessCDR(1,14636158,1,1,2) [2025-03-08 15:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636158', 'tblTempUsageDetail_20' ) start [2025-03-08 15:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636158', 'tblTempUsageDetail_20' ) end [2025-03-08 15:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:45:21] Production.INFO: ==18583== Releasing lock... [2025-03-08 15:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:45:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:46:05 [end_date_ymd] => 2025-03-08 15:46:05 [RateCDR] => 1 ) [2025-03-08 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:46:05' and `end` < '2025-03-08 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:46:17] Production.INFO: count ==1331 [2025-03-08 15:46:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:46:05 - End Time 2025-03-08 15:46:05 [2025-03-08 15:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636163', 'tblTempUsageDetail_20' ) start [2025-03-08 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636163', 'tblTempUsageDetail_20' ) end [2025-03-08 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636163', 'tblTempVendorCDR_20' ) start [2025-03-08 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636163', 'tblTempVendorCDR_20' ) end [2025-03-08 15:46:18] Production.INFO: ProcessCDR(1,14636163,1,1,2) [2025-03-08 15:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636163', 'tblTempUsageDetail_20' ) start [2025-03-08 15:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636163', 'tblTempUsageDetail_20' ) end [2025-03-08 15:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:46:21] Production.INFO: ==18655== Releasing lock... [2025-03-08 15:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:46:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:47:05 [end_date_ymd] => 2025-03-08 15:47:05 [RateCDR] => 1 ) [2025-03-08 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:47:05' and `end` < '2025-03-08 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:47:17] Production.INFO: count ==1330 [2025-03-08 15:47:17] Production.ERROR: pbx CDR StartTime 2025-03-08 12:47:05 - End Time 2025-03-08 15:47:05 [2025-03-08 15:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636168', 'tblTempUsageDetail_20' ) start [2025-03-08 15:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636168', 'tblTempUsageDetail_20' ) end [2025-03-08 15:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636168', 'tblTempVendorCDR_20' ) start [2025-03-08 15:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636168', 'tblTempVendorCDR_20' ) end [2025-03-08 15:47:17] Production.INFO: ProcessCDR(1,14636168,1,1,2) [2025-03-08 15:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636168', 'tblTempUsageDetail_20' ) start [2025-03-08 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636168', 'tblTempUsageDetail_20' ) end [2025-03-08 15:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:47:22] Production.INFO: ==18731== Releasing lock... [2025-03-08 15:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:47:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:48:05 [end_date_ymd] => 2025-03-08 15:48:05 [RateCDR] => 1 ) [2025-03-08 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:48:05' and `end` < '2025-03-08 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:48:17] Production.INFO: count ==1333 [2025-03-08 15:48:17] Production.ERROR: pbx CDR StartTime 2025-03-08 12:48:05 - End Time 2025-03-08 15:48:05 [2025-03-08 15:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636173', 'tblTempUsageDetail_20' ) start [2025-03-08 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636173', 'tblTempUsageDetail_20' ) end [2025-03-08 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636173', 'tblTempVendorCDR_20' ) start [2025-03-08 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636173', 'tblTempVendorCDR_20' ) end [2025-03-08 15:48:17] Production.INFO: ProcessCDR(1,14636173,1,1,2) [2025-03-08 15:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636173', 'tblTempUsageDetail_20' ) start [2025-03-08 15:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636173', 'tblTempUsageDetail_20' ) end [2025-03-08 15:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:48:21] Production.INFO: ==18805== Releasing lock... [2025-03-08 15:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:48:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 15:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:49:04 [end_date_ymd] => 2025-03-08 15:49:04 [RateCDR] => 1 ) [2025-03-08 15:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:49:04' and `end` < '2025-03-08 15:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:49:17] Production.INFO: count ==1331 [2025-03-08 15:49:17] Production.ERROR: pbx CDR StartTime 2025-03-08 12:49:04 - End Time 2025-03-08 15:49:04 [2025-03-08 15:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636178', 'tblTempUsageDetail_20' ) start [2025-03-08 15:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636178', 'tblTempUsageDetail_20' ) end [2025-03-08 15:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636178', 'tblTempVendorCDR_20' ) start [2025-03-08 15:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636178', 'tblTempVendorCDR_20' ) end [2025-03-08 15:49:17] Production.INFO: ProcessCDR(1,14636178,1,1,2) [2025-03-08 15:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636178', 'tblTempUsageDetail_20' ) start [2025-03-08 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636178', 'tblTempUsageDetail_20' ) end [2025-03-08 15:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:49:22] Production.INFO: ==18877== Releasing lock... [2025-03-08 15:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:49:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:50:06 [end_date_ymd] => 2025-03-08 15:50:06 [RateCDR] => 1 ) [2025-03-08 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:50:06' and `end` < '2025-03-08 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:50:18] Production.INFO: count ==1346 [2025-03-08 15:50:19] Production.ERROR: pbx CDR StartTime 2025-03-08 12:50:06 - End Time 2025-03-08 15:50:06 [2025-03-08 15:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636184', 'tblTempUsageDetail_20' ) start [2025-03-08 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636184', 'tblTempUsageDetail_20' ) end [2025-03-08 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636184', 'tblTempVendorCDR_20' ) start [2025-03-08 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636184', 'tblTempVendorCDR_20' ) end [2025-03-08 15:50:19] Production.INFO: ProcessCDR(1,14636184,1,1,2) [2025-03-08 15:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636184', 'tblTempUsageDetail_20' ) start [2025-03-08 15:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636184', 'tblTempUsageDetail_20' ) end [2025-03-08 15:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:50:22] Production.INFO: ==18950== Releasing lock... [2025-03-08 15:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:50:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:51:05 [end_date_ymd] => 2025-03-08 15:51:05 [RateCDR] => 1 ) [2025-03-08 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:51:05' and `end` < '2025-03-08 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:51:17] Production.INFO: count ==1329 [2025-03-08 15:51:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:51:05 - End Time 2025-03-08 15:51:05 [2025-03-08 15:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636189', 'tblTempUsageDetail_20' ) start [2025-03-08 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636189', 'tblTempUsageDetail_20' ) end [2025-03-08 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636189', 'tblTempVendorCDR_20' ) start [2025-03-08 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636189', 'tblTempVendorCDR_20' ) end [2025-03-08 15:51:18] Production.INFO: ProcessCDR(1,14636189,1,1,2) [2025-03-08 15:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636189', 'tblTempUsageDetail_20' ) start [2025-03-08 15:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636189', 'tblTempUsageDetail_20' ) end [2025-03-08 15:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:51:21] Production.INFO: ==19024== Releasing lock... [2025-03-08 15:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:51:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:52:05 [end_date_ymd] => 2025-03-08 15:52:05 [RateCDR] => 1 ) [2025-03-08 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:52:05' and `end` < '2025-03-08 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:52:17] Production.INFO: count ==1330 [2025-03-08 15:52:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:52:05 - End Time 2025-03-08 15:52:05 [2025-03-08 15:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636194', 'tblTempUsageDetail_20' ) start [2025-03-08 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636194', 'tblTempUsageDetail_20' ) end [2025-03-08 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636194', 'tblTempVendorCDR_20' ) start [2025-03-08 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636194', 'tblTempVendorCDR_20' ) end [2025-03-08 15:52:18] Production.INFO: ProcessCDR(1,14636194,1,1,2) [2025-03-08 15:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636194', 'tblTempUsageDetail_20' ) start [2025-03-08 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636194', 'tblTempUsageDetail_20' ) end [2025-03-08 15:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:52:23] Production.INFO: ==19103== Releasing lock... [2025-03-08 15:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:52:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:53:06 [end_date_ymd] => 2025-03-08 15:53:06 [RateCDR] => 1 ) [2025-03-08 15:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:53:06' and `end` < '2025-03-08 15:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:53:18] Production.INFO: count ==1330 [2025-03-08 15:53:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:53:06 - End Time 2025-03-08 15:53:06 [2025-03-08 15:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636199', 'tblTempUsageDetail_20' ) start [2025-03-08 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636199', 'tblTempUsageDetail_20' ) end [2025-03-08 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636199', 'tblTempVendorCDR_20' ) start [2025-03-08 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636199', 'tblTempVendorCDR_20' ) end [2025-03-08 15:53:18] Production.INFO: ProcessCDR(1,14636199,1,1,2) [2025-03-08 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636199', 'tblTempUsageDetail_20' ) start [2025-03-08 15:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636199', 'tblTempUsageDetail_20' ) end [2025-03-08 15:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:53:23] Production.INFO: ==19178== Releasing lock... [2025-03-08 15:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:53:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:54:05 [end_date_ymd] => 2025-03-08 15:54:05 [RateCDR] => 1 ) [2025-03-08 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:54:05' and `end` < '2025-03-08 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:54:17] Production.INFO: count ==1329 [2025-03-08 15:54:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:54:05 - End Time 2025-03-08 15:54:05 [2025-03-08 15:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636204', 'tblTempUsageDetail_20' ) start [2025-03-08 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636204', 'tblTempUsageDetail_20' ) end [2025-03-08 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636204', 'tblTempVendorCDR_20' ) start [2025-03-08 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636204', 'tblTempVendorCDR_20' ) end [2025-03-08 15:54:18] Production.INFO: ProcessCDR(1,14636204,1,1,2) [2025-03-08 15:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636204', 'tblTempUsageDetail_20' ) start [2025-03-08 15:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636204', 'tblTempUsageDetail_20' ) end [2025-03-08 15:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:54:21] Production.INFO: ==19249== Releasing lock... [2025-03-08 15:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:54:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:55:05 [end_date_ymd] => 2025-03-08 15:55:05 [RateCDR] => 1 ) [2025-03-08 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:55:05' and `end` < '2025-03-08 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:55:17] Production.INFO: count ==1332 [2025-03-08 15:55:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:55:05 - End Time 2025-03-08 15:55:05 [2025-03-08 15:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636209', 'tblTempUsageDetail_20' ) start [2025-03-08 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636209', 'tblTempUsageDetail_20' ) end [2025-03-08 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636209', 'tblTempVendorCDR_20' ) start [2025-03-08 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636209', 'tblTempVendorCDR_20' ) end [2025-03-08 15:55:18] Production.INFO: ProcessCDR(1,14636209,1,1,2) [2025-03-08 15:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636209', 'tblTempUsageDetail_20' ) start [2025-03-08 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636209', 'tblTempUsageDetail_20' ) end [2025-03-08 15:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:55:21] Production.INFO: ==19318== Releasing lock... [2025-03-08 15:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:55:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:56:05 [end_date_ymd] => 2025-03-08 15:56:05 [RateCDR] => 1 ) [2025-03-08 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:56:05' and `end` < '2025-03-08 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:56:17] Production.INFO: count ==1330 [2025-03-08 15:56:17] Production.ERROR: pbx CDR StartTime 2025-03-08 12:56:05 - End Time 2025-03-08 15:56:05 [2025-03-08 15:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636214', 'tblTempUsageDetail_20' ) start [2025-03-08 15:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636214', 'tblTempUsageDetail_20' ) end [2025-03-08 15:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636214', 'tblTempVendorCDR_20' ) start [2025-03-08 15:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636214', 'tblTempVendorCDR_20' ) end [2025-03-08 15:56:17] Production.INFO: ProcessCDR(1,14636214,1,1,2) [2025-03-08 15:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636214', 'tblTempUsageDetail_20' ) start [2025-03-08 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636214', 'tblTempUsageDetail_20' ) end [2025-03-08 15:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:56:22] Production.INFO: ==19428== Releasing lock... [2025-03-08 15:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:56:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:57:05 [end_date_ymd] => 2025-03-08 15:57:05 [RateCDR] => 1 ) [2025-03-08 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:57:05' and `end` < '2025-03-08 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:57:17] Production.INFO: count ==1336 [2025-03-08 15:57:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:57:05 - End Time 2025-03-08 15:57:05 [2025-03-08 15:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636219', 'tblTempUsageDetail_20' ) start [2025-03-08 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636219', 'tblTempUsageDetail_20' ) end [2025-03-08 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636219', 'tblTempVendorCDR_20' ) start [2025-03-08 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636219', 'tblTempVendorCDR_20' ) end [2025-03-08 15:57:18] Production.INFO: ProcessCDR(1,14636219,1,1,2) [2025-03-08 15:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636219', 'tblTempUsageDetail_20' ) start [2025-03-08 15:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636219', 'tblTempUsageDetail_20' ) end [2025-03-08 15:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:57:23] Production.INFO: ==19499== Releasing lock... [2025-03-08 15:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:57:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:58:06 [end_date_ymd] => 2025-03-08 15:58:06 [RateCDR] => 1 ) [2025-03-08 15:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:58:06' and `end` < '2025-03-08 15:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:58:18] Production.INFO: count ==1334 [2025-03-08 15:58:19] Production.ERROR: pbx CDR StartTime 2025-03-08 12:58:06 - End Time 2025-03-08 15:58:06 [2025-03-08 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636224', 'tblTempUsageDetail_20' ) start [2025-03-08 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636224', 'tblTempUsageDetail_20' ) end [2025-03-08 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636224', 'tblTempVendorCDR_20' ) start [2025-03-08 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636224', 'tblTempVendorCDR_20' ) end [2025-03-08 15:58:19] Production.INFO: ProcessCDR(1,14636224,1,1,2) [2025-03-08 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636224', 'tblTempUsageDetail_20' ) start [2025-03-08 15:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636224', 'tblTempUsageDetail_20' ) end [2025-03-08 15:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:58:24] Production.INFO: ==19574== Releasing lock... [2025-03-08 15:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:58:24] Production.INFO: 38 MB #Memory Used# [2025-03-08 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 12:59:05 [end_date_ymd] => 2025-03-08 15:59:05 [RateCDR] => 1 ) [2025-03-08 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 12:59:05' and `end` < '2025-03-08 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 15:59:18] Production.INFO: count ==1334 [2025-03-08 15:59:18] Production.ERROR: pbx CDR StartTime 2025-03-08 12:59:05 - End Time 2025-03-08 15:59:05 [2025-03-08 15:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636229', 'tblTempUsageDetail_20' ) start [2025-03-08 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636229', 'tblTempUsageDetail_20' ) end [2025-03-08 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636229', 'tblTempVendorCDR_20' ) start [2025-03-08 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636229', 'tblTempVendorCDR_20' ) end [2025-03-08 15:59:18] Production.INFO: ProcessCDR(1,14636229,1,1,2) [2025-03-08 15:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 15:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 15:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636229', 'tblTempUsageDetail_20' ) start [2025-03-08 15:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636229', 'tblTempUsageDetail_20' ) end [2025-03-08 15:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 15:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 15:59:21] Production.INFO: ==19646== Releasing lock... [2025-03-08 15:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 15:59:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:00:06 [end_date_ymd] => 2025-03-08 16:00:06 [RateCDR] => 1 ) [2025-03-08 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:00:06' and `end` < '2025-03-08 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:00:18] Production.INFO: count ==1338 [2025-03-08 16:00:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:00:06 - End Time 2025-03-08 16:00:06 [2025-03-08 16:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636234', 'tblTempUsageDetail_20' ) start [2025-03-08 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636234', 'tblTempUsageDetail_20' ) end [2025-03-08 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636234', 'tblTempVendorCDR_20' ) start [2025-03-08 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636234', 'tblTempVendorCDR_20' ) end [2025-03-08 16:00:19] Production.INFO: ProcessCDR(1,14636234,1,1,2) [2025-03-08 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636234', 'tblTempUsageDetail_20' ) start [2025-03-08 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636234', 'tblTempUsageDetail_20' ) end [2025-03-08 16:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:00:23] Production.INFO: ==19721== Releasing lock... [2025-03-08 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:00:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:01:05 [end_date_ymd] => 2025-03-08 16:01:05 [RateCDR] => 1 ) [2025-03-08 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:01:05' and `end` < '2025-03-08 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:01:17] Production.INFO: count ==1318 [2025-03-08 16:01:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:01:05 - End Time 2025-03-08 16:01:05 [2025-03-08 16:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636240', 'tblTempUsageDetail_20' ) start [2025-03-08 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636240', 'tblTempUsageDetail_20' ) end [2025-03-08 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636240', 'tblTempVendorCDR_20' ) start [2025-03-08 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636240', 'tblTempVendorCDR_20' ) end [2025-03-08 16:01:18] Production.INFO: ProcessCDR(1,14636240,1,1,2) [2025-03-08 16:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636240', 'tblTempUsageDetail_20' ) start [2025-03-08 16:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636240', 'tblTempUsageDetail_20' ) end [2025-03-08 16:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:01:21] Production.INFO: ==19806== Releasing lock... [2025-03-08 16:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:01:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:02:06 [end_date_ymd] => 2025-03-08 16:02:06 [RateCDR] => 1 ) [2025-03-08 16:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:02:06' and `end` < '2025-03-08 16:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:02:18] Production.INFO: count ==1323 [2025-03-08 16:02:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:02:06 - End Time 2025-03-08 16:02:06 [2025-03-08 16:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636245', 'tblTempUsageDetail_20' ) start [2025-03-08 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636245', 'tblTempUsageDetail_20' ) end [2025-03-08 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636245', 'tblTempVendorCDR_20' ) start [2025-03-08 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636245', 'tblTempVendorCDR_20' ) end [2025-03-08 16:02:18] Production.INFO: ProcessCDR(1,14636245,1,1,2) [2025-03-08 16:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636245', 'tblTempUsageDetail_20' ) start [2025-03-08 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636245', 'tblTempUsageDetail_20' ) end [2025-03-08 16:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:02:22] Production.INFO: ==19877== Releasing lock... [2025-03-08 16:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:02:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:03:05 [end_date_ymd] => 2025-03-08 16:03:05 [RateCDR] => 1 ) [2025-03-08 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:03:05' and `end` < '2025-03-08 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:03:17] Production.INFO: count ==1318 [2025-03-08 16:03:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:03:05 - End Time 2025-03-08 16:03:05 [2025-03-08 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636250', 'tblTempUsageDetail_20' ) start [2025-03-08 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636250', 'tblTempUsageDetail_20' ) end [2025-03-08 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636250', 'tblTempVendorCDR_20' ) start [2025-03-08 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636250', 'tblTempVendorCDR_20' ) end [2025-03-08 16:03:18] Production.INFO: ProcessCDR(1,14636250,1,1,2) [2025-03-08 16:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636250', 'tblTempUsageDetail_20' ) start [2025-03-08 16:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636250', 'tblTempUsageDetail_20' ) end [2025-03-08 16:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:03:21] Production.INFO: ==19949== Releasing lock... [2025-03-08 16:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:03:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:04:06 [end_date_ymd] => 2025-03-08 16:04:06 [RateCDR] => 1 ) [2025-03-08 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:04:06' and `end` < '2025-03-08 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:04:18] Production.INFO: count ==1319 [2025-03-08 16:04:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:04:06 - End Time 2025-03-08 16:04:06 [2025-03-08 16:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636255', 'tblTempUsageDetail_20' ) start [2025-03-08 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636255', 'tblTempUsageDetail_20' ) end [2025-03-08 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636255', 'tblTempVendorCDR_20' ) start [2025-03-08 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636255', 'tblTempVendorCDR_20' ) end [2025-03-08 16:04:18] Production.INFO: ProcessCDR(1,14636255,1,1,2) [2025-03-08 16:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636255', 'tblTempUsageDetail_20' ) start [2025-03-08 16:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636255', 'tblTempUsageDetail_20' ) end [2025-03-08 16:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:04:23] Production.INFO: ==20021== Releasing lock... [2025-03-08 16:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:04:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:05:05 [end_date_ymd] => 2025-03-08 16:05:05 [RateCDR] => 1 ) [2025-03-08 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:05:05' and `end` < '2025-03-08 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:05:17] Production.INFO: count ==1318 [2025-03-08 16:05:17] Production.ERROR: pbx CDR StartTime 2025-03-08 13:05:05 - End Time 2025-03-08 16:05:05 [2025-03-08 16:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636260', 'tblTempUsageDetail_20' ) start [2025-03-08 16:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636260', 'tblTempUsageDetail_20' ) end [2025-03-08 16:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636260', 'tblTempVendorCDR_20' ) start [2025-03-08 16:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636260', 'tblTempVendorCDR_20' ) end [2025-03-08 16:05:17] Production.INFO: ProcessCDR(1,14636260,1,1,2) [2025-03-08 16:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636260', 'tblTempUsageDetail_20' ) start [2025-03-08 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636260', 'tblTempUsageDetail_20' ) end [2025-03-08 16:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:05:22] Production.INFO: ==20091== Releasing lock... [2025-03-08 16:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:05:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:06:06 [end_date_ymd] => 2025-03-08 16:06:06 [RateCDR] => 1 ) [2025-03-08 16:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:06:06' and `end` < '2025-03-08 16:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:06:18] Production.INFO: count ==1314 [2025-03-08 16:06:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:06:06 - End Time 2025-03-08 16:06:06 [2025-03-08 16:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636265', 'tblTempUsageDetail_20' ) start [2025-03-08 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636265', 'tblTempUsageDetail_20' ) end [2025-03-08 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636265', 'tblTempVendorCDR_20' ) start [2025-03-08 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636265', 'tblTempVendorCDR_20' ) end [2025-03-08 16:06:18] Production.INFO: ProcessCDR(1,14636265,1,1,2) [2025-03-08 16:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636265', 'tblTempUsageDetail_20' ) start [2025-03-08 16:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636265', 'tblTempUsageDetail_20' ) end [2025-03-08 16:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:06:21] Production.INFO: ==20165== Releasing lock... [2025-03-08 16:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:06:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:07:05 [end_date_ymd] => 2025-03-08 16:07:05 [RateCDR] => 1 ) [2025-03-08 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:07:05' and `end` < '2025-03-08 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:07:17] Production.INFO: count ==1316 [2025-03-08 16:07:17] Production.ERROR: pbx CDR StartTime 2025-03-08 13:07:05 - End Time 2025-03-08 16:07:05 [2025-03-08 16:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636270', 'tblTempUsageDetail_20' ) start [2025-03-08 16:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636270', 'tblTempUsageDetail_20' ) end [2025-03-08 16:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636270', 'tblTempVendorCDR_20' ) start [2025-03-08 16:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636270', 'tblTempVendorCDR_20' ) end [2025-03-08 16:07:17] Production.INFO: ProcessCDR(1,14636270,1,1,2) [2025-03-08 16:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636270', 'tblTempUsageDetail_20' ) start [2025-03-08 16:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636270', 'tblTempUsageDetail_20' ) end [2025-03-08 16:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:07:22] Production.INFO: ==20238== Releasing lock... [2025-03-08 16:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:07:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:08:06 [end_date_ymd] => 2025-03-08 16:08:06 [RateCDR] => 1 ) [2025-03-08 16:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:08:06' and `end` < '2025-03-08 16:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:08:18] Production.INFO: count ==1300 [2025-03-08 16:08:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:08:06 - End Time 2025-03-08 16:08:06 [2025-03-08 16:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636275', 'tblTempUsageDetail_20' ) start [2025-03-08 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636275', 'tblTempUsageDetail_20' ) end [2025-03-08 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636275', 'tblTempVendorCDR_20' ) start [2025-03-08 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636275', 'tblTempVendorCDR_20' ) end [2025-03-08 16:08:19] Production.INFO: ProcessCDR(1,14636275,1,1,2) [2025-03-08 16:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636275', 'tblTempUsageDetail_20' ) start [2025-03-08 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636275', 'tblTempUsageDetail_20' ) end [2025-03-08 16:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:08:22] Production.INFO: ==20308== Releasing lock... [2025-03-08 16:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:08:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:09:05 [end_date_ymd] => 2025-03-08 16:09:05 [RateCDR] => 1 ) [2025-03-08 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:09:05' and `end` < '2025-03-08 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:09:17] Production.INFO: count ==1299 [2025-03-08 16:09:17] Production.ERROR: pbx CDR StartTime 2025-03-08 13:09:05 - End Time 2025-03-08 16:09:05 [2025-03-08 16:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636280', 'tblTempUsageDetail_20' ) start [2025-03-08 16:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636280', 'tblTempUsageDetail_20' ) end [2025-03-08 16:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636280', 'tblTempVendorCDR_20' ) start [2025-03-08 16:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636280', 'tblTempVendorCDR_20' ) end [2025-03-08 16:09:17] Production.INFO: ProcessCDR(1,14636280,1,1,2) [2025-03-08 16:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636280', 'tblTempUsageDetail_20' ) start [2025-03-08 16:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636280', 'tblTempUsageDetail_20' ) end [2025-03-08 16:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:09:20] Production.INFO: ==20378== Releasing lock... [2025-03-08 16:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:09:20] Production.INFO: 38 MB #Memory Used# [2025-03-08 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:10:06 [end_date_ymd] => 2025-03-08 16:10:06 [RateCDR] => 1 ) [2025-03-08 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:10:06' and `end` < '2025-03-08 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:10:18] Production.INFO: count ==1284 [2025-03-08 16:10:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:10:06 - End Time 2025-03-08 16:10:06 [2025-03-08 16:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636285', 'tblTempUsageDetail_20' ) start [2025-03-08 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636285', 'tblTempUsageDetail_20' ) end [2025-03-08 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636285', 'tblTempVendorCDR_20' ) start [2025-03-08 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636285', 'tblTempVendorCDR_20' ) end [2025-03-08 16:10:18] Production.INFO: ProcessCDR(1,14636285,1,1,2) [2025-03-08 16:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636285', 'tblTempUsageDetail_20' ) start [2025-03-08 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636285', 'tblTempUsageDetail_20' ) end [2025-03-08 16:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:10:23] Production.INFO: ==20456== Releasing lock... [2025-03-08 16:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:10:23] Production.INFO: 38 MB #Memory Used# [2025-03-08 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:11:05 [end_date_ymd] => 2025-03-08 16:11:05 [RateCDR] => 1 ) [2025-03-08 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:11:05' and `end` < '2025-03-08 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:11:17] Production.INFO: count ==1264 [2025-03-08 16:11:17] Production.ERROR: pbx CDR StartTime 2025-03-08 13:11:05 - End Time 2025-03-08 16:11:05 [2025-03-08 16:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636291', 'tblTempUsageDetail_20' ) start [2025-03-08 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636291', 'tblTempUsageDetail_20' ) end [2025-03-08 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636291', 'tblTempVendorCDR_20' ) start [2025-03-08 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636291', 'tblTempVendorCDR_20' ) end [2025-03-08 16:11:17] Production.INFO: ProcessCDR(1,14636291,1,1,2) [2025-03-08 16:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636291', 'tblTempUsageDetail_20' ) start [2025-03-08 16:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636291', 'tblTempUsageDetail_20' ) end [2025-03-08 16:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:11:22] Production.INFO: ==20527== Releasing lock... [2025-03-08 16:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:11:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:12:05 [end_date_ymd] => 2025-03-08 16:12:05 [RateCDR] => 1 ) [2025-03-08 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:12:05' and `end` < '2025-03-08 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:12:18] Production.INFO: count ==1261 [2025-03-08 16:12:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:12:05 - End Time 2025-03-08 16:12:05 [2025-03-08 16:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636296', 'tblTempUsageDetail_20' ) start [2025-03-08 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636296', 'tblTempUsageDetail_20' ) end [2025-03-08 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636296', 'tblTempVendorCDR_20' ) start [2025-03-08 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636296', 'tblTempVendorCDR_20' ) end [2025-03-08 16:12:18] Production.INFO: ProcessCDR(1,14636296,1,1,2) [2025-03-08 16:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636296', 'tblTempUsageDetail_20' ) start [2025-03-08 16:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636296', 'tblTempUsageDetail_20' ) end [2025-03-08 16:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:12:21] Production.INFO: ==20638== Releasing lock... [2025-03-08 16:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:12:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:13:05 [end_date_ymd] => 2025-03-08 16:13:05 [RateCDR] => 1 ) [2025-03-08 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:13:05' and `end` < '2025-03-08 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:13:17] Production.INFO: count ==1268 [2025-03-08 16:13:17] Production.ERROR: pbx CDR StartTime 2025-03-08 13:13:05 - End Time 2025-03-08 16:13:05 [2025-03-08 16:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636301', 'tblTempUsageDetail_20' ) start [2025-03-08 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636301', 'tblTempUsageDetail_20' ) end [2025-03-08 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636301', 'tblTempVendorCDR_20' ) start [2025-03-08 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636301', 'tblTempVendorCDR_20' ) end [2025-03-08 16:13:18] Production.INFO: ProcessCDR(1,14636301,1,1,2) [2025-03-08 16:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636301', 'tblTempUsageDetail_20' ) start [2025-03-08 16:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636301', 'tblTempUsageDetail_20' ) end [2025-03-08 16:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:13:21] Production.INFO: ==20708== Releasing lock... [2025-03-08 16:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:13:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:14:05 [end_date_ymd] => 2025-03-08 16:14:05 [RateCDR] => 1 ) [2025-03-08 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:14:05' and `end` < '2025-03-08 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:14:17] Production.INFO: count ==1271 [2025-03-08 16:14:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:14:05 - End Time 2025-03-08 16:14:05 [2025-03-08 16:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636306', 'tblTempUsageDetail_20' ) start [2025-03-08 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636306', 'tblTempUsageDetail_20' ) end [2025-03-08 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636306', 'tblTempVendorCDR_20' ) start [2025-03-08 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636306', 'tblTempVendorCDR_20' ) end [2025-03-08 16:14:18] Production.INFO: ProcessCDR(1,14636306,1,1,2) [2025-03-08 16:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636306', 'tblTempUsageDetail_20' ) start [2025-03-08 16:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636306', 'tblTempUsageDetail_20' ) end [2025-03-08 16:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:14:21] Production.INFO: ==20779== Releasing lock... [2025-03-08 16:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:14:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:15:05 [end_date_ymd] => 2025-03-08 16:15:05 [RateCDR] => 1 ) [2025-03-08 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:15:05' and `end` < '2025-03-08 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:15:17] Production.INFO: count ==1272 [2025-03-08 16:15:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:15:05 - End Time 2025-03-08 16:15:05 [2025-03-08 16:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636311', 'tblTempUsageDetail_20' ) start [2025-03-08 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636311', 'tblTempUsageDetail_20' ) end [2025-03-08 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636311', 'tblTempVendorCDR_20' ) start [2025-03-08 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636311', 'tblTempVendorCDR_20' ) end [2025-03-08 16:15:18] Production.INFO: ProcessCDR(1,14636311,1,1,2) [2025-03-08 16:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636311', 'tblTempUsageDetail_20' ) start [2025-03-08 16:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636311', 'tblTempUsageDetail_20' ) end [2025-03-08 16:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:15:21] Production.INFO: ==20850== Releasing lock... [2025-03-08 16:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:15:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:16:05 [end_date_ymd] => 2025-03-08 16:16:05 [RateCDR] => 1 ) [2025-03-08 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:16:05' and `end` < '2025-03-08 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:16:17] Production.INFO: count ==1273 [2025-03-08 16:16:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:16:05 - End Time 2025-03-08 16:16:05 [2025-03-08 16:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636316', 'tblTempUsageDetail_20' ) start [2025-03-08 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636316', 'tblTempUsageDetail_20' ) end [2025-03-08 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636316', 'tblTempVendorCDR_20' ) start [2025-03-08 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636316', 'tblTempVendorCDR_20' ) end [2025-03-08 16:16:18] Production.INFO: ProcessCDR(1,14636316,1,1,2) [2025-03-08 16:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636316', 'tblTempUsageDetail_20' ) start [2025-03-08 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636316', 'tblTempUsageDetail_20' ) end [2025-03-08 16:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:16:23] Production.INFO: ==20919== Releasing lock... [2025-03-08 16:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:16:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:17:06 [end_date_ymd] => 2025-03-08 16:17:06 [RateCDR] => 1 ) [2025-03-08 16:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:17:06' and `end` < '2025-03-08 16:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:17:18] Production.INFO: count ==1271 [2025-03-08 16:17:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:17:06 - End Time 2025-03-08 16:17:06 [2025-03-08 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636321', 'tblTempUsageDetail_20' ) start [2025-03-08 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636321', 'tblTempUsageDetail_20' ) end [2025-03-08 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636321', 'tblTempVendorCDR_20' ) start [2025-03-08 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636321', 'tblTempVendorCDR_20' ) end [2025-03-08 16:17:18] Production.INFO: ProcessCDR(1,14636321,1,1,2) [2025-03-08 16:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636321', 'tblTempUsageDetail_20' ) start [2025-03-08 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636321', 'tblTempUsageDetail_20' ) end [2025-03-08 16:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:17:22] Production.INFO: ==20995== Releasing lock... [2025-03-08 16:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:17:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:18:05 [end_date_ymd] => 2025-03-08 16:18:05 [RateCDR] => 1 ) [2025-03-08 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:18:05' and `end` < '2025-03-08 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:18:17] Production.INFO: count ==1277 [2025-03-08 16:18:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:18:05 - End Time 2025-03-08 16:18:05 [2025-03-08 16:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636326', 'tblTempUsageDetail_20' ) start [2025-03-08 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636326', 'tblTempUsageDetail_20' ) end [2025-03-08 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636326', 'tblTempVendorCDR_20' ) start [2025-03-08 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636326', 'tblTempVendorCDR_20' ) end [2025-03-08 16:18:18] Production.INFO: ProcessCDR(1,14636326,1,1,2) [2025-03-08 16:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636326', 'tblTempUsageDetail_20' ) start [2025-03-08 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636326', 'tblTempUsageDetail_20' ) end [2025-03-08 16:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:18:23] Production.INFO: ==21081== Releasing lock... [2025-03-08 16:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:18:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:19:05 [end_date_ymd] => 2025-03-08 16:19:05 [RateCDR] => 1 ) [2025-03-08 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:19:05' and `end` < '2025-03-08 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:19:17] Production.INFO: count ==1288 [2025-03-08 16:19:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:19:05 - End Time 2025-03-08 16:19:05 [2025-03-08 16:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636331', 'tblTempUsageDetail_20' ) start [2025-03-08 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636331', 'tblTempUsageDetail_20' ) end [2025-03-08 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636331', 'tblTempVendorCDR_20' ) start [2025-03-08 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636331', 'tblTempVendorCDR_20' ) end [2025-03-08 16:19:18] Production.INFO: ProcessCDR(1,14636331,1,1,2) [2025-03-08 16:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636331', 'tblTempUsageDetail_20' ) start [2025-03-08 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636331', 'tblTempUsageDetail_20' ) end [2025-03-08 16:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:19:23] Production.INFO: ==21154== Releasing lock... [2025-03-08 16:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:19:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:20:06 [end_date_ymd] => 2025-03-08 16:20:06 [RateCDR] => 1 ) [2025-03-08 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:20:06' and `end` < '2025-03-08 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:20:18] Production.INFO: count ==1290 [2025-03-08 16:20:19] Production.ERROR: pbx CDR StartTime 2025-03-08 13:20:06 - End Time 2025-03-08 16:20:06 [2025-03-08 16:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636336', 'tblTempUsageDetail_20' ) start [2025-03-08 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636336', 'tblTempUsageDetail_20' ) end [2025-03-08 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636336', 'tblTempVendorCDR_20' ) start [2025-03-08 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636336', 'tblTempVendorCDR_20' ) end [2025-03-08 16:20:19] Production.INFO: ProcessCDR(1,14636336,1,1,2) [2025-03-08 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636336', 'tblTempUsageDetail_20' ) start [2025-03-08 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636336', 'tblTempUsageDetail_20' ) end [2025-03-08 16:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:20:24] Production.INFO: ==21233== Releasing lock... [2025-03-08 16:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:20:24] Production.INFO: 38 MB #Memory Used# [2025-03-08 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:21:06 [end_date_ymd] => 2025-03-08 16:21:06 [RateCDR] => 1 ) [2025-03-08 16:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:21:06' and `end` < '2025-03-08 16:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:21:18] Production.INFO: count ==1349 [2025-03-08 16:21:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:21:06 - End Time 2025-03-08 16:21:06 [2025-03-08 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636342', 'tblTempUsageDetail_20' ) start [2025-03-08 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636342', 'tblTempUsageDetail_20' ) end [2025-03-08 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636342', 'tblTempVendorCDR_20' ) start [2025-03-08 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636342', 'tblTempVendorCDR_20' ) end [2025-03-08 16:21:18] Production.INFO: ProcessCDR(1,14636342,1,1,2) [2025-03-08 16:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636342', 'tblTempUsageDetail_20' ) start [2025-03-08 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636342', 'tblTempUsageDetail_20' ) end [2025-03-08 16:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:21:23] Production.INFO: ==21305== Releasing lock... [2025-03-08 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:21:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:22:05 [end_date_ymd] => 2025-03-08 16:22:05 [RateCDR] => 1 ) [2025-03-08 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:22:05' and `end` < '2025-03-08 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:22:17] Production.INFO: count ==1352 [2025-03-08 16:22:17] Production.ERROR: pbx CDR StartTime 2025-03-08 13:22:05 - End Time 2025-03-08 16:22:05 [2025-03-08 16:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636347', 'tblTempUsageDetail_20' ) start [2025-03-08 16:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636347', 'tblTempUsageDetail_20' ) end [2025-03-08 16:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636347', 'tblTempVendorCDR_20' ) start [2025-03-08 16:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636347', 'tblTempVendorCDR_20' ) end [2025-03-08 16:22:17] Production.INFO: ProcessCDR(1,14636347,1,1,2) [2025-03-08 16:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636347', 'tblTempUsageDetail_20' ) start [2025-03-08 16:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636347', 'tblTempUsageDetail_20' ) end [2025-03-08 16:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:22:22] Production.INFO: ==21374== Releasing lock... [2025-03-08 16:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:22:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:23:05 [end_date_ymd] => 2025-03-08 16:23:05 [RateCDR] => 1 ) [2025-03-08 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:23:05' and `end` < '2025-03-08 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:23:18] Production.INFO: count ==1341 [2025-03-08 16:23:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:23:05 - End Time 2025-03-08 16:23:05 [2025-03-08 16:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636352', 'tblTempUsageDetail_20' ) start [2025-03-08 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636352', 'tblTempUsageDetail_20' ) end [2025-03-08 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636352', 'tblTempVendorCDR_20' ) start [2025-03-08 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636352', 'tblTempVendorCDR_20' ) end [2025-03-08 16:23:18] Production.INFO: ProcessCDR(1,14636352,1,1,2) [2025-03-08 16:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636352', 'tblTempUsageDetail_20' ) start [2025-03-08 16:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636352', 'tblTempUsageDetail_20' ) end [2025-03-08 16:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:23:23] Production.INFO: ==21446== Releasing lock... [2025-03-08 16:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:23:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:24:05 [end_date_ymd] => 2025-03-08 16:24:05 [RateCDR] => 1 ) [2025-03-08 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:24:05' and `end` < '2025-03-08 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:24:17] Production.INFO: count ==1337 [2025-03-08 16:24:17] Production.ERROR: pbx CDR StartTime 2025-03-08 13:24:05 - End Time 2025-03-08 16:24:05 [2025-03-08 16:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636357', 'tblTempUsageDetail_20' ) start [2025-03-08 16:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636357', 'tblTempUsageDetail_20' ) end [2025-03-08 16:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636357', 'tblTempVendorCDR_20' ) start [2025-03-08 16:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636357', 'tblTempVendorCDR_20' ) end [2025-03-08 16:24:17] Production.INFO: ProcessCDR(1,14636357,1,1,2) [2025-03-08 16:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636357', 'tblTempUsageDetail_20' ) start [2025-03-08 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636357', 'tblTempUsageDetail_20' ) end [2025-03-08 16:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:24:22] Production.INFO: ==21517== Releasing lock... [2025-03-08 16:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:24:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:25:05 [end_date_ymd] => 2025-03-08 16:25:05 [RateCDR] => 1 ) [2025-03-08 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:25:05' and `end` < '2025-03-08 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:25:17] Production.INFO: count ==1331 [2025-03-08 16:25:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:25:05 - End Time 2025-03-08 16:25:05 [2025-03-08 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636362', 'tblTempUsageDetail_20' ) start [2025-03-08 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636362', 'tblTempUsageDetail_20' ) end [2025-03-08 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636362', 'tblTempVendorCDR_20' ) start [2025-03-08 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636362', 'tblTempVendorCDR_20' ) end [2025-03-08 16:25:18] Production.INFO: ProcessCDR(1,14636362,1,1,2) [2025-03-08 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636362', 'tblTempUsageDetail_20' ) start [2025-03-08 16:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636362', 'tblTempUsageDetail_20' ) end [2025-03-08 16:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:25:21] Production.INFO: ==21587== Releasing lock... [2025-03-08 16:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:25:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:26:05 [end_date_ymd] => 2025-03-08 16:26:05 [RateCDR] => 1 ) [2025-03-08 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:26:05' and `end` < '2025-03-08 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:26:17] Production.INFO: count ==1336 [2025-03-08 16:26:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:26:05 - End Time 2025-03-08 16:26:05 [2025-03-08 16:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636367', 'tblTempUsageDetail_20' ) start [2025-03-08 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636367', 'tblTempUsageDetail_20' ) end [2025-03-08 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636367', 'tblTempVendorCDR_20' ) start [2025-03-08 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636367', 'tblTempVendorCDR_20' ) end [2025-03-08 16:26:18] Production.INFO: ProcessCDR(1,14636367,1,1,2) [2025-03-08 16:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636367', 'tblTempUsageDetail_20' ) start [2025-03-08 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636367', 'tblTempUsageDetail_20' ) end [2025-03-08 16:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:26:23] Production.INFO: ==21660== Releasing lock... [2025-03-08 16:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:26:23] Production.INFO: 38 MB #Memory Used# [2025-03-08 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:27:05 [end_date_ymd] => 2025-03-08 16:27:05 [RateCDR] => 1 ) [2025-03-08 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:27:05' and `end` < '2025-03-08 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:27:17] Production.INFO: count ==1341 [2025-03-08 16:27:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:27:05 - End Time 2025-03-08 16:27:05 [2025-03-08 16:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636372', 'tblTempUsageDetail_20' ) start [2025-03-08 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636372', 'tblTempUsageDetail_20' ) end [2025-03-08 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636372', 'tblTempVendorCDR_20' ) start [2025-03-08 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636372', 'tblTempVendorCDR_20' ) end [2025-03-08 16:27:18] Production.INFO: ProcessCDR(1,14636372,1,1,2) [2025-03-08 16:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636372', 'tblTempUsageDetail_20' ) start [2025-03-08 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636372', 'tblTempUsageDetail_20' ) end [2025-03-08 16:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:27:23] Production.INFO: ==21770== Releasing lock... [2025-03-08 16:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:27:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 16:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:28:04 [end_date_ymd] => 2025-03-08 16:28:04 [RateCDR] => 1 ) [2025-03-08 16:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:28:04' and `end` < '2025-03-08 16:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:28:16] Production.INFO: count ==1342 [2025-03-08 16:28:17] Production.ERROR: pbx CDR StartTime 2025-03-08 13:28:04 - End Time 2025-03-08 16:28:04 [2025-03-08 16:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636377', 'tblTempUsageDetail_20' ) start [2025-03-08 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636377', 'tblTempUsageDetail_20' ) end [2025-03-08 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636377', 'tblTempVendorCDR_20' ) start [2025-03-08 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636377', 'tblTempVendorCDR_20' ) end [2025-03-08 16:28:17] Production.INFO: ProcessCDR(1,14636377,1,1,2) [2025-03-08 16:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636377', 'tblTempUsageDetail_20' ) start [2025-03-08 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636377', 'tblTempUsageDetail_20' ) end [2025-03-08 16:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:28:22] Production.INFO: ==21838== Releasing lock... [2025-03-08 16:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:28:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:29:05 [end_date_ymd] => 2025-03-08 16:29:05 [RateCDR] => 1 ) [2025-03-08 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:29:05' and `end` < '2025-03-08 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:29:17] Production.INFO: count ==1340 [2025-03-08 16:29:17] Production.ERROR: pbx CDR StartTime 2025-03-08 13:29:05 - End Time 2025-03-08 16:29:05 [2025-03-08 16:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636382', 'tblTempUsageDetail_20' ) start [2025-03-08 16:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636382', 'tblTempUsageDetail_20' ) end [2025-03-08 16:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636382', 'tblTempVendorCDR_20' ) start [2025-03-08 16:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636382', 'tblTempVendorCDR_20' ) end [2025-03-08 16:29:17] Production.INFO: ProcessCDR(1,14636382,1,1,2) [2025-03-08 16:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636382', 'tblTempUsageDetail_20' ) start [2025-03-08 16:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636382', 'tblTempUsageDetail_20' ) end [2025-03-08 16:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:29:22] Production.INFO: ==21908== Releasing lock... [2025-03-08 16:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:29:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:30:06 [end_date_ymd] => 2025-03-08 16:30:06 [RateCDR] => 1 ) [2025-03-08 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:30:06' and `end` < '2025-03-08 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:30:18] Production.INFO: count ==1338 [2025-03-08 16:30:19] Production.ERROR: pbx CDR StartTime 2025-03-08 13:30:06 - End Time 2025-03-08 16:30:06 [2025-03-08 16:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636388', 'tblTempUsageDetail_20' ) start [2025-03-08 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636388', 'tblTempUsageDetail_20' ) end [2025-03-08 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636388', 'tblTempVendorCDR_20' ) start [2025-03-08 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636388', 'tblTempVendorCDR_20' ) end [2025-03-08 16:30:19] Production.INFO: ProcessCDR(1,14636388,1,1,2) [2025-03-08 16:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636388', 'tblTempUsageDetail_20' ) start [2025-03-08 16:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636388', 'tblTempUsageDetail_20' ) end [2025-03-08 16:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:30:24] Production.INFO: ==21982== Releasing lock... [2025-03-08 16:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:30:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:31:05 [end_date_ymd] => 2025-03-08 16:31:05 [RateCDR] => 1 ) [2025-03-08 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:31:05' and `end` < '2025-03-08 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:31:17] Production.INFO: count ==1366 [2025-03-08 16:31:17] Production.ERROR: pbx CDR StartTime 2025-03-08 13:31:05 - End Time 2025-03-08 16:31:05 [2025-03-08 16:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636393', 'tblTempUsageDetail_20' ) start [2025-03-08 16:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636393', 'tblTempUsageDetail_20' ) end [2025-03-08 16:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636393', 'tblTempVendorCDR_20' ) start [2025-03-08 16:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636393', 'tblTempVendorCDR_20' ) end [2025-03-08 16:31:17] Production.INFO: ProcessCDR(1,14636393,1,1,2) [2025-03-08 16:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636393', 'tblTempUsageDetail_20' ) start [2025-03-08 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636393', 'tblTempUsageDetail_20' ) end [2025-03-08 16:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:31:23] Production.INFO: ==22056== Releasing lock... [2025-03-08 16:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:31:23] Production.INFO: 38 MB #Memory Used# [2025-03-08 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:32:05 [end_date_ymd] => 2025-03-08 16:32:05 [RateCDR] => 1 ) [2025-03-08 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:32:05' and `end` < '2025-03-08 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:32:17] Production.INFO: count ==1363 [2025-03-08 16:32:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:32:05 - End Time 2025-03-08 16:32:05 [2025-03-08 16:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636398', 'tblTempUsageDetail_20' ) start [2025-03-08 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636398', 'tblTempUsageDetail_20' ) end [2025-03-08 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636398', 'tblTempVendorCDR_20' ) start [2025-03-08 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636398', 'tblTempVendorCDR_20' ) end [2025-03-08 16:32:18] Production.INFO: ProcessCDR(1,14636398,1,1,2) [2025-03-08 16:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636398', 'tblTempUsageDetail_20' ) start [2025-03-08 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636398', 'tblTempUsageDetail_20' ) end [2025-03-08 16:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:32:23] Production.INFO: ==22126== Releasing lock... [2025-03-08 16:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:32:23] Production.INFO: 38 MB #Memory Used# [2025-03-08 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:33:05 [end_date_ymd] => 2025-03-08 16:33:05 [RateCDR] => 1 ) [2025-03-08 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:33:05' and `end` < '2025-03-08 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:33:17] Production.INFO: count ==1369 [2025-03-08 16:33:17] Production.ERROR: pbx CDR StartTime 2025-03-08 13:33:05 - End Time 2025-03-08 16:33:05 [2025-03-08 16:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636403', 'tblTempUsageDetail_20' ) start [2025-03-08 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636403', 'tblTempUsageDetail_20' ) end [2025-03-08 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636403', 'tblTempVendorCDR_20' ) start [2025-03-08 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636403', 'tblTempVendorCDR_20' ) end [2025-03-08 16:33:17] Production.INFO: ProcessCDR(1,14636403,1,1,2) [2025-03-08 16:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636403', 'tblTempUsageDetail_20' ) start [2025-03-08 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636403', 'tblTempUsageDetail_20' ) end [2025-03-08 16:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:33:22] Production.INFO: ==22197== Releasing lock... [2025-03-08 16:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:33:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:34:05 [end_date_ymd] => 2025-03-08 16:34:05 [RateCDR] => 1 ) [2025-03-08 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:34:05' and `end` < '2025-03-08 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:34:18] Production.INFO: count ==1369 [2025-03-08 16:34:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:34:05 - End Time 2025-03-08 16:34:05 [2025-03-08 16:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636408', 'tblTempUsageDetail_20' ) start [2025-03-08 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636408', 'tblTempUsageDetail_20' ) end [2025-03-08 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636408', 'tblTempVendorCDR_20' ) start [2025-03-08 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636408', 'tblTempVendorCDR_20' ) end [2025-03-08 16:34:18] Production.INFO: ProcessCDR(1,14636408,1,1,2) [2025-03-08 16:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636408', 'tblTempUsageDetail_20' ) start [2025-03-08 16:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636408', 'tblTempUsageDetail_20' ) end [2025-03-08 16:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:34:21] Production.INFO: ==22275== Releasing lock... [2025-03-08 16:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:34:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 16:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:35:04 [end_date_ymd] => 2025-03-08 16:35:04 [RateCDR] => 1 ) [2025-03-08 16:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:35:04' and `end` < '2025-03-08 16:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:35:17] Production.INFO: count ==1370 [2025-03-08 16:35:17] Production.ERROR: pbx CDR StartTime 2025-03-08 13:35:04 - End Time 2025-03-08 16:35:04 [2025-03-08 16:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636413', 'tblTempUsageDetail_20' ) start [2025-03-08 16:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636413', 'tblTempUsageDetail_20' ) end [2025-03-08 16:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636413', 'tblTempVendorCDR_20' ) start [2025-03-08 16:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636413', 'tblTempVendorCDR_20' ) end [2025-03-08 16:35:17] Production.INFO: ProcessCDR(1,14636413,1,1,2) [2025-03-08 16:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636413', 'tblTempUsageDetail_20' ) start [2025-03-08 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636413', 'tblTempUsageDetail_20' ) end [2025-03-08 16:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:35:22] Production.INFO: ==22345== Releasing lock... [2025-03-08 16:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:35:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:36:05 [end_date_ymd] => 2025-03-08 16:36:05 [RateCDR] => 1 ) [2025-03-08 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:36:05' and `end` < '2025-03-08 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:36:18] Production.INFO: count ==1373 [2025-03-08 16:36:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:36:05 - End Time 2025-03-08 16:36:05 [2025-03-08 16:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636418', 'tblTempUsageDetail_20' ) start [2025-03-08 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636418', 'tblTempUsageDetail_20' ) end [2025-03-08 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636418', 'tblTempVendorCDR_20' ) start [2025-03-08 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636418', 'tblTempVendorCDR_20' ) end [2025-03-08 16:36:18] Production.INFO: ProcessCDR(1,14636418,1,1,2) [2025-03-08 16:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636418', 'tblTempUsageDetail_20' ) start [2025-03-08 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636418', 'tblTempUsageDetail_20' ) end [2025-03-08 16:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:36:23] Production.INFO: ==22421== Releasing lock... [2025-03-08 16:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:36:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:37:05 [end_date_ymd] => 2025-03-08 16:37:05 [RateCDR] => 1 ) [2025-03-08 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:37:05' and `end` < '2025-03-08 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:37:17] Production.INFO: count ==1372 [2025-03-08 16:37:17] Production.ERROR: pbx CDR StartTime 2025-03-08 13:37:05 - End Time 2025-03-08 16:37:05 [2025-03-08 16:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636423', 'tblTempUsageDetail_20' ) start [2025-03-08 16:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636423', 'tblTempUsageDetail_20' ) end [2025-03-08 16:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636423', 'tblTempVendorCDR_20' ) start [2025-03-08 16:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636423', 'tblTempVendorCDR_20' ) end [2025-03-08 16:37:17] Production.INFO: ProcessCDR(1,14636423,1,1,2) [2025-03-08 16:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636423', 'tblTempUsageDetail_20' ) start [2025-03-08 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636423', 'tblTempUsageDetail_20' ) end [2025-03-08 16:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:37:22] Production.INFO: ==22495== Releasing lock... [2025-03-08 16:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:37:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:38:05 [end_date_ymd] => 2025-03-08 16:38:05 [RateCDR] => 1 ) [2025-03-08 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:38:05' and `end` < '2025-03-08 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:38:17] Production.INFO: count ==1373 [2025-03-08 16:38:17] Production.ERROR: pbx CDR StartTime 2025-03-08 13:38:05 - End Time 2025-03-08 16:38:05 [2025-03-08 16:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636428', 'tblTempUsageDetail_20' ) start [2025-03-08 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636428', 'tblTempUsageDetail_20' ) end [2025-03-08 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636428', 'tblTempVendorCDR_20' ) start [2025-03-08 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636428', 'tblTempVendorCDR_20' ) end [2025-03-08 16:38:17] Production.INFO: ProcessCDR(1,14636428,1,1,2) [2025-03-08 16:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636428', 'tblTempUsageDetail_20' ) start [2025-03-08 16:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636428', 'tblTempUsageDetail_20' ) end [2025-03-08 16:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:38:22] Production.INFO: ==22569== Releasing lock... [2025-03-08 16:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:38:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:39:05 [end_date_ymd] => 2025-03-08 16:39:05 [RateCDR] => 1 ) [2025-03-08 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:39:05' and `end` < '2025-03-08 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:39:17] Production.INFO: count ==1371 [2025-03-08 16:39:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:39:05 - End Time 2025-03-08 16:39:05 [2025-03-08 16:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636433', 'tblTempUsageDetail_20' ) start [2025-03-08 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636433', 'tblTempUsageDetail_20' ) end [2025-03-08 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636433', 'tblTempVendorCDR_20' ) start [2025-03-08 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636433', 'tblTempVendorCDR_20' ) end [2025-03-08 16:39:18] Production.INFO: ProcessCDR(1,14636433,1,1,2) [2025-03-08 16:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636433', 'tblTempUsageDetail_20' ) start [2025-03-08 16:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636433', 'tblTempUsageDetail_20' ) end [2025-03-08 16:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:39:21] Production.INFO: ==22638== Releasing lock... [2025-03-08 16:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:39:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:40:06 [end_date_ymd] => 2025-03-08 16:40:06 [RateCDR] => 1 ) [2025-03-08 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:40:06' and `end` < '2025-03-08 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:40:18] Production.INFO: count ==1377 [2025-03-08 16:40:19] Production.ERROR: pbx CDR StartTime 2025-03-08 13:40:06 - End Time 2025-03-08 16:40:06 [2025-03-08 16:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636439', 'tblTempUsageDetail_20' ) start [2025-03-08 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636439', 'tblTempUsageDetail_20' ) end [2025-03-08 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636439', 'tblTempVendorCDR_20' ) start [2025-03-08 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636439', 'tblTempVendorCDR_20' ) end [2025-03-08 16:40:19] Production.INFO: ProcessCDR(1,14636439,1,1,2) [2025-03-08 16:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636439', 'tblTempUsageDetail_20' ) start [2025-03-08 16:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636439', 'tblTempUsageDetail_20' ) end [2025-03-08 16:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:40:23] Production.INFO: ==22711== Releasing lock... [2025-03-08 16:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:40:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:41:05 [end_date_ymd] => 2025-03-08 16:41:05 [RateCDR] => 1 ) [2025-03-08 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:41:05' and `end` < '2025-03-08 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:41:18] Production.INFO: count ==1360 [2025-03-08 16:41:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:41:05 - End Time 2025-03-08 16:41:05 [2025-03-08 16:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636444', 'tblTempUsageDetail_20' ) start [2025-03-08 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636444', 'tblTempUsageDetail_20' ) end [2025-03-08 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636444', 'tblTempVendorCDR_20' ) start [2025-03-08 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636444', 'tblTempVendorCDR_20' ) end [2025-03-08 16:41:18] Production.INFO: ProcessCDR(1,14636444,1,1,2) [2025-03-08 16:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636444', 'tblTempUsageDetail_20' ) start [2025-03-08 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636444', 'tblTempUsageDetail_20' ) end [2025-03-08 16:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:41:23] Production.INFO: ==22784== Releasing lock... [2025-03-08 16:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:41:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:42:05 [end_date_ymd] => 2025-03-08 16:42:05 [RateCDR] => 1 ) [2025-03-08 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:42:05' and `end` < '2025-03-08 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:42:18] Production.INFO: count ==1360 [2025-03-08 16:42:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:42:05 - End Time 2025-03-08 16:42:05 [2025-03-08 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636449', 'tblTempUsageDetail_20' ) start [2025-03-08 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636449', 'tblTempUsageDetail_20' ) end [2025-03-08 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636449', 'tblTempVendorCDR_20' ) start [2025-03-08 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636449', 'tblTempVendorCDR_20' ) end [2025-03-08 16:42:18] Production.INFO: ProcessCDR(1,14636449,1,1,2) [2025-03-08 16:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636449', 'tblTempUsageDetail_20' ) start [2025-03-08 16:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636449', 'tblTempUsageDetail_20' ) end [2025-03-08 16:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:42:23] Production.INFO: ==22855== Releasing lock... [2025-03-08 16:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:42:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 16:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:43:06 [end_date_ymd] => 2025-03-08 16:43:06 [RateCDR] => 1 ) [2025-03-08 16:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:43:06' and `end` < '2025-03-08 16:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:43:18] Production.INFO: count ==1361 [2025-03-08 16:43:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:43:06 - End Time 2025-03-08 16:43:06 [2025-03-08 16:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636454', 'tblTempUsageDetail_20' ) start [2025-03-08 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636454', 'tblTempUsageDetail_20' ) end [2025-03-08 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636454', 'tblTempVendorCDR_20' ) start [2025-03-08 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636454', 'tblTempVendorCDR_20' ) end [2025-03-08 16:43:18] Production.INFO: ProcessCDR(1,14636454,1,1,2) [2025-03-08 16:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636454', 'tblTempUsageDetail_20' ) start [2025-03-08 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636454', 'tblTempUsageDetail_20' ) end [2025-03-08 16:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:43:23] Production.INFO: ==22969== Releasing lock... [2025-03-08 16:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:43:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:44:05 [end_date_ymd] => 2025-03-08 16:44:05 [RateCDR] => 1 ) [2025-03-08 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:44:05' and `end` < '2025-03-08 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:44:18] Production.INFO: count ==1359 [2025-03-08 16:44:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:44:05 - End Time 2025-03-08 16:44:05 [2025-03-08 16:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636459', 'tblTempUsageDetail_20' ) start [2025-03-08 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636459', 'tblTempUsageDetail_20' ) end [2025-03-08 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636459', 'tblTempVendorCDR_20' ) start [2025-03-08 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636459', 'tblTempVendorCDR_20' ) end [2025-03-08 16:44:18] Production.INFO: ProcessCDR(1,14636459,1,1,2) [2025-03-08 16:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636459', 'tblTempUsageDetail_20' ) start [2025-03-08 16:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636459', 'tblTempUsageDetail_20' ) end [2025-03-08 16:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:44:21] Production.INFO: ==23038== Releasing lock... [2025-03-08 16:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:44:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:45:06 [end_date_ymd] => 2025-03-08 16:45:06 [RateCDR] => 1 ) [2025-03-08 16:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:45:06' and `end` < '2025-03-08 16:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:45:18] Production.INFO: count ==1356 [2025-03-08 16:45:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:45:06 - End Time 2025-03-08 16:45:06 [2025-03-08 16:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636464', 'tblTempUsageDetail_20' ) start [2025-03-08 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636464', 'tblTempUsageDetail_20' ) end [2025-03-08 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636464', 'tblTempVendorCDR_20' ) start [2025-03-08 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636464', 'tblTempVendorCDR_20' ) end [2025-03-08 16:45:18] Production.INFO: ProcessCDR(1,14636464,1,1,2) [2025-03-08 16:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636464', 'tblTempUsageDetail_20' ) start [2025-03-08 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636464', 'tblTempUsageDetail_20' ) end [2025-03-08 16:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:45:22] Production.INFO: ==23112== Releasing lock... [2025-03-08 16:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:45:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:46:05 [end_date_ymd] => 2025-03-08 16:46:05 [RateCDR] => 1 ) [2025-03-08 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:46:05' and `end` < '2025-03-08 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:46:17] Production.INFO: count ==1348 [2025-03-08 16:46:17] Production.ERROR: pbx CDR StartTime 2025-03-08 13:46:05 - End Time 2025-03-08 16:46:05 [2025-03-08 16:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636469', 'tblTempUsageDetail_20' ) start [2025-03-08 16:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636469', 'tblTempUsageDetail_20' ) end [2025-03-08 16:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636469', 'tblTempVendorCDR_20' ) start [2025-03-08 16:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636469', 'tblTempVendorCDR_20' ) end [2025-03-08 16:46:17] Production.INFO: ProcessCDR(1,14636469,1,1,2) [2025-03-08 16:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636469', 'tblTempUsageDetail_20' ) start [2025-03-08 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636469', 'tblTempUsageDetail_20' ) end [2025-03-08 16:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:46:22] Production.INFO: ==23182== Releasing lock... [2025-03-08 16:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:46:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:47:05 [end_date_ymd] => 2025-03-08 16:47:05 [RateCDR] => 1 ) [2025-03-08 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:47:05' and `end` < '2025-03-08 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:47:18] Production.INFO: count ==1343 [2025-03-08 16:47:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:47:05 - End Time 2025-03-08 16:47:05 [2025-03-08 16:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636474', 'tblTempUsageDetail_20' ) start [2025-03-08 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636474', 'tblTempUsageDetail_20' ) end [2025-03-08 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636474', 'tblTempVendorCDR_20' ) start [2025-03-08 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636474', 'tblTempVendorCDR_20' ) end [2025-03-08 16:47:18] Production.INFO: ProcessCDR(1,14636474,1,1,2) [2025-03-08 16:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636474', 'tblTempUsageDetail_20' ) start [2025-03-08 16:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636474', 'tblTempUsageDetail_20' ) end [2025-03-08 16:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:47:23] Production.INFO: ==23258== Releasing lock... [2025-03-08 16:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:47:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:48:05 [end_date_ymd] => 2025-03-08 16:48:05 [RateCDR] => 1 ) [2025-03-08 16:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:48:05' and `end` < '2025-03-08 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:48:18] Production.INFO: count ==1349 [2025-03-08 16:48:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:48:05 - End Time 2025-03-08 16:48:05 [2025-03-08 16:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636479', 'tblTempUsageDetail_20' ) start [2025-03-08 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636479', 'tblTempUsageDetail_20' ) end [2025-03-08 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636479', 'tblTempVendorCDR_20' ) start [2025-03-08 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636479', 'tblTempVendorCDR_20' ) end [2025-03-08 16:48:18] Production.INFO: ProcessCDR(1,14636479,1,1,2) [2025-03-08 16:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636479', 'tblTempUsageDetail_20' ) start [2025-03-08 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636479', 'tblTempUsageDetail_20' ) end [2025-03-08 16:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:48:23] Production.INFO: ==23330== Releasing lock... [2025-03-08 16:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:48:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:49:05 [end_date_ymd] => 2025-03-08 16:49:05 [RateCDR] => 1 ) [2025-03-08 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:49:05' and `end` < '2025-03-08 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:49:18] Production.INFO: count ==1352 [2025-03-08 16:49:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:49:05 - End Time 2025-03-08 16:49:05 [2025-03-08 16:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636484', 'tblTempUsageDetail_20' ) start [2025-03-08 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636484', 'tblTempUsageDetail_20' ) end [2025-03-08 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636484', 'tblTempVendorCDR_20' ) start [2025-03-08 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636484', 'tblTempVendorCDR_20' ) end [2025-03-08 16:49:18] Production.INFO: ProcessCDR(1,14636484,1,1,2) [2025-03-08 16:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636484', 'tblTempUsageDetail_20' ) start [2025-03-08 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636484', 'tblTempUsageDetail_20' ) end [2025-03-08 16:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:49:23] Production.INFO: ==23402== Releasing lock... [2025-03-08 16:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:49:23] Production.INFO: 38 MB #Memory Used# [2025-03-08 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:50:06 [end_date_ymd] => 2025-03-08 16:50:06 [RateCDR] => 1 ) [2025-03-08 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:50:06' and `end` < '2025-03-08 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:50:18] Production.INFO: count ==1366 [2025-03-08 16:50:19] Production.ERROR: pbx CDR StartTime 2025-03-08 13:50:06 - End Time 2025-03-08 16:50:06 [2025-03-08 16:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636490', 'tblTempUsageDetail_20' ) start [2025-03-08 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636490', 'tblTempUsageDetail_20' ) end [2025-03-08 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636490', 'tblTempVendorCDR_20' ) start [2025-03-08 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636490', 'tblTempVendorCDR_20' ) end [2025-03-08 16:50:19] Production.INFO: ProcessCDR(1,14636490,1,1,2) [2025-03-08 16:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636490', 'tblTempUsageDetail_20' ) start [2025-03-08 16:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636490', 'tblTempUsageDetail_20' ) end [2025-03-08 16:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:50:23] Production.INFO: ==23474== Releasing lock... [2025-03-08 16:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:50:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 16:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:51:06 [end_date_ymd] => 2025-03-08 16:51:06 [RateCDR] => 1 ) [2025-03-08 16:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:51:06' and `end` < '2025-03-08 16:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:51:18] Production.INFO: count ==1411 [2025-03-08 16:51:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:51:06 - End Time 2025-03-08 16:51:06 [2025-03-08 16:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636495', 'tblTempUsageDetail_20' ) start [2025-03-08 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636495', 'tblTempUsageDetail_20' ) end [2025-03-08 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636495', 'tblTempVendorCDR_20' ) start [2025-03-08 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636495', 'tblTempVendorCDR_20' ) end [2025-03-08 16:51:18] Production.INFO: ProcessCDR(1,14636495,1,1,2) [2025-03-08 16:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636495', 'tblTempUsageDetail_20' ) start [2025-03-08 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636495', 'tblTempUsageDetail_20' ) end [2025-03-08 16:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:51:23] Production.INFO: ==23550== Releasing lock... [2025-03-08 16:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:51:23] Production.INFO: 39 MB #Memory Used# [2025-03-08 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:52:05 [end_date_ymd] => 2025-03-08 16:52:05 [RateCDR] => 1 ) [2025-03-08 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:52:05' and `end` < '2025-03-08 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:52:18] Production.INFO: count ==1404 [2025-03-08 16:52:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:52:05 - End Time 2025-03-08 16:52:05 [2025-03-08 16:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636500', 'tblTempUsageDetail_20' ) start [2025-03-08 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636500', 'tblTempUsageDetail_20' ) end [2025-03-08 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636500', 'tblTempVendorCDR_20' ) start [2025-03-08 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636500', 'tblTempVendorCDR_20' ) end [2025-03-08 16:52:18] Production.INFO: ProcessCDR(1,14636500,1,1,2) [2025-03-08 16:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636500', 'tblTempUsageDetail_20' ) start [2025-03-08 16:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636500', 'tblTempUsageDetail_20' ) end [2025-03-08 16:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:52:23] Production.INFO: ==23624== Releasing lock... [2025-03-08 16:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:52:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:53:06 [end_date_ymd] => 2025-03-08 16:53:06 [RateCDR] => 1 ) [2025-03-08 16:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:53:06' and `end` < '2025-03-08 16:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:53:18] Production.INFO: count ==1404 [2025-03-08 16:53:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:53:06 - End Time 2025-03-08 16:53:06 [2025-03-08 16:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636505', 'tblTempUsageDetail_20' ) start [2025-03-08 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636505', 'tblTempUsageDetail_20' ) end [2025-03-08 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636505', 'tblTempVendorCDR_20' ) start [2025-03-08 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636505', 'tblTempVendorCDR_20' ) end [2025-03-08 16:53:18] Production.INFO: ProcessCDR(1,14636505,1,1,2) [2025-03-08 16:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636505', 'tblTempUsageDetail_20' ) start [2025-03-08 16:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636505', 'tblTempUsageDetail_20' ) end [2025-03-08 16:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:53:23] Production.INFO: ==23695== Releasing lock... [2025-03-08 16:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:53:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-08 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:54:05 [end_date_ymd] => 2025-03-08 16:54:05 [RateCDR] => 1 ) [2025-03-08 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:54:05' and `end` < '2025-03-08 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:54:17] Production.INFO: count ==1386 [2025-03-08 16:54:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:54:05 - End Time 2025-03-08 16:54:05 [2025-03-08 16:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636510', 'tblTempUsageDetail_20' ) start [2025-03-08 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636510', 'tblTempUsageDetail_20' ) end [2025-03-08 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636510', 'tblTempVendorCDR_20' ) start [2025-03-08 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636510', 'tblTempVendorCDR_20' ) end [2025-03-08 16:54:18] Production.INFO: ProcessCDR(1,14636510,1,1,2) [2025-03-08 16:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636510', 'tblTempUsageDetail_20' ) start [2025-03-08 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636510', 'tblTempUsageDetail_20' ) end [2025-03-08 16:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:54:22] Production.INFO: ==23766== Releasing lock... [2025-03-08 16:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:54:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:55:06 [end_date_ymd] => 2025-03-08 16:55:06 [RateCDR] => 1 ) [2025-03-08 16:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:55:06' and `end` < '2025-03-08 16:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:55:18] Production.INFO: count ==1358 [2025-03-08 16:55:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:55:06 - End Time 2025-03-08 16:55:06 [2025-03-08 16:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636515', 'tblTempUsageDetail_20' ) start [2025-03-08 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636515', 'tblTempUsageDetail_20' ) end [2025-03-08 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636515', 'tblTempVendorCDR_20' ) start [2025-03-08 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636515', 'tblTempVendorCDR_20' ) end [2025-03-08 16:55:18] Production.INFO: ProcessCDR(1,14636515,1,1,2) [2025-03-08 16:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636515', 'tblTempUsageDetail_20' ) start [2025-03-08 16:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636515', 'tblTempUsageDetail_20' ) end [2025-03-08 16:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:55:23] Production.INFO: ==23836== Releasing lock... [2025-03-08 16:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:55:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 16:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:56:04 [end_date_ymd] => 2025-03-08 16:56:04 [RateCDR] => 1 ) [2025-03-08 16:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:56:04' and `end` < '2025-03-08 16:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:56:17] Production.INFO: count ==1363 [2025-03-08 16:56:17] Production.ERROR: pbx CDR StartTime 2025-03-08 13:56:04 - End Time 2025-03-08 16:56:04 [2025-03-08 16:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636520', 'tblTempUsageDetail_20' ) start [2025-03-08 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636520', 'tblTempUsageDetail_20' ) end [2025-03-08 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636520', 'tblTempVendorCDR_20' ) start [2025-03-08 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636520', 'tblTempVendorCDR_20' ) end [2025-03-08 16:56:17] Production.INFO: ProcessCDR(1,14636520,1,1,2) [2025-03-08 16:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636520', 'tblTempUsageDetail_20' ) start [2025-03-08 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636520', 'tblTempUsageDetail_20' ) end [2025-03-08 16:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:56:22] Production.INFO: ==23914== Releasing lock... [2025-03-08 16:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:56:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:57:05 [end_date_ymd] => 2025-03-08 16:57:05 [RateCDR] => 1 ) [2025-03-08 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:57:05' and `end` < '2025-03-08 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:57:17] Production.INFO: count ==1361 [2025-03-08 16:57:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:57:05 - End Time 2025-03-08 16:57:05 [2025-03-08 16:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636525', 'tblTempUsageDetail_20' ) start [2025-03-08 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636525', 'tblTempUsageDetail_20' ) end [2025-03-08 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636525', 'tblTempVendorCDR_20' ) start [2025-03-08 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636525', 'tblTempVendorCDR_20' ) end [2025-03-08 16:57:18] Production.INFO: ProcessCDR(1,14636525,1,1,2) [2025-03-08 16:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636525', 'tblTempUsageDetail_20' ) start [2025-03-08 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636525', 'tblTempUsageDetail_20' ) end [2025-03-08 16:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:57:23] Production.INFO: ==23987== Releasing lock... [2025-03-08 16:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:57:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:58:05 [end_date_ymd] => 2025-03-08 16:58:05 [RateCDR] => 1 ) [2025-03-08 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:58:05' and `end` < '2025-03-08 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:58:17] Production.INFO: count ==1364 [2025-03-08 16:58:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:58:05 - End Time 2025-03-08 16:58:05 [2025-03-08 16:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636530', 'tblTempUsageDetail_20' ) start [2025-03-08 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636530', 'tblTempUsageDetail_20' ) end [2025-03-08 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636530', 'tblTempVendorCDR_20' ) start [2025-03-08 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636530', 'tblTempVendorCDR_20' ) end [2025-03-08 16:58:18] Production.INFO: ProcessCDR(1,14636530,1,1,2) [2025-03-08 16:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636530', 'tblTempUsageDetail_20' ) start [2025-03-08 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636530', 'tblTempUsageDetail_20' ) end [2025-03-08 16:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:58:22] Production.INFO: ==24097== Releasing lock... [2025-03-08 16:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:58:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 13:59:05 [end_date_ymd] => 2025-03-08 16:59:05 [RateCDR] => 1 ) [2025-03-08 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 13:59:05' and `end` < '2025-03-08 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 16:59:18] Production.INFO: count ==1360 [2025-03-08 16:59:18] Production.ERROR: pbx CDR StartTime 2025-03-08 13:59:05 - End Time 2025-03-08 16:59:05 [2025-03-08 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636535', 'tblTempUsageDetail_20' ) start [2025-03-08 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636535', 'tblTempUsageDetail_20' ) end [2025-03-08 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636535', 'tblTempVendorCDR_20' ) start [2025-03-08 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636535', 'tblTempVendorCDR_20' ) end [2025-03-08 16:59:18] Production.INFO: ProcessCDR(1,14636535,1,1,2) [2025-03-08 16:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 16:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636535', 'tblTempUsageDetail_20' ) start [2025-03-08 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636535', 'tblTempUsageDetail_20' ) end [2025-03-08 16:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 16:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 16:59:23] Production.INFO: ==24172== Releasing lock... [2025-03-08 16:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 16:59:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:00:05 [end_date_ymd] => 2025-03-08 17:00:05 [RateCDR] => 1 ) [2025-03-08 17:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:00:05' and `end` < '2025-03-08 17:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:00:18] Production.INFO: count ==1374 [2025-03-08 17:00:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:00:05 - End Time 2025-03-08 17:00:05 [2025-03-08 17:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636540', 'tblTempUsageDetail_20' ) start [2025-03-08 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636540', 'tblTempUsageDetail_20' ) end [2025-03-08 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636540', 'tblTempVendorCDR_20' ) start [2025-03-08 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636540', 'tblTempVendorCDR_20' ) end [2025-03-08 17:00:18] Production.INFO: ProcessCDR(1,14636540,1,1,2) [2025-03-08 17:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636540', 'tblTempUsageDetail_20' ) start [2025-03-08 17:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636540', 'tblTempUsageDetail_20' ) end [2025-03-08 17:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:00:22] Production.INFO: ==24244== Releasing lock... [2025-03-08 17:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:00:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:01:05 [end_date_ymd] => 2025-03-08 17:01:05 [RateCDR] => 1 ) [2025-03-08 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:01:05' and `end` < '2025-03-08 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:01:18] Production.INFO: count ==1396 [2025-03-08 17:01:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:01:05 - End Time 2025-03-08 17:01:05 [2025-03-08 17:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636546', 'tblTempUsageDetail_20' ) start [2025-03-08 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636546', 'tblTempUsageDetail_20' ) end [2025-03-08 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636546', 'tblTempVendorCDR_20' ) start [2025-03-08 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636546', 'tblTempVendorCDR_20' ) end [2025-03-08 17:01:18] Production.INFO: ProcessCDR(1,14636546,1,1,2) [2025-03-08 17:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636546', 'tblTempUsageDetail_20' ) start [2025-03-08 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636546', 'tblTempUsageDetail_20' ) end [2025-03-08 17:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:01:23] Production.INFO: ==24336== Releasing lock... [2025-03-08 17:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:01:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:02:05 [end_date_ymd] => 2025-03-08 17:02:05 [RateCDR] => 1 ) [2025-03-08 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:02:05' and `end` < '2025-03-08 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:02:17] Production.INFO: count ==1399 [2025-03-08 17:02:17] Production.ERROR: pbx CDR StartTime 2025-03-08 14:02:05 - End Time 2025-03-08 17:02:05 [2025-03-08 17:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636551', 'tblTempUsageDetail_20' ) start [2025-03-08 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636551', 'tblTempUsageDetail_20' ) end [2025-03-08 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636551', 'tblTempVendorCDR_20' ) start [2025-03-08 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636551', 'tblTempVendorCDR_20' ) end [2025-03-08 17:02:17] Production.INFO: ProcessCDR(1,14636551,1,1,2) [2025-03-08 17:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636551', 'tblTempUsageDetail_20' ) start [2025-03-08 17:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636551', 'tblTempUsageDetail_20' ) end [2025-03-08 17:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:02:22] Production.INFO: ==24405== Releasing lock... [2025-03-08 17:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:02:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:03:05 [end_date_ymd] => 2025-03-08 17:03:05 [RateCDR] => 1 ) [2025-03-08 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:03:05' and `end` < '2025-03-08 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:03:17] Production.INFO: count ==1400 [2025-03-08 17:03:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:03:05 - End Time 2025-03-08 17:03:05 [2025-03-08 17:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636556', 'tblTempUsageDetail_20' ) start [2025-03-08 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636556', 'tblTempUsageDetail_20' ) end [2025-03-08 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636556', 'tblTempVendorCDR_20' ) start [2025-03-08 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636556', 'tblTempVendorCDR_20' ) end [2025-03-08 17:03:18] Production.INFO: ProcessCDR(1,14636556,1,1,2) [2025-03-08 17:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636556', 'tblTempUsageDetail_20' ) start [2025-03-08 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636556', 'tblTempUsageDetail_20' ) end [2025-03-08 17:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:03:23] Production.INFO: ==24478== Releasing lock... [2025-03-08 17:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:03:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:04:05 [end_date_ymd] => 2025-03-08 17:04:05 [RateCDR] => 1 ) [2025-03-08 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:04:05' and `end` < '2025-03-08 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:04:17] Production.INFO: count ==1397 [2025-03-08 17:04:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:04:05 - End Time 2025-03-08 17:04:05 [2025-03-08 17:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636561', 'tblTempUsageDetail_20' ) start [2025-03-08 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636561', 'tblTempUsageDetail_20' ) end [2025-03-08 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636561', 'tblTempVendorCDR_20' ) start [2025-03-08 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636561', 'tblTempVendorCDR_20' ) end [2025-03-08 17:04:18] Production.INFO: ProcessCDR(1,14636561,1,1,2) [2025-03-08 17:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636561', 'tblTempUsageDetail_20' ) start [2025-03-08 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636561', 'tblTempUsageDetail_20' ) end [2025-03-08 17:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:04:22] Production.INFO: ==24549== Releasing lock... [2025-03-08 17:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:04:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:05:05 [end_date_ymd] => 2025-03-08 17:05:05 [RateCDR] => 1 ) [2025-03-08 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:05:05' and `end` < '2025-03-08 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:05:18] Production.INFO: count ==1402 [2025-03-08 17:05:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:05:05 - End Time 2025-03-08 17:05:05 [2025-03-08 17:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636566', 'tblTempUsageDetail_20' ) start [2025-03-08 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636566', 'tblTempUsageDetail_20' ) end [2025-03-08 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636566', 'tblTempVendorCDR_20' ) start [2025-03-08 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636566', 'tblTempVendorCDR_20' ) end [2025-03-08 17:05:18] Production.INFO: ProcessCDR(1,14636566,1,1,2) [2025-03-08 17:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636566', 'tblTempUsageDetail_20' ) start [2025-03-08 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636566', 'tblTempUsageDetail_20' ) end [2025-03-08 17:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:05:23] Production.INFO: ==24618== Releasing lock... [2025-03-08 17:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:05:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:06:06 [end_date_ymd] => 2025-03-08 17:06:06 [RateCDR] => 1 ) [2025-03-08 17:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:06:06' and `end` < '2025-03-08 17:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:06:19] Production.INFO: count ==1409 [2025-03-08 17:06:19] Production.ERROR: pbx CDR StartTime 2025-03-08 14:06:06 - End Time 2025-03-08 17:06:06 [2025-03-08 17:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636571', 'tblTempUsageDetail_20' ) start [2025-03-08 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636571', 'tblTempUsageDetail_20' ) end [2025-03-08 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636571', 'tblTempVendorCDR_20' ) start [2025-03-08 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636571', 'tblTempVendorCDR_20' ) end [2025-03-08 17:06:19] Production.INFO: ProcessCDR(1,14636571,1,1,2) [2025-03-08 17:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636571', 'tblTempUsageDetail_20' ) start [2025-03-08 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636571', 'tblTempUsageDetail_20' ) end [2025-03-08 17:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:06:24] Production.INFO: ==24693== Releasing lock... [2025-03-08 17:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:06:24] Production.INFO: 39 MB #Memory Used# [2025-03-08 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:07:05 [end_date_ymd] => 2025-03-08 17:07:05 [RateCDR] => 1 ) [2025-03-08 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:07:05' and `end` < '2025-03-08 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:07:17] Production.INFO: count ==1402 [2025-03-08 17:07:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:07:05 - End Time 2025-03-08 17:07:05 [2025-03-08 17:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636576', 'tblTempUsageDetail_20' ) start [2025-03-08 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636576', 'tblTempUsageDetail_20' ) end [2025-03-08 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636576', 'tblTempVendorCDR_20' ) start [2025-03-08 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636576', 'tblTempVendorCDR_20' ) end [2025-03-08 17:07:18] Production.INFO: ProcessCDR(1,14636576,1,1,2) [2025-03-08 17:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636576', 'tblTempUsageDetail_20' ) start [2025-03-08 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636576', 'tblTempUsageDetail_20' ) end [2025-03-08 17:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:07:23] Production.INFO: ==24763== Releasing lock... [2025-03-08 17:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:07:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:08:05 [end_date_ymd] => 2025-03-08 17:08:05 [RateCDR] => 1 ) [2025-03-08 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:08:05' and `end` < '2025-03-08 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:08:18] Production.INFO: count ==1401 [2025-03-08 17:08:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:08:05 - End Time 2025-03-08 17:08:05 [2025-03-08 17:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636581', 'tblTempUsageDetail_20' ) start [2025-03-08 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636581', 'tblTempUsageDetail_20' ) end [2025-03-08 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636581', 'tblTempVendorCDR_20' ) start [2025-03-08 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636581', 'tblTempVendorCDR_20' ) end [2025-03-08 17:08:18] Production.INFO: ProcessCDR(1,14636581,1,1,2) [2025-03-08 17:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636581', 'tblTempUsageDetail_20' ) start [2025-03-08 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636581', 'tblTempUsageDetail_20' ) end [2025-03-08 17:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:08:23] Production.INFO: ==24836== Releasing lock... [2025-03-08 17:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:08:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:09:05 [end_date_ymd] => 2025-03-08 17:09:05 [RateCDR] => 1 ) [2025-03-08 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:09:05' and `end` < '2025-03-08 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:09:17] Production.INFO: count ==1393 [2025-03-08 17:09:17] Production.ERROR: pbx CDR StartTime 2025-03-08 14:09:05 - End Time 2025-03-08 17:09:05 [2025-03-08 17:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636586', 'tblTempUsageDetail_20' ) start [2025-03-08 17:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636586', 'tblTempUsageDetail_20' ) end [2025-03-08 17:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636586', 'tblTempVendorCDR_20' ) start [2025-03-08 17:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636586', 'tblTempVendorCDR_20' ) end [2025-03-08 17:09:17] Production.INFO: ProcessCDR(1,14636586,1,1,2) [2025-03-08 17:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636586', 'tblTempUsageDetail_20' ) start [2025-03-08 17:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636586', 'tblTempUsageDetail_20' ) end [2025-03-08 17:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:09:20] Production.INFO: ==24908== Releasing lock... [2025-03-08 17:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:09:20] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:10:06 [end_date_ymd] => 2025-03-08 17:10:06 [RateCDR] => 1 ) [2025-03-08 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:10:06' and `end` < '2025-03-08 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:10:18] Production.INFO: count ==1396 [2025-03-08 17:10:19] Production.ERROR: pbx CDR StartTime 2025-03-08 14:10:06 - End Time 2025-03-08 17:10:06 [2025-03-08 17:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636591', 'tblTempUsageDetail_20' ) start [2025-03-08 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636591', 'tblTempUsageDetail_20' ) end [2025-03-08 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636591', 'tblTempVendorCDR_20' ) start [2025-03-08 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636591', 'tblTempVendorCDR_20' ) end [2025-03-08 17:10:19] Production.INFO: ProcessCDR(1,14636591,1,1,2) [2025-03-08 17:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636591', 'tblTempUsageDetail_20' ) start [2025-03-08 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636591', 'tblTempUsageDetail_20' ) end [2025-03-08 17:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:10:23] Production.INFO: ==24984== Releasing lock... [2025-03-08 17:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:10:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 17:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:11:04 [end_date_ymd] => 2025-03-08 17:11:04 [RateCDR] => 1 ) [2025-03-08 17:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:11:04' and `end` < '2025-03-08 17:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:11:17] Production.INFO: count ==1432 [2025-03-08 17:11:17] Production.ERROR: pbx CDR StartTime 2025-03-08 14:11:04 - End Time 2025-03-08 17:11:04 [2025-03-08 17:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636597', 'tblTempUsageDetail_20' ) start [2025-03-08 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636597', 'tblTempUsageDetail_20' ) end [2025-03-08 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636597', 'tblTempVendorCDR_20' ) start [2025-03-08 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636597', 'tblTempVendorCDR_20' ) end [2025-03-08 17:11:17] Production.INFO: ProcessCDR(1,14636597,1,1,2) [2025-03-08 17:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636597', 'tblTempUsageDetail_20' ) start [2025-03-08 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636597', 'tblTempUsageDetail_20' ) end [2025-03-08 17:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:11:22] Production.INFO: ==25056== Releasing lock... [2025-03-08 17:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:11:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:12:05 [end_date_ymd] => 2025-03-08 17:12:05 [RateCDR] => 1 ) [2025-03-08 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:12:05' and `end` < '2025-03-08 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:12:18] Production.INFO: count ==1432 [2025-03-08 17:12:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:12:05 - End Time 2025-03-08 17:12:05 [2025-03-08 17:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636602', 'tblTempUsageDetail_20' ) start [2025-03-08 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636602', 'tblTempUsageDetail_20' ) end [2025-03-08 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636602', 'tblTempVendorCDR_20' ) start [2025-03-08 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636602', 'tblTempVendorCDR_20' ) end [2025-03-08 17:12:18] Production.INFO: ProcessCDR(1,14636602,1,1,2) [2025-03-08 17:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636602', 'tblTempUsageDetail_20' ) start [2025-03-08 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636602', 'tblTempUsageDetail_20' ) end [2025-03-08 17:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:12:22] Production.INFO: ==25135== Releasing lock... [2025-03-08 17:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:12:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:13:05 [end_date_ymd] => 2025-03-08 17:13:05 [RateCDR] => 1 ) [2025-03-08 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:13:05' and `end` < '2025-03-08 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:13:17] Production.INFO: count ==1427 [2025-03-08 17:13:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:13:05 - End Time 2025-03-08 17:13:05 [2025-03-08 17:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636607', 'tblTempUsageDetail_20' ) start [2025-03-08 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636607', 'tblTempUsageDetail_20' ) end [2025-03-08 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636607', 'tblTempVendorCDR_20' ) start [2025-03-08 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636607', 'tblTempVendorCDR_20' ) end [2025-03-08 17:13:18] Production.INFO: ProcessCDR(1,14636607,1,1,2) [2025-03-08 17:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636607', 'tblTempUsageDetail_20' ) start [2025-03-08 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636607', 'tblTempUsageDetail_20' ) end [2025-03-08 17:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:13:22] Production.INFO: ==25208== Releasing lock... [2025-03-08 17:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:13:22] Production.INFO: 39 MB #Memory Used# [2025-03-08 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:14:05 [end_date_ymd] => 2025-03-08 17:14:05 [RateCDR] => 1 ) [2025-03-08 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:14:05' and `end` < '2025-03-08 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:14:17] Production.INFO: count ==1433 [2025-03-08 17:14:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:14:05 - End Time 2025-03-08 17:14:05 [2025-03-08 17:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636612', 'tblTempUsageDetail_20' ) start [2025-03-08 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636612', 'tblTempUsageDetail_20' ) end [2025-03-08 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636612', 'tblTempVendorCDR_20' ) start [2025-03-08 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636612', 'tblTempVendorCDR_20' ) end [2025-03-08 17:14:18] Production.INFO: ProcessCDR(1,14636612,1,1,2) [2025-03-08 17:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636612', 'tblTempUsageDetail_20' ) start [2025-03-08 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636612', 'tblTempUsageDetail_20' ) end [2025-03-08 17:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:14:23] Production.INFO: ==25324== Releasing lock... [2025-03-08 17:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:14:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:15:05 [end_date_ymd] => 2025-03-08 17:15:05 [RateCDR] => 1 ) [2025-03-08 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:15:05' and `end` < '2025-03-08 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:15:17] Production.INFO: count ==1431 [2025-03-08 17:15:17] Production.ERROR: pbx CDR StartTime 2025-03-08 14:15:05 - End Time 2025-03-08 17:15:05 [2025-03-08 17:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636617', 'tblTempUsageDetail_20' ) start [2025-03-08 17:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636617', 'tblTempUsageDetail_20' ) end [2025-03-08 17:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636617', 'tblTempVendorCDR_20' ) start [2025-03-08 17:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636617', 'tblTempVendorCDR_20' ) end [2025-03-08 17:15:17] Production.INFO: ProcessCDR(1,14636617,1,1,2) [2025-03-08 17:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636617', 'tblTempUsageDetail_20' ) start [2025-03-08 17:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636617', 'tblTempUsageDetail_20' ) end [2025-03-08 17:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:15:20] Production.INFO: ==25410== Releasing lock... [2025-03-08 17:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:15:20] Production.INFO: 38.75 MB #Memory Used# [2025-03-08 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:16:05 [end_date_ymd] => 2025-03-08 17:16:05 [RateCDR] => 1 ) [2025-03-08 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:16:05' and `end` < '2025-03-08 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:16:17] Production.INFO: count ==1443 [2025-03-08 17:16:17] Production.ERROR: pbx CDR StartTime 2025-03-08 14:16:05 - End Time 2025-03-08 17:16:05 [2025-03-08 17:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636622', 'tblTempUsageDetail_20' ) start [2025-03-08 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636622', 'tblTempUsageDetail_20' ) end [2025-03-08 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636622', 'tblTempVendorCDR_20' ) start [2025-03-08 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636622', 'tblTempVendorCDR_20' ) end [2025-03-08 17:16:18] Production.INFO: ProcessCDR(1,14636622,1,1,2) [2025-03-08 17:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636622', 'tblTempUsageDetail_20' ) start [2025-03-08 17:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636622', 'tblTempUsageDetail_20' ) end [2025-03-08 17:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:16:22] Production.INFO: ==25487== Releasing lock... [2025-03-08 17:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:16:22] Production.INFO: 39 MB #Memory Used# [2025-03-08 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:17:06 [end_date_ymd] => 2025-03-08 17:17:06 [RateCDR] => 1 ) [2025-03-08 17:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:17:06' and `end` < '2025-03-08 17:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:17:18] Production.INFO: count ==1484 [2025-03-08 17:17:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:17:06 - End Time 2025-03-08 17:17:06 [2025-03-08 17:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636627', 'tblTempUsageDetail_20' ) start [2025-03-08 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636627', 'tblTempUsageDetail_20' ) end [2025-03-08 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636627', 'tblTempVendorCDR_20' ) start [2025-03-08 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636627', 'tblTempVendorCDR_20' ) end [2025-03-08 17:17:18] Production.INFO: ProcessCDR(1,14636627,1,1,2) [2025-03-08 17:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636627', 'tblTempUsageDetail_20' ) start [2025-03-08 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636627', 'tblTempUsageDetail_20' ) end [2025-03-08 17:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:17:23] Production.INFO: ==25558== Releasing lock... [2025-03-08 17:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:17:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-08 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:18:05 [end_date_ymd] => 2025-03-08 17:18:05 [RateCDR] => 1 ) [2025-03-08 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:18:05' and `end` < '2025-03-08 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:18:17] Production.INFO: count ==1544 [2025-03-08 17:18:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:18:05 - End Time 2025-03-08 17:18:05 [2025-03-08 17:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636632', 'tblTempUsageDetail_20' ) start [2025-03-08 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636632', 'tblTempUsageDetail_20' ) end [2025-03-08 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636632', 'tblTempVendorCDR_20' ) start [2025-03-08 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636632', 'tblTempVendorCDR_20' ) end [2025-03-08 17:18:18] Production.INFO: ProcessCDR(1,14636632,1,1,2) [2025-03-08 17:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636632', 'tblTempUsageDetail_20' ) start [2025-03-08 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636632', 'tblTempUsageDetail_20' ) end [2025-03-08 17:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:18:23] Production.INFO: ==25632== Releasing lock... [2025-03-08 17:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:18:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:19:06 [end_date_ymd] => 2025-03-08 17:19:06 [RateCDR] => 1 ) [2025-03-08 17:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:19:06' and `end` < '2025-03-08 17:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:19:18] Production.INFO: count ==1546 [2025-03-08 17:19:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:19:06 - End Time 2025-03-08 17:19:06 [2025-03-08 17:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636637', 'tblTempUsageDetail_20' ) start [2025-03-08 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636637', 'tblTempUsageDetail_20' ) end [2025-03-08 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636637', 'tblTempVendorCDR_20' ) start [2025-03-08 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636637', 'tblTempVendorCDR_20' ) end [2025-03-08 17:19:18] Production.INFO: ProcessCDR(1,14636637,1,1,2) [2025-03-08 17:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636637', 'tblTempUsageDetail_20' ) start [2025-03-08 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636637', 'tblTempUsageDetail_20' ) end [2025-03-08 17:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:19:24] Production.INFO: ==25708== Releasing lock... [2025-03-08 17:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:19:24] Production.INFO: 40 MB #Memory Used# [2025-03-08 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:20:05 [end_date_ymd] => 2025-03-08 17:20:05 [RateCDR] => 1 ) [2025-03-08 17:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:20:05' and `end` < '2025-03-08 17:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:20:18] Production.INFO: count ==1548 [2025-03-08 17:20:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:20:05 - End Time 2025-03-08 17:20:05 [2025-03-08 17:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636643', 'tblTempUsageDetail_20' ) start [2025-03-08 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636643', 'tblTempUsageDetail_20' ) end [2025-03-08 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636643', 'tblTempVendorCDR_20' ) start [2025-03-08 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636643', 'tblTempVendorCDR_20' ) end [2025-03-08 17:20:18] Production.INFO: ProcessCDR(1,14636643,1,1,2) [2025-03-08 17:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636643', 'tblTempUsageDetail_20' ) start [2025-03-08 17:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636643', 'tblTempUsageDetail_20' ) end [2025-03-08 17:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:20:22] Production.INFO: ==25783== Releasing lock... [2025-03-08 17:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:20:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:21:05 [end_date_ymd] => 2025-03-08 17:21:05 [RateCDR] => 1 ) [2025-03-08 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:21:05' and `end` < '2025-03-08 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:21:17] Production.INFO: count ==1601 [2025-03-08 17:21:17] Production.ERROR: pbx CDR StartTime 2025-03-08 14:21:05 - End Time 2025-03-08 17:21:05 [2025-03-08 17:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636648', 'tblTempUsageDetail_20' ) start [2025-03-08 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636648', 'tblTempUsageDetail_20' ) end [2025-03-08 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636648', 'tblTempVendorCDR_20' ) start [2025-03-08 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636648', 'tblTempVendorCDR_20' ) end [2025-03-08 17:21:18] Production.INFO: ProcessCDR(1,14636648,1,1,2) [2025-03-08 17:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636648', 'tblTempUsageDetail_20' ) start [2025-03-08 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636648', 'tblTempUsageDetail_20' ) end [2025-03-08 17:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:21:22] Production.INFO: ==25862== Releasing lock... [2025-03-08 17:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:21:22] Production.INFO: 40 MB #Memory Used# [2025-03-08 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:22:05 [end_date_ymd] => 2025-03-08 17:22:05 [RateCDR] => 1 ) [2025-03-08 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:22:05' and `end` < '2025-03-08 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:22:17] Production.INFO: count ==1608 [2025-03-08 17:22:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:22:05 - End Time 2025-03-08 17:22:05 [2025-03-08 17:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636653', 'tblTempUsageDetail_20' ) start [2025-03-08 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636653', 'tblTempUsageDetail_20' ) end [2025-03-08 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636653', 'tblTempVendorCDR_20' ) start [2025-03-08 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636653', 'tblTempVendorCDR_20' ) end [2025-03-08 17:22:18] Production.INFO: ProcessCDR(1,14636653,1,1,2) [2025-03-08 17:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636653', 'tblTempUsageDetail_20' ) start [2025-03-08 17:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636653', 'tblTempUsageDetail_20' ) end [2025-03-08 17:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:22:22] Production.INFO: ==25936== Releasing lock... [2025-03-08 17:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:22:22] Production.INFO: 40 MB #Memory Used# [2025-03-08 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:23:05 [end_date_ymd] => 2025-03-08 17:23:05 [RateCDR] => 1 ) [2025-03-08 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:23:05' and `end` < '2025-03-08 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:23:18] Production.INFO: count ==1606 [2025-03-08 17:23:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:23:05 - End Time 2025-03-08 17:23:05 [2025-03-08 17:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636658', 'tblTempUsageDetail_20' ) start [2025-03-08 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636658', 'tblTempUsageDetail_20' ) end [2025-03-08 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636658', 'tblTempVendorCDR_20' ) start [2025-03-08 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636658', 'tblTempVendorCDR_20' ) end [2025-03-08 17:23:18] Production.INFO: ProcessCDR(1,14636658,1,1,2) [2025-03-08 17:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636658', 'tblTempUsageDetail_20' ) start [2025-03-08 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636658', 'tblTempUsageDetail_20' ) end [2025-03-08 17:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:23:23] Production.INFO: ==26009== Releasing lock... [2025-03-08 17:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:23:23] Production.INFO: 40 MB #Memory Used# [2025-03-08 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:24:05 [end_date_ymd] => 2025-03-08 17:24:05 [RateCDR] => 1 ) [2025-03-08 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:24:05' and `end` < '2025-03-08 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:24:17] Production.INFO: count ==1606 [2025-03-08 17:24:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:24:05 - End Time 2025-03-08 17:24:05 [2025-03-08 17:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636663', 'tblTempUsageDetail_20' ) start [2025-03-08 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636663', 'tblTempUsageDetail_20' ) end [2025-03-08 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636663', 'tblTempVendorCDR_20' ) start [2025-03-08 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636663', 'tblTempVendorCDR_20' ) end [2025-03-08 17:24:18] Production.INFO: ProcessCDR(1,14636663,1,1,2) [2025-03-08 17:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636663', 'tblTempUsageDetail_20' ) start [2025-03-08 17:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636663', 'tblTempUsageDetail_20' ) end [2025-03-08 17:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:24:22] Production.INFO: ==26085== Releasing lock... [2025-03-08 17:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:24:22] Production.INFO: 40 MB #Memory Used# [2025-03-08 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:25:05 [end_date_ymd] => 2025-03-08 17:25:05 [RateCDR] => 1 ) [2025-03-08 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:25:05' and `end` < '2025-03-08 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:25:18] Production.INFO: count ==1602 [2025-03-08 17:25:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:25:05 - End Time 2025-03-08 17:25:05 [2025-03-08 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636668', 'tblTempUsageDetail_20' ) start [2025-03-08 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636668', 'tblTempUsageDetail_20' ) end [2025-03-08 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636668', 'tblTempVendorCDR_20' ) start [2025-03-08 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636668', 'tblTempVendorCDR_20' ) end [2025-03-08 17:25:18] Production.INFO: ProcessCDR(1,14636668,1,1,2) [2025-03-08 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636668', 'tblTempUsageDetail_20' ) start [2025-03-08 17:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636668', 'tblTempUsageDetail_20' ) end [2025-03-08 17:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:25:21] Production.INFO: ==26163== Releasing lock... [2025-03-08 17:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:25:21] Production.INFO: 40 MB #Memory Used# [2025-03-08 17:26:25] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:26:24 [end_date_ymd] => 2025-03-08 17:26:24 [RateCDR] => 1 ) [2025-03-08 17:26:25] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:26:24' and `end` < '2025-03-08 17:26:24' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:26:37] Production.INFO: count ==1602 [2025-03-08 17:26:53] Production.ERROR: pbx CDR StartTime 2025-03-08 14:26:24 - End Time 2025-03-08 17:26:24 [2025-03-08 17:26:53] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:26:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636673', 'tblTempUsageDetail_20' ) start [2025-03-08 17:26:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636673', 'tblTempUsageDetail_20' ) end [2025-03-08 17:26:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636673', 'tblTempVendorCDR_20' ) start [2025-03-08 17:26:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636673', 'tblTempVendorCDR_20' ) end [2025-03-08 17:26:55] Production.INFO: ProcessCDR(1,14636673,1,1,2) [2025-03-08 17:26:55] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:27:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:27:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:28:04] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:28:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636673', 'tblTempUsageDetail_20' ) start [2025-03-08 17:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636673', 'tblTempUsageDetail_20' ) end [2025-03-08 17:28:19] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:28:22] Production.INFO: ==26237== Releasing lock... [2025-03-08 17:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:28:22] Production.INFO: 40 MB #Memory Used# [2025-03-08 17:29:23] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:29:23 [end_date_ymd] => 2025-03-08 17:29:23 [RateCDR] => 1 ) [2025-03-08 17:29:23] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:29:23' and `end` < '2025-03-08 17:29:23' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:29:35] Production.INFO: count ==1608 [2025-03-08 17:29:54] Production.ERROR: pbx CDR StartTime 2025-03-08 14:29:23 - End Time 2025-03-08 17:29:23 [2025-03-08 17:29:54] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:29:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636684', 'tblTempUsageDetail_20' ) start [2025-03-08 17:29:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636684', 'tblTempUsageDetail_20' ) end [2025-03-08 17:29:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636684', 'tblTempVendorCDR_20' ) start [2025-03-08 17:29:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636684', 'tblTempVendorCDR_20' ) end [2025-03-08 17:29:54] Production.INFO: ProcessCDR(1,14636684,1,1,2) [2025-03-08 17:29:54] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:30:14] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:30:14] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636684', 'tblTempUsageDetail_20' ) start [2025-03-08 17:30:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636684', 'tblTempUsageDetail_20' ) end [2025-03-08 17:30:44] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:30:44] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:30:49] Production.INFO: ==26483== Releasing lock... [2025-03-08 17:30:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:30:49] Production.INFO: 39.75 MB #Memory Used# [2025-03-08 17:31:18] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:31:18 [end_date_ymd] => 2025-03-08 17:31:18 [RateCDR] => 1 ) [2025-03-08 17:31:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:31:18' and `end` < '2025-03-08 17:31:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:31:30] Production.INFO: count ==1647 [2025-03-08 17:31:45] Production.ERROR: pbx CDR StartTime 2025-03-08 14:31:18 - End Time 2025-03-08 17:31:18 [2025-03-08 17:31:45] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:31:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636692', 'tblTempUsageDetail_20' ) start [2025-03-08 17:31:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636692', 'tblTempUsageDetail_20' ) end [2025-03-08 17:31:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636692', 'tblTempVendorCDR_20' ) start [2025-03-08 17:31:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636692', 'tblTempVendorCDR_20' ) end [2025-03-08 17:31:45] Production.INFO: ProcessCDR(1,14636692,1,1,2) [2025-03-08 17:31:45] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:31:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:31:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636692', 'tblTempUsageDetail_20' ) start [2025-03-08 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636692', 'tblTempUsageDetail_20' ) end [2025-03-08 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:32:33] Production.INFO: ==26622== Releasing lock... [2025-03-08 17:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:32:33] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 17:33:16] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:33:16 [end_date_ymd] => 2025-03-08 17:33:16 [RateCDR] => 1 ) [2025-03-08 17:33:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:33:16' and `end` < '2025-03-08 17:33:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:33:28] Production.INFO: count ==1645 [2025-03-08 17:33:34] Production.ERROR: pbx CDR StartTime 2025-03-08 14:33:16 - End Time 2025-03-08 17:33:16 [2025-03-08 17:33:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636700', 'tblTempUsageDetail_20' ) start [2025-03-08 17:33:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636700', 'tblTempUsageDetail_20' ) end [2025-03-08 17:33:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636700', 'tblTempVendorCDR_20' ) start [2025-03-08 17:33:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636700', 'tblTempVendorCDR_20' ) end [2025-03-08 17:33:37] Production.INFO: ProcessCDR(1,14636700,1,1,2) [2025-03-08 17:33:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:33:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:33:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:33:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:33:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636700', 'tblTempUsageDetail_20' ) start [2025-03-08 17:33:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636700', 'tblTempUsageDetail_20' ) end [2025-03-08 17:33:56] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:33:56] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:33:56] Production.INFO: ==26759== Releasing lock... [2025-03-08 17:33:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:33:56] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:34:05 [end_date_ymd] => 2025-03-08 17:34:05 [RateCDR] => 1 ) [2025-03-08 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:34:05' and `end` < '2025-03-08 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:34:18] Production.INFO: count ==1642 [2025-03-08 17:34:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:34:05 - End Time 2025-03-08 17:34:05 [2025-03-08 17:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636705', 'tblTempUsageDetail_20' ) start [2025-03-08 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636705', 'tblTempUsageDetail_20' ) end [2025-03-08 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636705', 'tblTempVendorCDR_20' ) start [2025-03-08 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636705', 'tblTempVendorCDR_20' ) end [2025-03-08 17:34:18] Production.INFO: ProcessCDR(1,14636705,1,1,2) [2025-03-08 17:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636705', 'tblTempUsageDetail_20' ) start [2025-03-08 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636705', 'tblTempUsageDetail_20' ) end [2025-03-08 17:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:34:24] Production.INFO: ==26842== Releasing lock... [2025-03-08 17:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:34:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:35:05 [end_date_ymd] => 2025-03-08 17:35:05 [RateCDR] => 1 ) [2025-03-08 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:35:05' and `end` < '2025-03-08 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:35:17] Production.INFO: count ==1643 [2025-03-08 17:35:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:35:05 - End Time 2025-03-08 17:35:05 [2025-03-08 17:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636710', 'tblTempUsageDetail_20' ) start [2025-03-08 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636710', 'tblTempUsageDetail_20' ) end [2025-03-08 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636710', 'tblTempVendorCDR_20' ) start [2025-03-08 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636710', 'tblTempVendorCDR_20' ) end [2025-03-08 17:35:18] Production.INFO: ProcessCDR(1,14636710,1,1,2) [2025-03-08 17:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636710', 'tblTempUsageDetail_20' ) start [2025-03-08 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636710', 'tblTempUsageDetail_20' ) end [2025-03-08 17:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:35:23] Production.INFO: ==26924== Releasing lock... [2025-03-08 17:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:35:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:36:05 [end_date_ymd] => 2025-03-08 17:36:05 [RateCDR] => 1 ) [2025-03-08 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:36:05' and `end` < '2025-03-08 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:36:17] Production.INFO: count ==1643 [2025-03-08 17:36:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:36:05 - End Time 2025-03-08 17:36:05 [2025-03-08 17:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636715', 'tblTempUsageDetail_20' ) start [2025-03-08 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636715', 'tblTempUsageDetail_20' ) end [2025-03-08 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636715', 'tblTempVendorCDR_20' ) start [2025-03-08 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636715', 'tblTempVendorCDR_20' ) end [2025-03-08 17:36:18] Production.INFO: ProcessCDR(1,14636715,1,1,2) [2025-03-08 17:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636715', 'tblTempUsageDetail_20' ) start [2025-03-08 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636715', 'tblTempUsageDetail_20' ) end [2025-03-08 17:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:36:23] Production.INFO: ==26997== Releasing lock... [2025-03-08 17:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:36:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-08 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:37:05 [end_date_ymd] => 2025-03-08 17:37:05 [RateCDR] => 1 ) [2025-03-08 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:37:05' and `end` < '2025-03-08 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:37:17] Production.INFO: count ==1644 [2025-03-08 17:37:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:37:05 - End Time 2025-03-08 17:37:05 [2025-03-08 17:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636720', 'tblTempUsageDetail_20' ) start [2025-03-08 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636720', 'tblTempUsageDetail_20' ) end [2025-03-08 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636720', 'tblTempVendorCDR_20' ) start [2025-03-08 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636720', 'tblTempVendorCDR_20' ) end [2025-03-08 17:37:18] Production.INFO: ProcessCDR(1,14636720,1,1,2) [2025-03-08 17:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636720', 'tblTempUsageDetail_20' ) start [2025-03-08 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636720', 'tblTempUsageDetail_20' ) end [2025-03-08 17:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:37:23] Production.INFO: ==27074== Releasing lock... [2025-03-08 17:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:37:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:38:05 [end_date_ymd] => 2025-03-08 17:38:05 [RateCDR] => 1 ) [2025-03-08 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:38:05' and `end` < '2025-03-08 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:38:17] Production.INFO: count ==1651 [2025-03-08 17:38:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:38:05 - End Time 2025-03-08 17:38:05 [2025-03-08 17:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636725', 'tblTempUsageDetail_20' ) start [2025-03-08 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636725', 'tblTempUsageDetail_20' ) end [2025-03-08 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636725', 'tblTempVendorCDR_20' ) start [2025-03-08 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636725', 'tblTempVendorCDR_20' ) end [2025-03-08 17:38:18] Production.INFO: ProcessCDR(1,14636725,1,1,2) [2025-03-08 17:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636725', 'tblTempUsageDetail_20' ) start [2025-03-08 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636725', 'tblTempUsageDetail_20' ) end [2025-03-08 17:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:38:23] Production.INFO: ==27149== Releasing lock... [2025-03-08 17:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:38:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:39:05 [end_date_ymd] => 2025-03-08 17:39:05 [RateCDR] => 1 ) [2025-03-08 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:39:05' and `end` < '2025-03-08 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:39:17] Production.INFO: count ==1651 [2025-03-08 17:39:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:39:05 - End Time 2025-03-08 17:39:05 [2025-03-08 17:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636730', 'tblTempUsageDetail_20' ) start [2025-03-08 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636730', 'tblTempUsageDetail_20' ) end [2025-03-08 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636730', 'tblTempVendorCDR_20' ) start [2025-03-08 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636730', 'tblTempVendorCDR_20' ) end [2025-03-08 17:39:18] Production.INFO: ProcessCDR(1,14636730,1,1,2) [2025-03-08 17:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636730', 'tblTempUsageDetail_20' ) start [2025-03-08 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636730', 'tblTempUsageDetail_20' ) end [2025-03-08 17:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:39:23] Production.INFO: ==27222== Releasing lock... [2025-03-08 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:39:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:40:06 [end_date_ymd] => 2025-03-08 17:40:06 [RateCDR] => 1 ) [2025-03-08 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:40:06' and `end` < '2025-03-08 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:40:19] Production.INFO: count ==1638 [2025-03-08 17:40:19] Production.ERROR: pbx CDR StartTime 2025-03-08 14:40:06 - End Time 2025-03-08 17:40:06 [2025-03-08 17:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636735', 'tblTempUsageDetail_20' ) start [2025-03-08 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636735', 'tblTempUsageDetail_20' ) end [2025-03-08 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636735', 'tblTempVendorCDR_20' ) start [2025-03-08 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636735', 'tblTempVendorCDR_20' ) end [2025-03-08 17:40:19] Production.INFO: ProcessCDR(1,14636735,1,1,2) [2025-03-08 17:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636735', 'tblTempUsageDetail_20' ) start [2025-03-08 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636735', 'tblTempUsageDetail_20' ) end [2025-03-08 17:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:40:25] Production.INFO: ==27296== Releasing lock... [2025-03-08 17:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:40:25] Production.INFO: 40 MB #Memory Used# [2025-03-08 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:41:05 [end_date_ymd] => 2025-03-08 17:41:05 [RateCDR] => 1 ) [2025-03-08 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:41:05' and `end` < '2025-03-08 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:41:17] Production.INFO: count ==1644 [2025-03-08 17:41:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:41:05 - End Time 2025-03-08 17:41:05 [2025-03-08 17:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636741', 'tblTempUsageDetail_20' ) start [2025-03-08 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636741', 'tblTempUsageDetail_20' ) end [2025-03-08 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636741', 'tblTempVendorCDR_20' ) start [2025-03-08 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636741', 'tblTempVendorCDR_20' ) end [2025-03-08 17:41:18] Production.INFO: ProcessCDR(1,14636741,1,1,2) [2025-03-08 17:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636741', 'tblTempUsageDetail_20' ) start [2025-03-08 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636741', 'tblTempUsageDetail_20' ) end [2025-03-08 17:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:41:23] Production.INFO: ==27375== Releasing lock... [2025-03-08 17:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:41:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:42:05 [end_date_ymd] => 2025-03-08 17:42:05 [RateCDR] => 1 ) [2025-03-08 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:42:05' and `end` < '2025-03-08 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:42:18] Production.INFO: count ==1644 [2025-03-08 17:42:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:42:05 - End Time 2025-03-08 17:42:05 [2025-03-08 17:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636746', 'tblTempUsageDetail_20' ) start [2025-03-08 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636746', 'tblTempUsageDetail_20' ) end [2025-03-08 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636746', 'tblTempVendorCDR_20' ) start [2025-03-08 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636746', 'tblTempVendorCDR_20' ) end [2025-03-08 17:42:18] Production.INFO: ProcessCDR(1,14636746,1,1,2) [2025-03-08 17:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636746', 'tblTempUsageDetail_20' ) start [2025-03-08 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636746', 'tblTempUsageDetail_20' ) end [2025-03-08 17:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:42:23] Production.INFO: ==27447== Releasing lock... [2025-03-08 17:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:42:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-08 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:43:05 [end_date_ymd] => 2025-03-08 17:43:05 [RateCDR] => 1 ) [2025-03-08 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:43:05' and `end` < '2025-03-08 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:43:17] Production.INFO: count ==1643 [2025-03-08 17:43:17] Production.ERROR: pbx CDR StartTime 2025-03-08 14:43:05 - End Time 2025-03-08 17:43:05 [2025-03-08 17:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636751', 'tblTempUsageDetail_20' ) start [2025-03-08 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636751', 'tblTempUsageDetail_20' ) end [2025-03-08 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636751', 'tblTempVendorCDR_20' ) start [2025-03-08 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636751', 'tblTempVendorCDR_20' ) end [2025-03-08 17:43:18] Production.INFO: ProcessCDR(1,14636751,1,1,2) [2025-03-08 17:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636751', 'tblTempUsageDetail_20' ) start [2025-03-08 17:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636751', 'tblTempUsageDetail_20' ) end [2025-03-08 17:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:43:21] Production.INFO: ==27525== Releasing lock... [2025-03-08 17:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:43:21] Production.INFO: 40 MB #Memory Used# [2025-03-08 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:44:05 [end_date_ymd] => 2025-03-08 17:44:05 [RateCDR] => 1 ) [2025-03-08 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:44:05' and `end` < '2025-03-08 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:44:17] Production.INFO: count ==1642 [2025-03-08 17:44:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:44:05 - End Time 2025-03-08 17:44:05 [2025-03-08 17:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636756', 'tblTempUsageDetail_20' ) start [2025-03-08 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636756', 'tblTempUsageDetail_20' ) end [2025-03-08 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636756', 'tblTempVendorCDR_20' ) start [2025-03-08 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636756', 'tblTempVendorCDR_20' ) end [2025-03-08 17:44:18] Production.INFO: ProcessCDR(1,14636756,1,1,2) [2025-03-08 17:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636756', 'tblTempUsageDetail_20' ) start [2025-03-08 17:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636756', 'tblTempUsageDetail_20' ) end [2025-03-08 17:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:44:21] Production.INFO: ==27602== Releasing lock... [2025-03-08 17:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:44:21] Production.INFO: 40 MB #Memory Used# [2025-03-08 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:45:05 [end_date_ymd] => 2025-03-08 17:45:05 [RateCDR] => 1 ) [2025-03-08 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:45:05' and `end` < '2025-03-08 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:45:17] Production.INFO: count ==1642 [2025-03-08 17:45:17] Production.ERROR: pbx CDR StartTime 2025-03-08 14:45:05 - End Time 2025-03-08 17:45:05 [2025-03-08 17:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636761', 'tblTempUsageDetail_20' ) start [2025-03-08 17:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636761', 'tblTempUsageDetail_20' ) end [2025-03-08 17:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636761', 'tblTempVendorCDR_20' ) start [2025-03-08 17:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636761', 'tblTempVendorCDR_20' ) end [2025-03-08 17:45:17] Production.INFO: ProcessCDR(1,14636761,1,1,2) [2025-03-08 17:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636761', 'tblTempUsageDetail_20' ) start [2025-03-08 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636761', 'tblTempUsageDetail_20' ) end [2025-03-08 17:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:45:23] Production.INFO: ==27714== Releasing lock... [2025-03-08 17:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:45:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:46:05 [end_date_ymd] => 2025-03-08 17:46:05 [RateCDR] => 1 ) [2025-03-08 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:46:05' and `end` < '2025-03-08 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:46:17] Production.INFO: count ==1637 [2025-03-08 17:46:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:46:05 - End Time 2025-03-08 17:46:05 [2025-03-08 17:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636766', 'tblTempUsageDetail_20' ) start [2025-03-08 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636766', 'tblTempUsageDetail_20' ) end [2025-03-08 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636766', 'tblTempVendorCDR_20' ) start [2025-03-08 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636766', 'tblTempVendorCDR_20' ) end [2025-03-08 17:46:18] Production.INFO: ProcessCDR(1,14636766,1,1,2) [2025-03-08 17:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636766', 'tblTempUsageDetail_20' ) start [2025-03-08 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636766', 'tblTempUsageDetail_20' ) end [2025-03-08 17:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:46:23] Production.INFO: ==27792== Releasing lock... [2025-03-08 17:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:46:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:47:05 [end_date_ymd] => 2025-03-08 17:47:05 [RateCDR] => 1 ) [2025-03-08 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:47:05' and `end` < '2025-03-08 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:47:17] Production.INFO: count ==1635 [2025-03-08 17:47:17] Production.ERROR: pbx CDR StartTime 2025-03-08 14:47:05 - End Time 2025-03-08 17:47:05 [2025-03-08 17:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636771', 'tblTempUsageDetail_20' ) start [2025-03-08 17:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636771', 'tblTempUsageDetail_20' ) end [2025-03-08 17:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636771', 'tblTempVendorCDR_20' ) start [2025-03-08 17:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636771', 'tblTempVendorCDR_20' ) end [2025-03-08 17:47:17] Production.INFO: ProcessCDR(1,14636771,1,1,2) [2025-03-08 17:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636771', 'tblTempUsageDetail_20' ) start [2025-03-08 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636771', 'tblTempUsageDetail_20' ) end [2025-03-08 17:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:47:22] Production.INFO: ==27867== Releasing lock... [2025-03-08 17:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:47:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:48:05 [end_date_ymd] => 2025-03-08 17:48:05 [RateCDR] => 1 ) [2025-03-08 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:48:05' and `end` < '2025-03-08 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:48:18] Production.INFO: count ==1635 [2025-03-08 17:48:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:48:05 - End Time 2025-03-08 17:48:05 [2025-03-08 17:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636776', 'tblTempUsageDetail_20' ) start [2025-03-08 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636776', 'tblTempUsageDetail_20' ) end [2025-03-08 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636776', 'tblTempVendorCDR_20' ) start [2025-03-08 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636776', 'tblTempVendorCDR_20' ) end [2025-03-08 17:48:18] Production.INFO: ProcessCDR(1,14636776,1,1,2) [2025-03-08 17:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636776', 'tblTempUsageDetail_20' ) start [2025-03-08 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636776', 'tblTempUsageDetail_20' ) end [2025-03-08 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:48:23] Production.INFO: ==27943== Releasing lock... [2025-03-08 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:48:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:49:05 [end_date_ymd] => 2025-03-08 17:49:05 [RateCDR] => 1 ) [2025-03-08 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:49:05' and `end` < '2025-03-08 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:49:17] Production.INFO: count ==1638 [2025-03-08 17:49:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:49:05 - End Time 2025-03-08 17:49:05 [2025-03-08 17:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636781', 'tblTempUsageDetail_20' ) start [2025-03-08 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636781', 'tblTempUsageDetail_20' ) end [2025-03-08 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636781', 'tblTempVendorCDR_20' ) start [2025-03-08 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636781', 'tblTempVendorCDR_20' ) end [2025-03-08 17:49:18] Production.INFO: ProcessCDR(1,14636781,1,1,2) [2025-03-08 17:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636781', 'tblTempUsageDetail_20' ) start [2025-03-08 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636781', 'tblTempUsageDetail_20' ) end [2025-03-08 17:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:49:23] Production.INFO: ==28021== Releasing lock... [2025-03-08 17:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:49:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:50:06 [end_date_ymd] => 2025-03-08 17:50:06 [RateCDR] => 1 ) [2025-03-08 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:50:06' and `end` < '2025-03-08 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:50:18] Production.INFO: count ==1632 [2025-03-08 17:50:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:50:06 - End Time 2025-03-08 17:50:06 [2025-03-08 17:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636787', 'tblTempUsageDetail_20' ) start [2025-03-08 17:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636787', 'tblTempUsageDetail_20' ) end [2025-03-08 17:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636787', 'tblTempVendorCDR_20' ) start [2025-03-08 17:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636787', 'tblTempVendorCDR_20' ) end [2025-03-08 17:50:18] Production.INFO: ProcessCDR(1,14636787,1,1,2) [2025-03-08 17:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636787', 'tblTempUsageDetail_20' ) start [2025-03-08 17:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636787', 'tblTempUsageDetail_20' ) end [2025-03-08 17:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:50:23] Production.INFO: ==28097== Releasing lock... [2025-03-08 17:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:50:23] Production.INFO: 40 MB #Memory Used# [2025-03-08 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:51:05 [end_date_ymd] => 2025-03-08 17:51:05 [RateCDR] => 1 ) [2025-03-08 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:51:05' and `end` < '2025-03-08 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:51:18] Production.INFO: count ==1672 [2025-03-08 17:51:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:51:05 - End Time 2025-03-08 17:51:05 [2025-03-08 17:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636792', 'tblTempUsageDetail_20' ) start [2025-03-08 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636792', 'tblTempUsageDetail_20' ) end [2025-03-08 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636792', 'tblTempVendorCDR_20' ) start [2025-03-08 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636792', 'tblTempVendorCDR_20' ) end [2025-03-08 17:51:18] Production.INFO: ProcessCDR(1,14636792,1,1,2) [2025-03-08 17:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636792', 'tblTempUsageDetail_20' ) start [2025-03-08 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636792', 'tblTempUsageDetail_20' ) end [2025-03-08 17:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:51:23] Production.INFO: ==28172== Releasing lock... [2025-03-08 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:51:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-08 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:52:05 [end_date_ymd] => 2025-03-08 17:52:05 [RateCDR] => 1 ) [2025-03-08 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:52:05' and `end` < '2025-03-08 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:52:17] Production.INFO: count ==1713 [2025-03-08 17:52:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:52:05 - End Time 2025-03-08 17:52:05 [2025-03-08 17:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636797', 'tblTempUsageDetail_20' ) start [2025-03-08 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636797', 'tblTempUsageDetail_20' ) end [2025-03-08 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636797', 'tblTempVendorCDR_20' ) start [2025-03-08 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636797', 'tblTempVendorCDR_20' ) end [2025-03-08 17:52:18] Production.INFO: ProcessCDR(1,14636797,1,1,2) [2025-03-08 17:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636797', 'tblTempUsageDetail_20' ) start [2025-03-08 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636797', 'tblTempUsageDetail_20' ) end [2025-03-08 17:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:52:23] Production.INFO: ==28245== Releasing lock... [2025-03-08 17:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:52:23] Production.INFO: 41 MB #Memory Used# [2025-03-08 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:53:06 [end_date_ymd] => 2025-03-08 17:53:06 [RateCDR] => 1 ) [2025-03-08 17:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:53:06' and `end` < '2025-03-08 17:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:53:18] Production.INFO: count ==1751 [2025-03-08 17:53:19] Production.ERROR: pbx CDR StartTime 2025-03-08 14:53:06 - End Time 2025-03-08 17:53:06 [2025-03-08 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636802', 'tblTempUsageDetail_20' ) start [2025-03-08 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636802', 'tblTempUsageDetail_20' ) end [2025-03-08 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636802', 'tblTempVendorCDR_20' ) start [2025-03-08 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636802', 'tblTempVendorCDR_20' ) end [2025-03-08 17:53:19] Production.INFO: ProcessCDR(1,14636802,1,1,2) [2025-03-08 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636802', 'tblTempUsageDetail_20' ) start [2025-03-08 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636802', 'tblTempUsageDetail_20' ) end [2025-03-08 17:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:53:23] Production.INFO: ==28318== Releasing lock... [2025-03-08 17:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:53:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-08 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:54:05 [end_date_ymd] => 2025-03-08 17:54:05 [RateCDR] => 1 ) [2025-03-08 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:54:05' and `end` < '2025-03-08 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:54:18] Production.INFO: count ==1823 [2025-03-08 17:54:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:54:05 - End Time 2025-03-08 17:54:05 [2025-03-08 17:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636807', 'tblTempUsageDetail_20' ) start [2025-03-08 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636807', 'tblTempUsageDetail_20' ) end [2025-03-08 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636807', 'tblTempVendorCDR_20' ) start [2025-03-08 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636807', 'tblTempVendorCDR_20' ) end [2025-03-08 17:54:18] Production.INFO: ProcessCDR(1,14636807,1,1,2) [2025-03-08 17:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636807', 'tblTempUsageDetail_20' ) start [2025-03-08 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636807', 'tblTempUsageDetail_20' ) end [2025-03-08 17:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:54:23] Production.INFO: ==28392== Releasing lock... [2025-03-08 17:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:54:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-08 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:55:06 [end_date_ymd] => 2025-03-08 17:55:06 [RateCDR] => 1 ) [2025-03-08 17:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:55:06' and `end` < '2025-03-08 17:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:55:18] Production.INFO: count ==1905 [2025-03-08 17:55:19] Production.ERROR: pbx CDR StartTime 2025-03-08 14:55:06 - End Time 2025-03-08 17:55:06 [2025-03-08 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636812', 'tblTempUsageDetail_20' ) start [2025-03-08 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636812', 'tblTempUsageDetail_20' ) end [2025-03-08 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636812', 'tblTempVendorCDR_20' ) start [2025-03-08 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636812', 'tblTempVendorCDR_20' ) end [2025-03-08 17:55:19] Production.INFO: ProcessCDR(1,14636812,1,1,2) [2025-03-08 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636812', 'tblTempUsageDetail_20' ) start [2025-03-08 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636812', 'tblTempUsageDetail_20' ) end [2025-03-08 17:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:55:22] Production.INFO: ==28464== Releasing lock... [2025-03-08 17:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:55:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-08 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:56:05 [end_date_ymd] => 2025-03-08 17:56:05 [RateCDR] => 1 ) [2025-03-08 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:56:05' and `end` < '2025-03-08 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:56:18] Production.INFO: count ==2231 [2025-03-08 17:56:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:56:05 - End Time 2025-03-08 17:56:05 [2025-03-08 17:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636817', 'tblTempUsageDetail_20' ) start [2025-03-08 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636817', 'tblTempUsageDetail_20' ) end [2025-03-08 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636817', 'tblTempVendorCDR_20' ) start [2025-03-08 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636817', 'tblTempVendorCDR_20' ) end [2025-03-08 17:56:18] Production.INFO: ProcessCDR(1,14636817,1,1,2) [2025-03-08 17:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636817', 'tblTempUsageDetail_20' ) start [2025-03-08 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636817', 'tblTempUsageDetail_20' ) end [2025-03-08 17:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:56:23] Production.INFO: ==28536== Releasing lock... [2025-03-08 17:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:56:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-08 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:57:05 [end_date_ymd] => 2025-03-08 17:57:05 [RateCDR] => 1 ) [2025-03-08 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:57:05' and `end` < '2025-03-08 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:57:18] Production.INFO: count ==2337 [2025-03-08 17:57:19] Production.ERROR: pbx CDR StartTime 2025-03-08 14:57:05 - End Time 2025-03-08 17:57:05 [2025-03-08 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636822', 'tblTempUsageDetail_20' ) start [2025-03-08 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636822', 'tblTempUsageDetail_20' ) end [2025-03-08 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636822', 'tblTempVendorCDR_20' ) start [2025-03-08 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636822', 'tblTempVendorCDR_20' ) end [2025-03-08 17:57:19] Production.INFO: ProcessCDR(1,14636822,1,1,2) [2025-03-08 17:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636822', 'tblTempUsageDetail_20' ) start [2025-03-08 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636822', 'tblTempUsageDetail_20' ) end [2025-03-08 17:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:57:22] Production.INFO: ==28616== Releasing lock... [2025-03-08 17:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:57:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-08 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:58:05 [end_date_ymd] => 2025-03-08 17:58:05 [RateCDR] => 1 ) [2025-03-08 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:58:05' and `end` < '2025-03-08 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:58:18] Production.INFO: count ==2408 [2025-03-08 17:58:18] Production.ERROR: pbx CDR StartTime 2025-03-08 14:58:05 - End Time 2025-03-08 17:58:05 [2025-03-08 17:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636827', 'tblTempUsageDetail_20' ) start [2025-03-08 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636827', 'tblTempUsageDetail_20' ) end [2025-03-08 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636827', 'tblTempVendorCDR_20' ) start [2025-03-08 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636827', 'tblTempVendorCDR_20' ) end [2025-03-08 17:58:19] Production.INFO: ProcessCDR(1,14636827,1,1,2) [2025-03-08 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636827', 'tblTempUsageDetail_20' ) start [2025-03-08 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636827', 'tblTempUsageDetail_20' ) end [2025-03-08 17:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:58:22] Production.INFO: ==28692== Releasing lock... [2025-03-08 17:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:58:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-08 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 14:59:05 [end_date_ymd] => 2025-03-08 17:59:05 [RateCDR] => 1 ) [2025-03-08 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 14:59:05' and `end` < '2025-03-08 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 17:59:18] Production.INFO: count ==2555 [2025-03-08 17:59:19] Production.ERROR: pbx CDR StartTime 2025-03-08 14:59:05 - End Time 2025-03-08 17:59:05 [2025-03-08 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636832', 'tblTempUsageDetail_20' ) start [2025-03-08 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636832', 'tblTempUsageDetail_20' ) end [2025-03-08 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636832', 'tblTempVendorCDR_20' ) start [2025-03-08 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636832', 'tblTempVendorCDR_20' ) end [2025-03-08 17:59:19] Production.INFO: ProcessCDR(1,14636832,1,1,2) [2025-03-08 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636832', 'tblTempUsageDetail_20' ) start [2025-03-08 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636832', 'tblTempUsageDetail_20' ) end [2025-03-08 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 17:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 17:59:24] Production.INFO: ==28765== Releasing lock... [2025-03-08 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 17:59:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-08 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:00:06 [end_date_ymd] => 2025-03-08 18:00:06 [RateCDR] => 1 ) [2025-03-08 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:00:06' and `end` < '2025-03-08 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:00:18] Production.INFO: count ==2556 [2025-03-08 18:00:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:00:06 - End Time 2025-03-08 18:00:06 [2025-03-08 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636838', 'tblTempUsageDetail_20' ) start [2025-03-08 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636838', 'tblTempUsageDetail_20' ) end [2025-03-08 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636838', 'tblTempVendorCDR_20' ) start [2025-03-08 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636838', 'tblTempVendorCDR_20' ) end [2025-03-08 18:00:19] Production.INFO: ProcessCDR(1,14636838,1,1,2) [2025-03-08 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636838', 'tblTempUsageDetail_20' ) start [2025-03-08 18:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636838', 'tblTempUsageDetail_20' ) end [2025-03-08 18:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:00:22] Production.INFO: ==28875== Releasing lock... [2025-03-08 18:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:00:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-08 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:01:06 [end_date_ymd] => 2025-03-08 18:01:06 [RateCDR] => 1 ) [2025-03-08 18:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:01:06' and `end` < '2025-03-08 18:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:01:18] Production.INFO: count ==2672 [2025-03-08 18:01:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:01:06 - End Time 2025-03-08 18:01:06 [2025-03-08 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636843', 'tblTempUsageDetail_20' ) start [2025-03-08 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636843', 'tblTempUsageDetail_20' ) end [2025-03-08 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636843', 'tblTempVendorCDR_20' ) start [2025-03-08 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636843', 'tblTempVendorCDR_20' ) end [2025-03-08 18:01:19] Production.INFO: ProcessCDR(1,14636843,1,1,2) [2025-03-08 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636843', 'tblTempUsageDetail_20' ) start [2025-03-08 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636843', 'tblTempUsageDetail_20' ) end [2025-03-08 18:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:01:23] Production.INFO: ==28962== Releasing lock... [2025-03-08 18:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:01:23] Production.INFO: 48 MB #Memory Used# [2025-03-08 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:02:05 [end_date_ymd] => 2025-03-08 18:02:05 [RateCDR] => 1 ) [2025-03-08 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:02:05' and `end` < '2025-03-08 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:02:18] Production.INFO: count ==2678 [2025-03-08 18:02:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:02:05 - End Time 2025-03-08 18:02:05 [2025-03-08 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636848', 'tblTempUsageDetail_20' ) start [2025-03-08 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636848', 'tblTempUsageDetail_20' ) end [2025-03-08 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636848', 'tblTempVendorCDR_20' ) start [2025-03-08 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636848', 'tblTempVendorCDR_20' ) end [2025-03-08 18:02:19] Production.INFO: ProcessCDR(1,14636848,1,1,2) [2025-03-08 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636848', 'tblTempUsageDetail_20' ) start [2025-03-08 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636848', 'tblTempUsageDetail_20' ) end [2025-03-08 18:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:02:22] Production.INFO: ==29033== Releasing lock... [2025-03-08 18:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:02:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:03:06 [end_date_ymd] => 2025-03-08 18:03:06 [RateCDR] => 1 ) [2025-03-08 18:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:03:06' and `end` < '2025-03-08 18:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:03:18] Production.INFO: count ==2677 [2025-03-08 18:03:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:03:06 - End Time 2025-03-08 18:03:06 [2025-03-08 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636853', 'tblTempUsageDetail_20' ) start [2025-03-08 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636853', 'tblTempUsageDetail_20' ) end [2025-03-08 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636853', 'tblTempVendorCDR_20' ) start [2025-03-08 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636853', 'tblTempVendorCDR_20' ) end [2025-03-08 18:03:19] Production.INFO: ProcessCDR(1,14636853,1,1,2) [2025-03-08 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636853', 'tblTempUsageDetail_20' ) start [2025-03-08 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636853', 'tblTempUsageDetail_20' ) end [2025-03-08 18:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:03:24] Production.INFO: ==29104== Releasing lock... [2025-03-08 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:03:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:04:05 [end_date_ymd] => 2025-03-08 18:04:05 [RateCDR] => 1 ) [2025-03-08 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:04:05' and `end` < '2025-03-08 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:04:17] Production.INFO: count ==2674 [2025-03-08 18:04:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:04:05 - End Time 2025-03-08 18:04:05 [2025-03-08 18:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636858', 'tblTempUsageDetail_20' ) start [2025-03-08 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636858', 'tblTempUsageDetail_20' ) end [2025-03-08 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636858', 'tblTempVendorCDR_20' ) start [2025-03-08 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636858', 'tblTempVendorCDR_20' ) end [2025-03-08 18:04:18] Production.INFO: ProcessCDR(1,14636858,1,1,2) [2025-03-08 18:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636858', 'tblTempUsageDetail_20' ) start [2025-03-08 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636858', 'tblTempUsageDetail_20' ) end [2025-03-08 18:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:04:22] Production.INFO: ==29178== Releasing lock... [2025-03-08 18:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:04:22] Production.INFO: 48 MB #Memory Used# [2025-03-08 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:05:05 [end_date_ymd] => 2025-03-08 18:05:05 [RateCDR] => 1 ) [2025-03-08 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:05:05' and `end` < '2025-03-08 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:05:18] Production.INFO: count ==2674 [2025-03-08 18:05:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:05:05 - End Time 2025-03-08 18:05:05 [2025-03-08 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636863', 'tblTempUsageDetail_20' ) start [2025-03-08 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636863', 'tblTempUsageDetail_20' ) end [2025-03-08 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636863', 'tblTempVendorCDR_20' ) start [2025-03-08 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636863', 'tblTempVendorCDR_20' ) end [2025-03-08 18:05:19] Production.INFO: ProcessCDR(1,14636863,1,1,2) [2025-03-08 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636863', 'tblTempUsageDetail_20' ) start [2025-03-08 18:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636863', 'tblTempUsageDetail_20' ) end [2025-03-08 18:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:05:22] Production.INFO: ==29251== Releasing lock... [2025-03-08 18:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:05:22] Production.INFO: 48 MB #Memory Used# [2025-03-08 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:06:05 [end_date_ymd] => 2025-03-08 18:06:05 [RateCDR] => 1 ) [2025-03-08 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:06:05' and `end` < '2025-03-08 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:06:17] Production.INFO: count ==2686 [2025-03-08 18:06:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:06:05 - End Time 2025-03-08 18:06:05 [2025-03-08 18:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636868', 'tblTempUsageDetail_20' ) start [2025-03-08 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636868', 'tblTempUsageDetail_20' ) end [2025-03-08 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636868', 'tblTempVendorCDR_20' ) start [2025-03-08 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636868', 'tblTempVendorCDR_20' ) end [2025-03-08 18:06:18] Production.INFO: ProcessCDR(1,14636868,1,1,2) [2025-03-08 18:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636868', 'tblTempUsageDetail_20' ) start [2025-03-08 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636868', 'tblTempUsageDetail_20' ) end [2025-03-08 18:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:06:23] Production.INFO: ==29323== Releasing lock... [2025-03-08 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:06:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:07:05 [end_date_ymd] => 2025-03-08 18:07:05 [RateCDR] => 1 ) [2025-03-08 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:07:05' and `end` < '2025-03-08 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:07:17] Production.INFO: count ==2684 [2025-03-08 18:07:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:07:05 - End Time 2025-03-08 18:07:05 [2025-03-08 18:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636873', 'tblTempUsageDetail_20' ) start [2025-03-08 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636873', 'tblTempUsageDetail_20' ) end [2025-03-08 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636873', 'tblTempVendorCDR_20' ) start [2025-03-08 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636873', 'tblTempVendorCDR_20' ) end [2025-03-08 18:07:18] Production.INFO: ProcessCDR(1,14636873,1,1,2) [2025-03-08 18:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636873', 'tblTempUsageDetail_20' ) start [2025-03-08 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636873', 'tblTempUsageDetail_20' ) end [2025-03-08 18:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:07:22] Production.INFO: ==29395== Releasing lock... [2025-03-08 18:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:07:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:08:05 [end_date_ymd] => 2025-03-08 18:08:05 [RateCDR] => 1 ) [2025-03-08 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:08:05' and `end` < '2025-03-08 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:08:18] Production.INFO: count ==2684 [2025-03-08 18:08:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:08:05 - End Time 2025-03-08 18:08:05 [2025-03-08 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636878', 'tblTempUsageDetail_20' ) start [2025-03-08 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636878', 'tblTempUsageDetail_20' ) end [2025-03-08 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636878', 'tblTempVendorCDR_20' ) start [2025-03-08 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636878', 'tblTempVendorCDR_20' ) end [2025-03-08 18:08:19] Production.INFO: ProcessCDR(1,14636878,1,1,2) [2025-03-08 18:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636878', 'tblTempUsageDetail_20' ) start [2025-03-08 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636878', 'tblTempUsageDetail_20' ) end [2025-03-08 18:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:08:23] Production.INFO: ==29467== Releasing lock... [2025-03-08 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:08:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-08 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:09:06 [end_date_ymd] => 2025-03-08 18:09:06 [RateCDR] => 1 ) [2025-03-08 18:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:09:06' and `end` < '2025-03-08 18:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:09:18] Production.INFO: count ==2690 [2025-03-08 18:09:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:09:06 - End Time 2025-03-08 18:09:06 [2025-03-08 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636883', 'tblTempUsageDetail_20' ) start [2025-03-08 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636883', 'tblTempUsageDetail_20' ) end [2025-03-08 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636883', 'tblTempVendorCDR_20' ) start [2025-03-08 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636883', 'tblTempVendorCDR_20' ) end [2025-03-08 18:09:19] Production.INFO: ProcessCDR(1,14636883,1,1,2) [2025-03-08 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636883', 'tblTempUsageDetail_20' ) start [2025-03-08 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636883', 'tblTempUsageDetail_20' ) end [2025-03-08 18:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:09:22] Production.INFO: ==29539== Releasing lock... [2025-03-08 18:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:09:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:10:05 [end_date_ymd] => 2025-03-08 18:10:05 [RateCDR] => 1 ) [2025-03-08 18:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:10:05' and `end` < '2025-03-08 18:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:10:18] Production.INFO: count ==2694 [2025-03-08 18:10:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:10:05 - End Time 2025-03-08 18:10:05 [2025-03-08 18:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636889', 'tblTempUsageDetail_20' ) start [2025-03-08 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636889', 'tblTempUsageDetail_20' ) end [2025-03-08 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636889', 'tblTempVendorCDR_20' ) start [2025-03-08 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636889', 'tblTempVendorCDR_20' ) end [2025-03-08 18:10:19] Production.INFO: ProcessCDR(1,14636889,1,1,2) [2025-03-08 18:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636889', 'tblTempUsageDetail_20' ) start [2025-03-08 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636889', 'tblTempUsageDetail_20' ) end [2025-03-08 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:10:24] Production.INFO: ==29612== Releasing lock... [2025-03-08 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:10:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:11:05 [end_date_ymd] => 2025-03-08 18:11:05 [RateCDR] => 1 ) [2025-03-08 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:11:05' and `end` < '2025-03-08 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:11:17] Production.INFO: count ==2706 [2025-03-08 18:11:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:11:05 - End Time 2025-03-08 18:11:05 [2025-03-08 18:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636894', 'tblTempUsageDetail_20' ) start [2025-03-08 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636894', 'tblTempUsageDetail_20' ) end [2025-03-08 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636894', 'tblTempVendorCDR_20' ) start [2025-03-08 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636894', 'tblTempVendorCDR_20' ) end [2025-03-08 18:11:18] Production.INFO: ProcessCDR(1,14636894,1,1,2) [2025-03-08 18:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636894', 'tblTempUsageDetail_20' ) start [2025-03-08 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636894', 'tblTempUsageDetail_20' ) end [2025-03-08 18:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:11:22] Production.INFO: ==29693== Releasing lock... [2025-03-08 18:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:11:22] Production.INFO: 48 MB #Memory Used# [2025-03-08 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:12:05 [end_date_ymd] => 2025-03-08 18:12:05 [RateCDR] => 1 ) [2025-03-08 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:12:05' and `end` < '2025-03-08 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:12:17] Production.INFO: count ==2707 [2025-03-08 18:12:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:12:05 - End Time 2025-03-08 18:12:05 [2025-03-08 18:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636899', 'tblTempUsageDetail_20' ) start [2025-03-08 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636899', 'tblTempUsageDetail_20' ) end [2025-03-08 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636899', 'tblTempVendorCDR_20' ) start [2025-03-08 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636899', 'tblTempVendorCDR_20' ) end [2025-03-08 18:12:18] Production.INFO: ProcessCDR(1,14636899,1,1,2) [2025-03-08 18:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636899', 'tblTempUsageDetail_20' ) start [2025-03-08 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636899', 'tblTempUsageDetail_20' ) end [2025-03-08 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:12:23] Production.INFO: ==29763== Releasing lock... [2025-03-08 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:12:23] Production.INFO: 48 MB #Memory Used# [2025-03-08 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:13:05 [end_date_ymd] => 2025-03-08 18:13:05 [RateCDR] => 1 ) [2025-03-08 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:13:05' and `end` < '2025-03-08 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:13:17] Production.INFO: count ==2710 [2025-03-08 18:13:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:13:05 - End Time 2025-03-08 18:13:05 [2025-03-08 18:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636904', 'tblTempUsageDetail_20' ) start [2025-03-08 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636904', 'tblTempUsageDetail_20' ) end [2025-03-08 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636904', 'tblTempVendorCDR_20' ) start [2025-03-08 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636904', 'tblTempVendorCDR_20' ) end [2025-03-08 18:13:18] Production.INFO: ProcessCDR(1,14636904,1,1,2) [2025-03-08 18:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636904', 'tblTempUsageDetail_20' ) start [2025-03-08 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636904', 'tblTempUsageDetail_20' ) end [2025-03-08 18:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:13:23] Production.INFO: ==29834== Releasing lock... [2025-03-08 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:13:23] Production.INFO: 48 MB #Memory Used# [2025-03-08 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:14:05 [end_date_ymd] => 2025-03-08 18:14:05 [RateCDR] => 1 ) [2025-03-08 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:14:05' and `end` < '2025-03-08 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:14:18] Production.INFO: count ==2709 [2025-03-08 18:14:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:14:05 - End Time 2025-03-08 18:14:05 [2025-03-08 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636909', 'tblTempUsageDetail_20' ) start [2025-03-08 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636909', 'tblTempUsageDetail_20' ) end [2025-03-08 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636909', 'tblTempVendorCDR_20' ) start [2025-03-08 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636909', 'tblTempVendorCDR_20' ) end [2025-03-08 18:14:19] Production.INFO: ProcessCDR(1,14636909,1,1,2) [2025-03-08 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636909', 'tblTempUsageDetail_20' ) start [2025-03-08 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636909', 'tblTempUsageDetail_20' ) end [2025-03-08 18:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:14:22] Production.INFO: ==29911== Releasing lock... [2025-03-08 18:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:14:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:15:05 [end_date_ymd] => 2025-03-08 18:15:05 [RateCDR] => 1 ) [2025-03-08 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:15:05' and `end` < '2025-03-08 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:15:18] Production.INFO: count ==2708 [2025-03-08 18:15:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:15:05 - End Time 2025-03-08 18:15:05 [2025-03-08 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636914', 'tblTempUsageDetail_20' ) start [2025-03-08 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636914', 'tblTempUsageDetail_20' ) end [2025-03-08 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636914', 'tblTempVendorCDR_20' ) start [2025-03-08 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636914', 'tblTempVendorCDR_20' ) end [2025-03-08 18:15:19] Production.INFO: ProcessCDR(1,14636914,1,1,2) [2025-03-08 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636914', 'tblTempUsageDetail_20' ) start [2025-03-08 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636914', 'tblTempUsageDetail_20' ) end [2025-03-08 18:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:15:22] Production.INFO: ==29985== Releasing lock... [2025-03-08 18:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:15:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:16:05 [end_date_ymd] => 2025-03-08 18:16:05 [RateCDR] => 1 ) [2025-03-08 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:16:05' and `end` < '2025-03-08 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:16:17] Production.INFO: count ==2709 [2025-03-08 18:16:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:16:05 - End Time 2025-03-08 18:16:05 [2025-03-08 18:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636919', 'tblTempUsageDetail_20' ) start [2025-03-08 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636919', 'tblTempUsageDetail_20' ) end [2025-03-08 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636919', 'tblTempVendorCDR_20' ) start [2025-03-08 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636919', 'tblTempVendorCDR_20' ) end [2025-03-08 18:16:18] Production.INFO: ProcessCDR(1,14636919,1,1,2) [2025-03-08 18:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636919', 'tblTempUsageDetail_20' ) start [2025-03-08 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636919', 'tblTempUsageDetail_20' ) end [2025-03-08 18:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:16:23] Production.INFO: ==30094== Releasing lock... [2025-03-08 18:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:16:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:17:05 [end_date_ymd] => 2025-03-08 18:17:05 [RateCDR] => 1 ) [2025-03-08 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:17:05' and `end` < '2025-03-08 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:17:17] Production.INFO: count ==2715 [2025-03-08 18:17:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:17:05 - End Time 2025-03-08 18:17:05 [2025-03-08 18:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636924', 'tblTempUsageDetail_20' ) start [2025-03-08 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636924', 'tblTempUsageDetail_20' ) end [2025-03-08 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636924', 'tblTempVendorCDR_20' ) start [2025-03-08 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636924', 'tblTempVendorCDR_20' ) end [2025-03-08 18:17:18] Production.INFO: ProcessCDR(1,14636924,1,1,2) [2025-03-08 18:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636924', 'tblTempUsageDetail_20' ) start [2025-03-08 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636924', 'tblTempUsageDetail_20' ) end [2025-03-08 18:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:17:22] Production.INFO: ==30165== Releasing lock... [2025-03-08 18:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:17:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:18:06 [end_date_ymd] => 2025-03-08 18:18:06 [RateCDR] => 1 ) [2025-03-08 18:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:18:06' and `end` < '2025-03-08 18:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:18:18] Production.INFO: count ==2707 [2025-03-08 18:18:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:18:06 - End Time 2025-03-08 18:18:06 [2025-03-08 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636929', 'tblTempUsageDetail_20' ) start [2025-03-08 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636929', 'tblTempUsageDetail_20' ) end [2025-03-08 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636929', 'tblTempVendorCDR_20' ) start [2025-03-08 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636929', 'tblTempVendorCDR_20' ) end [2025-03-08 18:18:19] Production.INFO: ProcessCDR(1,14636929,1,1,2) [2025-03-08 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636929', 'tblTempUsageDetail_20' ) start [2025-03-08 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636929', 'tblTempUsageDetail_20' ) end [2025-03-08 18:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:18:23] Production.INFO: ==30238== Releasing lock... [2025-03-08 18:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:18:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:19:05 [end_date_ymd] => 2025-03-08 18:19:05 [RateCDR] => 1 ) [2025-03-08 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:19:05' and `end` < '2025-03-08 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:19:17] Production.INFO: count ==2704 [2025-03-08 18:19:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:19:05 - End Time 2025-03-08 18:19:05 [2025-03-08 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636934', 'tblTempUsageDetail_20' ) start [2025-03-08 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636934', 'tblTempUsageDetail_20' ) end [2025-03-08 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636934', 'tblTempVendorCDR_20' ) start [2025-03-08 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636934', 'tblTempVendorCDR_20' ) end [2025-03-08 18:19:18] Production.INFO: ProcessCDR(1,14636934,1,1,2) [2025-03-08 18:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636934', 'tblTempUsageDetail_20' ) start [2025-03-08 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636934', 'tblTempUsageDetail_20' ) end [2025-03-08 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:19:23] Production.INFO: ==30308== Releasing lock... [2025-03-08 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:19:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:20:06 [end_date_ymd] => 2025-03-08 18:20:06 [RateCDR] => 1 ) [2025-03-08 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:20:06' and `end` < '2025-03-08 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:20:18] Production.INFO: count ==2705 [2025-03-08 18:20:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:20:06 - End Time 2025-03-08 18:20:06 [2025-03-08 18:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636940', 'tblTempUsageDetail_20' ) start [2025-03-08 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636940', 'tblTempUsageDetail_20' ) end [2025-03-08 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636940', 'tblTempVendorCDR_20' ) start [2025-03-08 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636940', 'tblTempVendorCDR_20' ) end [2025-03-08 18:20:19] Production.INFO: ProcessCDR(1,14636940,1,1,2) [2025-03-08 18:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636940', 'tblTempUsageDetail_20' ) start [2025-03-08 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636940', 'tblTempUsageDetail_20' ) end [2025-03-08 18:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:20:23] Production.INFO: ==30382== Releasing lock... [2025-03-08 18:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:20:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:21:05 [end_date_ymd] => 2025-03-08 18:21:05 [RateCDR] => 1 ) [2025-03-08 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:21:05' and `end` < '2025-03-08 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:21:18] Production.INFO: count ==2728 [2025-03-08 18:21:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:21:05 - End Time 2025-03-08 18:21:05 [2025-03-08 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636945', 'tblTempUsageDetail_20' ) start [2025-03-08 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636945', 'tblTempUsageDetail_20' ) end [2025-03-08 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636945', 'tblTempVendorCDR_20' ) start [2025-03-08 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636945', 'tblTempVendorCDR_20' ) end [2025-03-08 18:21:19] Production.INFO: ProcessCDR(1,14636945,1,1,2) [2025-03-08 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636945', 'tblTempUsageDetail_20' ) start [2025-03-08 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636945', 'tblTempUsageDetail_20' ) end [2025-03-08 18:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:21:22] Production.INFO: ==30455== Releasing lock... [2025-03-08 18:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:21:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:22:05 [end_date_ymd] => 2025-03-08 18:22:05 [RateCDR] => 1 ) [2025-03-08 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:22:05' and `end` < '2025-03-08 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:22:17] Production.INFO: count ==2726 [2025-03-08 18:22:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:22:05 - End Time 2025-03-08 18:22:05 [2025-03-08 18:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636950', 'tblTempUsageDetail_20' ) start [2025-03-08 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636950', 'tblTempUsageDetail_20' ) end [2025-03-08 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636950', 'tblTempVendorCDR_20' ) start [2025-03-08 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636950', 'tblTempVendorCDR_20' ) end [2025-03-08 18:22:19] Production.INFO: ProcessCDR(1,14636950,1,1,2) [2025-03-08 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636950', 'tblTempUsageDetail_20' ) start [2025-03-08 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636950', 'tblTempUsageDetail_20' ) end [2025-03-08 18:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:22:23] Production.INFO: ==30527== Releasing lock... [2025-03-08 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:22:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:23:05 [end_date_ymd] => 2025-03-08 18:23:05 [RateCDR] => 1 ) [2025-03-08 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:23:05' and `end` < '2025-03-08 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:23:17] Production.INFO: count ==2728 [2025-03-08 18:23:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:23:05 - End Time 2025-03-08 18:23:05 [2025-03-08 18:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636955', 'tblTempUsageDetail_20' ) start [2025-03-08 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636955', 'tblTempUsageDetail_20' ) end [2025-03-08 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636955', 'tblTempVendorCDR_20' ) start [2025-03-08 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636955', 'tblTempVendorCDR_20' ) end [2025-03-08 18:23:18] Production.INFO: ProcessCDR(1,14636955,1,1,2) [2025-03-08 18:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636955', 'tblTempUsageDetail_20' ) start [2025-03-08 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636955', 'tblTempUsageDetail_20' ) end [2025-03-08 18:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:23:23] Production.INFO: ==30599== Releasing lock... [2025-03-08 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:23:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:24:06 [end_date_ymd] => 2025-03-08 18:24:06 [RateCDR] => 1 ) [2025-03-08 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:24:06' and `end` < '2025-03-08 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:24:18] Production.INFO: count ==2725 [2025-03-08 18:24:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:24:06 - End Time 2025-03-08 18:24:06 [2025-03-08 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636960', 'tblTempUsageDetail_20' ) start [2025-03-08 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636960', 'tblTempUsageDetail_20' ) end [2025-03-08 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636960', 'tblTempVendorCDR_20' ) start [2025-03-08 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636960', 'tblTempVendorCDR_20' ) end [2025-03-08 18:24:19] Production.INFO: ProcessCDR(1,14636960,1,1,2) [2025-03-08 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636960', 'tblTempUsageDetail_20' ) start [2025-03-08 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636960', 'tblTempUsageDetail_20' ) end [2025-03-08 18:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:24:22] Production.INFO: ==30671== Releasing lock... [2025-03-08 18:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:24:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 18:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:25:04 [end_date_ymd] => 2025-03-08 18:25:04 [RateCDR] => 1 ) [2025-03-08 18: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-03-08 15:25:04' and `end` < '2025-03-08 18: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-03-08 18:25:17] Production.INFO: count ==2717 [2025-03-08 18:25:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:25:04 - End Time 2025-03-08 18:25:04 [2025-03-08 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636965', 'tblTempUsageDetail_20' ) start [2025-03-08 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636965', 'tblTempUsageDetail_20' ) end [2025-03-08 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636965', 'tblTempVendorCDR_20' ) start [2025-03-08 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636965', 'tblTempVendorCDR_20' ) end [2025-03-08 18:25:18] Production.INFO: ProcessCDR(1,14636965,1,1,2) [2025-03-08 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636965', 'tblTempUsageDetail_20' ) start [2025-03-08 18:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636965', 'tblTempUsageDetail_20' ) end [2025-03-08 18:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:25:21] Production.INFO: ==30742== Releasing lock... [2025-03-08 18:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:25:21] Production.INFO: 48.75 MB #Memory Used# [2025-03-08 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:26:05 [end_date_ymd] => 2025-03-08 18:26:05 [RateCDR] => 1 ) [2025-03-08 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:26:05' and `end` < '2025-03-08 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:26:18] Production.INFO: count ==2717 [2025-03-08 18:26:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:26:05 - End Time 2025-03-08 18:26:05 [2025-03-08 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636970', 'tblTempUsageDetail_20' ) start [2025-03-08 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636970', 'tblTempUsageDetail_20' ) end [2025-03-08 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636970', 'tblTempVendorCDR_20' ) start [2025-03-08 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636970', 'tblTempVendorCDR_20' ) end [2025-03-08 18:26:19] Production.INFO: ProcessCDR(1,14636970,1,1,2) [2025-03-08 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636970', 'tblTempUsageDetail_20' ) start [2025-03-08 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636970', 'tblTempUsageDetail_20' ) end [2025-03-08 18:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:26:22] Production.INFO: ==30816== Releasing lock... [2025-03-08 18:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:26:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:27:05 [end_date_ymd] => 2025-03-08 18:27:05 [RateCDR] => 1 ) [2025-03-08 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:27:05' and `end` < '2025-03-08 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:27:17] Production.INFO: count ==2715 [2025-03-08 18:27:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:27:05 - End Time 2025-03-08 18:27:05 [2025-03-08 18:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636975', 'tblTempUsageDetail_20' ) start [2025-03-08 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636975', 'tblTempUsageDetail_20' ) end [2025-03-08 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636975', 'tblTempVendorCDR_20' ) start [2025-03-08 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636975', 'tblTempVendorCDR_20' ) end [2025-03-08 18:27:18] Production.INFO: ProcessCDR(1,14636975,1,1,2) [2025-03-08 18:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636975', 'tblTempUsageDetail_20' ) start [2025-03-08 18:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636975', 'tblTempUsageDetail_20' ) end [2025-03-08 18:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:27:21] Production.INFO: ==30887== Releasing lock... [2025-03-08 18:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:27:21] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:28:05 [end_date_ymd] => 2025-03-08 18:28:05 [RateCDR] => 1 ) [2025-03-08 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:28:05' and `end` < '2025-03-08 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:28:17] Production.INFO: count ==2714 [2025-03-08 18:28:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:28:05 - End Time 2025-03-08 18:28:05 [2025-03-08 18:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636980', 'tblTempUsageDetail_20' ) start [2025-03-08 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636980', 'tblTempUsageDetail_20' ) end [2025-03-08 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636980', 'tblTempVendorCDR_20' ) start [2025-03-08 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636980', 'tblTempVendorCDR_20' ) end [2025-03-08 18:28:18] Production.INFO: ProcessCDR(1,14636980,1,1,2) [2025-03-08 18:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636980', 'tblTempUsageDetail_20' ) start [2025-03-08 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636980', 'tblTempUsageDetail_20' ) end [2025-03-08 18:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:28:23] Production.INFO: ==30961== Releasing lock... [2025-03-08 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:28:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 18:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:29:04 [end_date_ymd] => 2025-03-08 18:29:04 [RateCDR] => 1 ) [2025-03-08 18:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:29:04' and `end` < '2025-03-08 18:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:29:17] Production.INFO: count ==2713 [2025-03-08 18:29:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:29:04 - End Time 2025-03-08 18:29:04 [2025-03-08 18:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636985', 'tblTempUsageDetail_20' ) start [2025-03-08 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636985', 'tblTempUsageDetail_20' ) end [2025-03-08 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636985', 'tblTempVendorCDR_20' ) start [2025-03-08 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636985', 'tblTempVendorCDR_20' ) end [2025-03-08 18:29:18] Production.INFO: ProcessCDR(1,14636985,1,1,2) [2025-03-08 18:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636985', 'tblTempUsageDetail_20' ) start [2025-03-08 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636985', 'tblTempUsageDetail_20' ) end [2025-03-08 18:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:29:22] Production.INFO: ==31032== Releasing lock... [2025-03-08 18:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:29:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:30:06 [end_date_ymd] => 2025-03-08 18:30:06 [RateCDR] => 1 ) [2025-03-08 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:30:06' and `end` < '2025-03-08 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:30:18] Production.INFO: count ==2714 [2025-03-08 18:30:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:30:06 - End Time 2025-03-08 18:30:06 [2025-03-08 18:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636991', 'tblTempUsageDetail_20' ) start [2025-03-08 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636991', 'tblTempUsageDetail_20' ) end [2025-03-08 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636991', 'tblTempVendorCDR_20' ) start [2025-03-08 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636991', 'tblTempVendorCDR_20' ) end [2025-03-08 18:30:19] Production.INFO: ProcessCDR(1,14636991,1,1,2) [2025-03-08 18:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636991', 'tblTempUsageDetail_20' ) start [2025-03-08 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636991', 'tblTempUsageDetail_20' ) end [2025-03-08 18:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:30:24] Production.INFO: ==31107== Releasing lock... [2025-03-08 18:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:30:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:31:05 [end_date_ymd] => 2025-03-08 18:31:05 [RateCDR] => 1 ) [2025-03-08 18:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:31:05' and `end` < '2025-03-08 18:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:31:18] Production.INFO: count ==2722 [2025-03-08 18:31:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:31:05 - End Time 2025-03-08 18:31:05 [2025-03-08 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636996', 'tblTempUsageDetail_20' ) start [2025-03-08 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14636996', 'tblTempUsageDetail_20' ) end [2025-03-08 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636996', 'tblTempVendorCDR_20' ) start [2025-03-08 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14636996', 'tblTempVendorCDR_20' ) end [2025-03-08 18:31:19] Production.INFO: ProcessCDR(1,14636996,1,1,2) [2025-03-08 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14636996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14636996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14636996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14636996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636996', 'tblTempUsageDetail_20' ) start [2025-03-08 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14636996', 'tblTempUsageDetail_20' ) end [2025-03-08 18:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:31:22] Production.INFO: ==31221== Releasing lock... [2025-03-08 18:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:31:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:32:06 [end_date_ymd] => 2025-03-08 18:32:06 [RateCDR] => 1 ) [2025-03-08 18:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:32:06' and `end` < '2025-03-08 18:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:32:18] Production.INFO: count ==2708 [2025-03-08 18:32:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:32:06 - End Time 2025-03-08 18:32:06 [2025-03-08 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637001', 'tblTempUsageDetail_20' ) start [2025-03-08 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637001', 'tblTempUsageDetail_20' ) end [2025-03-08 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637001', 'tblTempVendorCDR_20' ) start [2025-03-08 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637001', 'tblTempVendorCDR_20' ) end [2025-03-08 18:32:19] Production.INFO: ProcessCDR(1,14637001,1,1,2) [2025-03-08 18:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637001', 'tblTempUsageDetail_20' ) start [2025-03-08 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637001', 'tblTempUsageDetail_20' ) end [2025-03-08 18:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:32:22] Production.INFO: ==31290== Releasing lock... [2025-03-08 18:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:32:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:33:05 [end_date_ymd] => 2025-03-08 18:33:05 [RateCDR] => 1 ) [2025-03-08 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:33:05' and `end` < '2025-03-08 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:33:18] Production.INFO: count ==2708 [2025-03-08 18:33:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:33:05 - End Time 2025-03-08 18:33:05 [2025-03-08 18:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637006', 'tblTempUsageDetail_20' ) start [2025-03-08 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637006', 'tblTempUsageDetail_20' ) end [2025-03-08 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637006', 'tblTempVendorCDR_20' ) start [2025-03-08 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637006', 'tblTempVendorCDR_20' ) end [2025-03-08 18:33:19] Production.INFO: ProcessCDR(1,14637006,1,1,2) [2025-03-08 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637006', 'tblTempUsageDetail_20' ) start [2025-03-08 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637006', 'tblTempUsageDetail_20' ) end [2025-03-08 18:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:33:23] Production.INFO: ==31369== Releasing lock... [2025-03-08 18:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:33:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:34:05 [end_date_ymd] => 2025-03-08 18:34:05 [RateCDR] => 1 ) [2025-03-08 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:34:05' and `end` < '2025-03-08 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:34:18] Production.INFO: count ==2706 [2025-03-08 18:34:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:34:05 - End Time 2025-03-08 18:34:05 [2025-03-08 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637011', 'tblTempUsageDetail_20' ) start [2025-03-08 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637011', 'tblTempUsageDetail_20' ) end [2025-03-08 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637011', 'tblTempVendorCDR_20' ) start [2025-03-08 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637011', 'tblTempVendorCDR_20' ) end [2025-03-08 18:34:19] Production.INFO: ProcessCDR(1,14637011,1,1,2) [2025-03-08 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637011', 'tblTempUsageDetail_20' ) start [2025-03-08 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637011', 'tblTempUsageDetail_20' ) end [2025-03-08 18:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:34:22] Production.INFO: ==31442== Releasing lock... [2025-03-08 18:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:34:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:35:06 [end_date_ymd] => 2025-03-08 18:35:06 [RateCDR] => 1 ) [2025-03-08 18:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:35:06' and `end` < '2025-03-08 18:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:35:18] Production.INFO: count ==2708 [2025-03-08 18:35:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:35:06 - End Time 2025-03-08 18:35:06 [2025-03-08 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637016', 'tblTempUsageDetail_20' ) start [2025-03-08 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637016', 'tblTempUsageDetail_20' ) end [2025-03-08 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637016', 'tblTempVendorCDR_20' ) start [2025-03-08 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637016', 'tblTempVendorCDR_20' ) end [2025-03-08 18:35:19] Production.INFO: ProcessCDR(1,14637016,1,1,2) [2025-03-08 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637016', 'tblTempUsageDetail_20' ) start [2025-03-08 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637016', 'tblTempUsageDetail_20' ) end [2025-03-08 18:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:35:23] Production.INFO: ==31514== Releasing lock... [2025-03-08 18:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:35:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:36:05 [end_date_ymd] => 2025-03-08 18:36:05 [RateCDR] => 1 ) [2025-03-08 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:36:05' and `end` < '2025-03-08 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:36:17] Production.INFO: count ==2707 [2025-03-08 18:36:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:36:05 - End Time 2025-03-08 18:36:05 [2025-03-08 18:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637021', 'tblTempUsageDetail_20' ) start [2025-03-08 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637021', 'tblTempUsageDetail_20' ) end [2025-03-08 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637021', 'tblTempVendorCDR_20' ) start [2025-03-08 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637021', 'tblTempVendorCDR_20' ) end [2025-03-08 18:36:18] Production.INFO: ProcessCDR(1,14637021,1,1,2) [2025-03-08 18:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637021', 'tblTempUsageDetail_20' ) start [2025-03-08 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637021', 'tblTempUsageDetail_20' ) end [2025-03-08 18:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:36:22] Production.INFO: ==31585== Releasing lock... [2025-03-08 18:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:36:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:37:05 [end_date_ymd] => 2025-03-08 18:37:05 [RateCDR] => 1 ) [2025-03-08 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:37:05' and `end` < '2025-03-08 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:37:18] Production.INFO: count ==2703 [2025-03-08 18:37:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:37:05 - End Time 2025-03-08 18:37:05 [2025-03-08 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637026', 'tblTempUsageDetail_20' ) start [2025-03-08 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637026', 'tblTempUsageDetail_20' ) end [2025-03-08 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637026', 'tblTempVendorCDR_20' ) start [2025-03-08 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637026', 'tblTempVendorCDR_20' ) end [2025-03-08 18:37:19] Production.INFO: ProcessCDR(1,14637026,1,1,2) [2025-03-08 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637026', 'tblTempUsageDetail_20' ) start [2025-03-08 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637026', 'tblTempUsageDetail_20' ) end [2025-03-08 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:37:23] Production.INFO: ==31656== Releasing lock... [2025-03-08 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:37:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:38:05 [end_date_ymd] => 2025-03-08 18:38:05 [RateCDR] => 1 ) [2025-03-08 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:38:05' and `end` < '2025-03-08 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:38:17] Production.INFO: count ==2702 [2025-03-08 18:38:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:38:05 - End Time 2025-03-08 18:38:05 [2025-03-08 18:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637031', 'tblTempUsageDetail_20' ) start [2025-03-08 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637031', 'tblTempUsageDetail_20' ) end [2025-03-08 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637031', 'tblTempVendorCDR_20' ) start [2025-03-08 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637031', 'tblTempVendorCDR_20' ) end [2025-03-08 18:38:18] Production.INFO: ProcessCDR(1,14637031,1,1,2) [2025-03-08 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637031', 'tblTempUsageDetail_20' ) start [2025-03-08 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637031', 'tblTempUsageDetail_20' ) end [2025-03-08 18:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:38:22] Production.INFO: ==31730== Releasing lock... [2025-03-08 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:38:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:39:06 [end_date_ymd] => 2025-03-08 18:39:06 [RateCDR] => 1 ) [2025-03-08 18:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:39:06' and `end` < '2025-03-08 18:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:39:18] Production.INFO: count ==2705 [2025-03-08 18:39:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:39:06 - End Time 2025-03-08 18:39:06 [2025-03-08 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637036', 'tblTempUsageDetail_20' ) start [2025-03-08 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637036', 'tblTempUsageDetail_20' ) end [2025-03-08 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637036', 'tblTempVendorCDR_20' ) start [2025-03-08 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637036', 'tblTempVendorCDR_20' ) end [2025-03-08 18:39:19] Production.INFO: ProcessCDR(1,14637036,1,1,2) [2025-03-08 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637036', 'tblTempUsageDetail_20' ) start [2025-03-08 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637036', 'tblTempUsageDetail_20' ) end [2025-03-08 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:39:24] Production.INFO: ==31806== Releasing lock... [2025-03-08 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:39:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:40:05 [end_date_ymd] => 2025-03-08 18:40:05 [RateCDR] => 1 ) [2025-03-08 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:40:05' and `end` < '2025-03-08 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:40:17] Production.INFO: count ==2705 [2025-03-08 18:40:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:40:05 - End Time 2025-03-08 18:40:05 [2025-03-08 18:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637041', 'tblTempUsageDetail_20' ) start [2025-03-08 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637041', 'tblTempUsageDetail_20' ) end [2025-03-08 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637041', 'tblTempVendorCDR_20' ) start [2025-03-08 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637041', 'tblTempVendorCDR_20' ) end [2025-03-08 18:40:18] Production.INFO: ProcessCDR(1,14637041,1,1,2) [2025-03-08 18:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637041', 'tblTempUsageDetail_20' ) start [2025-03-08 18:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637041', 'tblTempUsageDetail_20' ) end [2025-03-08 18:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:40:23] Production.INFO: ==31882== Releasing lock... [2025-03-08 18:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:40:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:41:05 [end_date_ymd] => 2025-03-08 18:41:05 [RateCDR] => 1 ) [2025-03-08 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:41:05' and `end` < '2025-03-08 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:41:17] Production.INFO: count ==2715 [2025-03-08 18:41:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:41:05 - End Time 2025-03-08 18:41:05 [2025-03-08 18:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637047', 'tblTempUsageDetail_20' ) start [2025-03-08 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637047', 'tblTempUsageDetail_20' ) end [2025-03-08 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637047', 'tblTempVendorCDR_20' ) start [2025-03-08 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637047', 'tblTempVendorCDR_20' ) end [2025-03-08 18:41:19] Production.INFO: ProcessCDR(1,14637047,1,1,2) [2025-03-08 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637047', 'tblTempUsageDetail_20' ) start [2025-03-08 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637047', 'tblTempUsageDetail_20' ) end [2025-03-08 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:41:23] Production.INFO: ==31961== Releasing lock... [2025-03-08 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:41:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 18:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:42:04 [end_date_ymd] => 2025-03-08 18:42:04 [RateCDR] => 1 ) [2025-03-08 18:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:42:04' and `end` < '2025-03-08 18:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:42:16] Production.INFO: count ==2717 [2025-03-08 18:42:17] Production.ERROR: pbx CDR StartTime 2025-03-08 15:42:04 - End Time 2025-03-08 18:42:04 [2025-03-08 18:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637052', 'tblTempUsageDetail_20' ) start [2025-03-08 18:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637052', 'tblTempUsageDetail_20' ) end [2025-03-08 18:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637052', 'tblTempVendorCDR_20' ) start [2025-03-08 18:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637052', 'tblTempVendorCDR_20' ) end [2025-03-08 18:42:17] Production.INFO: ProcessCDR(1,14637052,1,1,2) [2025-03-08 18:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637052', 'tblTempUsageDetail_20' ) start [2025-03-08 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637052', 'tblTempUsageDetail_20' ) end [2025-03-08 18:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:42:22] Production.INFO: ==32039== Releasing lock... [2025-03-08 18:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:42:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:43:05 [end_date_ymd] => 2025-03-08 18:43:05 [RateCDR] => 1 ) [2025-03-08 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:43:05' and `end` < '2025-03-08 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:43:17] Production.INFO: count ==2718 [2025-03-08 18:43:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:43:05 - End Time 2025-03-08 18:43:05 [2025-03-08 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637057', 'tblTempUsageDetail_20' ) start [2025-03-08 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637057', 'tblTempUsageDetail_20' ) end [2025-03-08 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637057', 'tblTempVendorCDR_20' ) start [2025-03-08 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637057', 'tblTempVendorCDR_20' ) end [2025-03-08 18:43:18] Production.INFO: ProcessCDR(1,14637057,1,1,2) [2025-03-08 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637057', 'tblTempUsageDetail_20' ) start [2025-03-08 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637057', 'tblTempUsageDetail_20' ) end [2025-03-08 18:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:43:22] Production.INFO: ==32111== Releasing lock... [2025-03-08 18:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:43:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:44:05 [end_date_ymd] => 2025-03-08 18:44:05 [RateCDR] => 1 ) [2025-03-08 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:44:05' and `end` < '2025-03-08 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:44:18] Production.INFO: count ==2712 [2025-03-08 18:44:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:44:05 - End Time 2025-03-08 18:44:05 [2025-03-08 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637062', 'tblTempUsageDetail_20' ) start [2025-03-08 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637062', 'tblTempUsageDetail_20' ) end [2025-03-08 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637062', 'tblTempVendorCDR_20' ) start [2025-03-08 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637062', 'tblTempVendorCDR_20' ) end [2025-03-08 18:44:19] Production.INFO: ProcessCDR(1,14637062,1,1,2) [2025-03-08 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637062', 'tblTempUsageDetail_20' ) start [2025-03-08 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637062', 'tblTempUsageDetail_20' ) end [2025-03-08 18:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:44:22] Production.INFO: ==32182== Releasing lock... [2025-03-08 18:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:44:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:45:04 [end_date_ymd] => 2025-03-08 18:45:04 [RateCDR] => 1 ) [2025-03-08 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:45:04' and `end` < '2025-03-08 18:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:45:17] Production.INFO: count ==2712 [2025-03-08 18:45:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:45:04 - End Time 2025-03-08 18:45:04 [2025-03-08 18:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637067', 'tblTempUsageDetail_20' ) start [2025-03-08 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637067', 'tblTempUsageDetail_20' ) end [2025-03-08 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637067', 'tblTempVendorCDR_20' ) start [2025-03-08 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637067', 'tblTempVendorCDR_20' ) end [2025-03-08 18:45:18] Production.INFO: ProcessCDR(1,14637067,1,1,2) [2025-03-08 18:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637067', 'tblTempUsageDetail_20' ) start [2025-03-08 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637067', 'tblTempUsageDetail_20' ) end [2025-03-08 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:45:23] Production.INFO: ==32253== Releasing lock... [2025-03-08 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:45:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:46:05 [end_date_ymd] => 2025-03-08 18:46:05 [RateCDR] => 1 ) [2025-03-08 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:46:05' and `end` < '2025-03-08 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:46:18] Production.INFO: count ==2705 [2025-03-08 18:46:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:46:05 - End Time 2025-03-08 18:46:05 [2025-03-08 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637072', 'tblTempUsageDetail_20' ) start [2025-03-08 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637072', 'tblTempUsageDetail_20' ) end [2025-03-08 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637072', 'tblTempVendorCDR_20' ) start [2025-03-08 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637072', 'tblTempVendorCDR_20' ) end [2025-03-08 18:46:19] Production.INFO: ProcessCDR(1,14637072,1,1,2) [2025-03-08 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637072', 'tblTempUsageDetail_20' ) start [2025-03-08 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637072', 'tblTempUsageDetail_20' ) end [2025-03-08 18:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:46:22] Production.INFO: ==32363== Releasing lock... [2025-03-08 18:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:46:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:47:05 [end_date_ymd] => 2025-03-08 18:47:05 [RateCDR] => 1 ) [2025-03-08 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:47:05' and `end` < '2025-03-08 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:47:17] Production.INFO: count ==2704 [2025-03-08 18:47:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:47:05 - End Time 2025-03-08 18:47:05 [2025-03-08 18:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637077', 'tblTempUsageDetail_20' ) start [2025-03-08 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637077', 'tblTempUsageDetail_20' ) end [2025-03-08 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637077', 'tblTempVendorCDR_20' ) start [2025-03-08 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637077', 'tblTempVendorCDR_20' ) end [2025-03-08 18:47:18] Production.INFO: ProcessCDR(1,14637077,1,1,2) [2025-03-08 18:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637077', 'tblTempUsageDetail_20' ) start [2025-03-08 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637077', 'tblTempUsageDetail_20' ) end [2025-03-08 18:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:47:22] Production.INFO: ==32436== Releasing lock... [2025-03-08 18:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:47:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:48:05 [end_date_ymd] => 2025-03-08 18:48:05 [RateCDR] => 1 ) [2025-03-08 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:48:05' and `end` < '2025-03-08 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:48:18] Production.INFO: count ==2694 [2025-03-08 18:48:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:48:05 - End Time 2025-03-08 18:48:05 [2025-03-08 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637082', 'tblTempUsageDetail_20' ) start [2025-03-08 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637082', 'tblTempUsageDetail_20' ) end [2025-03-08 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637082', 'tblTempVendorCDR_20' ) start [2025-03-08 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637082', 'tblTempVendorCDR_20' ) end [2025-03-08 18:48:19] Production.INFO: ProcessCDR(1,14637082,1,1,2) [2025-03-08 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637082', 'tblTempUsageDetail_20' ) start [2025-03-08 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637082', 'tblTempUsageDetail_20' ) end [2025-03-08 18:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:48:22] Production.INFO: ==32508== Releasing lock... [2025-03-08 18:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:48:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:49:05 [end_date_ymd] => 2025-03-08 18:49:05 [RateCDR] => 1 ) [2025-03-08 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:49:05' and `end` < '2025-03-08 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:49:17] Production.INFO: count ==2670 [2025-03-08 18:49:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:49:05 - End Time 2025-03-08 18:49:05 [2025-03-08 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637087', 'tblTempUsageDetail_20' ) start [2025-03-08 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637087', 'tblTempUsageDetail_20' ) end [2025-03-08 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637087', 'tblTempVendorCDR_20' ) start [2025-03-08 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637087', 'tblTempVendorCDR_20' ) end [2025-03-08 18:49:18] Production.INFO: ProcessCDR(1,14637087,1,1,2) [2025-03-08 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637087', 'tblTempUsageDetail_20' ) start [2025-03-08 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637087', 'tblTempUsageDetail_20' ) end [2025-03-08 18:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:49:21] Production.INFO: ==32582== Releasing lock... [2025-03-08 18:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:49:21] Production.INFO: 48 MB #Memory Used# [2025-03-08 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:50:06 [end_date_ymd] => 2025-03-08 18:50:06 [RateCDR] => 1 ) [2025-03-08 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:50:06' and `end` < '2025-03-08 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:50:18] Production.INFO: count ==2662 [2025-03-08 18:50:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:50:06 - End Time 2025-03-08 18:50:06 [2025-03-08 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637093', 'tblTempUsageDetail_20' ) start [2025-03-08 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637093', 'tblTempUsageDetail_20' ) end [2025-03-08 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637093', 'tblTempVendorCDR_20' ) start [2025-03-08 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637093', 'tblTempVendorCDR_20' ) end [2025-03-08 18:50:19] Production.INFO: ProcessCDR(1,14637093,1,1,2) [2025-03-08 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637093', 'tblTempUsageDetail_20' ) start [2025-03-08 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637093', 'tblTempUsageDetail_20' ) end [2025-03-08 18:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:50:22] Production.INFO: ==32658== Releasing lock... [2025-03-08 18:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:50:22] Production.INFO: 48 MB #Memory Used# [2025-03-08 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:51:05 [end_date_ymd] => 2025-03-08 18:51:05 [RateCDR] => 1 ) [2025-03-08 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:51:05' and `end` < '2025-03-08 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:51:17] Production.INFO: count ==2648 [2025-03-08 18:51:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:51:05 - End Time 2025-03-08 18:51:05 [2025-03-08 18:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637098', 'tblTempUsageDetail_20' ) start [2025-03-08 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637098', 'tblTempUsageDetail_20' ) end [2025-03-08 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637098', 'tblTempVendorCDR_20' ) start [2025-03-08 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637098', 'tblTempVendorCDR_20' ) end [2025-03-08 18:51:18] Production.INFO: ProcessCDR(1,14637098,1,1,2) [2025-03-08 18:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637098', 'tblTempUsageDetail_20' ) start [2025-03-08 18:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637098', 'tblTempUsageDetail_20' ) end [2025-03-08 18:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:51:21] Production.INFO: ==32732== Releasing lock... [2025-03-08 18:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:51:21] Production.INFO: 48 MB #Memory Used# [2025-03-08 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:52:05 [end_date_ymd] => 2025-03-08 18:52:05 [RateCDR] => 1 ) [2025-03-08 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:52:05' and `end` < '2025-03-08 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:52:18] Production.INFO: count ==2648 [2025-03-08 18:52:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:52:05 - End Time 2025-03-08 18:52:05 [2025-03-08 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637103', 'tblTempUsageDetail_20' ) start [2025-03-08 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637103', 'tblTempUsageDetail_20' ) end [2025-03-08 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637103', 'tblTempVendorCDR_20' ) start [2025-03-08 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637103', 'tblTempVendorCDR_20' ) end [2025-03-08 18:52:19] Production.INFO: ProcessCDR(1,14637103,1,1,2) [2025-03-08 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637103', 'tblTempUsageDetail_20' ) start [2025-03-08 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637103', 'tblTempUsageDetail_20' ) end [2025-03-08 18:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:52:23] Production.INFO: ==366== Releasing lock... [2025-03-08 18:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:52:23] Production.INFO: 48 MB #Memory Used# [2025-03-08 18:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:53:06 [end_date_ymd] => 2025-03-08 18:53:06 [RateCDR] => 1 ) [2025-03-08 18:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:53:06' and `end` < '2025-03-08 18:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:53:18] Production.INFO: count ==2646 [2025-03-08 18:53:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:53:06 - End Time 2025-03-08 18:53:06 [2025-03-08 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637108', 'tblTempUsageDetail_20' ) start [2025-03-08 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637108', 'tblTempUsageDetail_20' ) end [2025-03-08 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637108', 'tblTempVendorCDR_20' ) start [2025-03-08 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637108', 'tblTempVendorCDR_20' ) end [2025-03-08 18:53:19] Production.INFO: ProcessCDR(1,14637108,1,1,2) [2025-03-08 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637108', 'tblTempUsageDetail_20' ) start [2025-03-08 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637108', 'tblTempUsageDetail_20' ) end [2025-03-08 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:53:24] Production.INFO: ==444== Releasing lock... [2025-03-08 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:53:24] Production.INFO: 48 MB #Memory Used# [2025-03-08 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:54:05 [end_date_ymd] => 2025-03-08 18:54:05 [RateCDR] => 1 ) [2025-03-08 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:54:05' and `end` < '2025-03-08 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:54:17] Production.INFO: count ==2644 [2025-03-08 18:54:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:54:05 - End Time 2025-03-08 18:54:05 [2025-03-08 18:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637113', 'tblTempUsageDetail_20' ) start [2025-03-08 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637113', 'tblTempUsageDetail_20' ) end [2025-03-08 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637113', 'tblTempVendorCDR_20' ) start [2025-03-08 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637113', 'tblTempVendorCDR_20' ) end [2025-03-08 18:54:18] Production.INFO: ProcessCDR(1,14637113,1,1,2) [2025-03-08 18:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637113', 'tblTempUsageDetail_20' ) start [2025-03-08 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637113', 'tblTempUsageDetail_20' ) end [2025-03-08 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:54:23] Production.INFO: ==520== Releasing lock... [2025-03-08 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:54:23] Production.INFO: 48 MB #Memory Used# [2025-03-08 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:55:05 [end_date_ymd] => 2025-03-08 18:55:05 [RateCDR] => 1 ) [2025-03-08 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:55:05' and `end` < '2025-03-08 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:55:18] Production.INFO: count ==2644 [2025-03-08 18:55:19] Production.ERROR: pbx CDR StartTime 2025-03-08 15:55:05 - End Time 2025-03-08 18:55:05 [2025-03-08 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637118', 'tblTempUsageDetail_20' ) start [2025-03-08 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637118', 'tblTempUsageDetail_20' ) end [2025-03-08 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637118', 'tblTempVendorCDR_20' ) start [2025-03-08 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637118', 'tblTempVendorCDR_20' ) end [2025-03-08 18:55:19] Production.INFO: ProcessCDR(1,14637118,1,1,2) [2025-03-08 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637118', 'tblTempUsageDetail_20' ) start [2025-03-08 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637118', 'tblTempUsageDetail_20' ) end [2025-03-08 18:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:55:22] Production.INFO: ==597== Releasing lock... [2025-03-08 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:55:22] Production.INFO: 48 MB #Memory Used# [2025-03-08 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:56:05 [end_date_ymd] => 2025-03-08 18:56:05 [RateCDR] => 1 ) [2025-03-08 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:56:05' and `end` < '2025-03-08 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:56:17] Production.INFO: count ==2640 [2025-03-08 18:56:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:56:05 - End Time 2025-03-08 18:56:05 [2025-03-08 18:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637123', 'tblTempUsageDetail_20' ) start [2025-03-08 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637123', 'tblTempUsageDetail_20' ) end [2025-03-08 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637123', 'tblTempVendorCDR_20' ) start [2025-03-08 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637123', 'tblTempVendorCDR_20' ) end [2025-03-08 18:56:18] Production.INFO: ProcessCDR(1,14637123,1,1,2) [2025-03-08 18:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637123', 'tblTempUsageDetail_20' ) start [2025-03-08 18:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637123', 'tblTempUsageDetail_20' ) end [2025-03-08 18:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:56:21] Production.INFO: ==691== Releasing lock... [2025-03-08 18:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:56:21] Production.INFO: 47.75 MB #Memory Used# [2025-03-08 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:57:05 [end_date_ymd] => 2025-03-08 18:57:05 [RateCDR] => 1 ) [2025-03-08 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:57:05' and `end` < '2025-03-08 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:57:17] Production.INFO: count ==2636 [2025-03-08 18:57:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:57:05 - End Time 2025-03-08 18:57:05 [2025-03-08 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637128', 'tblTempUsageDetail_20' ) start [2025-03-08 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637128', 'tblTempUsageDetail_20' ) end [2025-03-08 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637128', 'tblTempVendorCDR_20' ) start [2025-03-08 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637128', 'tblTempVendorCDR_20' ) end [2025-03-08 18:57:18] Production.INFO: ProcessCDR(1,14637128,1,1,2) [2025-03-08 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637128', 'tblTempUsageDetail_20' ) start [2025-03-08 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637128', 'tblTempUsageDetail_20' ) end [2025-03-08 18:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:57:22] Production.INFO: ==775== Releasing lock... [2025-03-08 18:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:57:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-08 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:58:05 [end_date_ymd] => 2025-03-08 18:58:05 [RateCDR] => 1 ) [2025-03-08 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:58:05' and `end` < '2025-03-08 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:58:17] Production.INFO: count ==2639 [2025-03-08 18:58:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:58:05 - End Time 2025-03-08 18:58:05 [2025-03-08 18:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637133', 'tblTempUsageDetail_20' ) start [2025-03-08 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637133', 'tblTempUsageDetail_20' ) end [2025-03-08 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637133', 'tblTempVendorCDR_20' ) start [2025-03-08 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637133', 'tblTempVendorCDR_20' ) end [2025-03-08 18:58:18] Production.INFO: ProcessCDR(1,14637133,1,1,2) [2025-03-08 18:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637133', 'tblTempUsageDetail_20' ) start [2025-03-08 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637133', 'tblTempUsageDetail_20' ) end [2025-03-08 18:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:58:23] Production.INFO: ==844== Releasing lock... [2025-03-08 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:58:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-08 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 15:59:05 [end_date_ymd] => 2025-03-08 18:59:05 [RateCDR] => 1 ) [2025-03-08 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 15:59:05' and `end` < '2025-03-08 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 18:59:17] Production.INFO: count ==2638 [2025-03-08 18:59:18] Production.ERROR: pbx CDR StartTime 2025-03-08 15:59:05 - End Time 2025-03-08 18:59:05 [2025-03-08 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637138', 'tblTempUsageDetail_20' ) start [2025-03-08 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637138', 'tblTempUsageDetail_20' ) end [2025-03-08 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637138', 'tblTempVendorCDR_20' ) start [2025-03-08 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637138', 'tblTempVendorCDR_20' ) end [2025-03-08 18:59:18] Production.INFO: ProcessCDR(1,14637138,1,1,2) [2025-03-08 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637138', 'tblTempUsageDetail_20' ) start [2025-03-08 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637138', 'tblTempUsageDetail_20' ) end [2025-03-08 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 18:59:23] Production.INFO: ==919== Releasing lock... [2025-03-08 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 18:59:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-08 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:00:05 [end_date_ymd] => 2025-03-08 19:00:05 [RateCDR] => 1 ) [2025-03-08 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:00:05' and `end` < '2025-03-08 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:00:18] Production.INFO: count ==2640 [2025-03-08 19:00:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:00:05 - End Time 2025-03-08 19:00:05 [2025-03-08 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637144', 'tblTempUsageDetail_20' ) start [2025-03-08 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637144', 'tblTempUsageDetail_20' ) end [2025-03-08 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637144', 'tblTempVendorCDR_20' ) start [2025-03-08 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637144', 'tblTempVendorCDR_20' ) end [2025-03-08 19:00:19] Production.INFO: ProcessCDR(1,14637144,1,1,2) [2025-03-08 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637144', 'tblTempUsageDetail_20' ) start [2025-03-08 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637144', 'tblTempUsageDetail_20' ) end [2025-03-08 19:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:00:22] Production.INFO: ==993== Releasing lock... [2025-03-08 19:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:00:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-08 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:01:05 [end_date_ymd] => 2025-03-08 19:01:05 [RateCDR] => 1 ) [2025-03-08 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:01:05' and `end` < '2025-03-08 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:01:17] Production.INFO: count ==2648 [2025-03-08 19:01:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:01:05 - End Time 2025-03-08 19:01:05 [2025-03-08 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637149', 'tblTempUsageDetail_20' ) start [2025-03-08 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637149', 'tblTempUsageDetail_20' ) end [2025-03-08 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637149', 'tblTempVendorCDR_20' ) start [2025-03-08 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637149', 'tblTempVendorCDR_20' ) end [2025-03-08 19:01:18] Production.INFO: ProcessCDR(1,14637149,1,1,2) [2025-03-08 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637149', 'tblTempUsageDetail_20' ) start [2025-03-08 19:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637149', 'tblTempUsageDetail_20' ) end [2025-03-08 19:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:01:21] Production.INFO: ==1084== Releasing lock... [2025-03-08 19:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:01:21] Production.INFO: 48 MB #Memory Used# [2025-03-08 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:02:05 [end_date_ymd] => 2025-03-08 19:02:05 [RateCDR] => 1 ) [2025-03-08 19:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:02:05' and `end` < '2025-03-08 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:02:18] Production.INFO: count ==2643 [2025-03-08 19:02:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:02:05 - End Time 2025-03-08 19:02:05 [2025-03-08 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637154', 'tblTempUsageDetail_20' ) start [2025-03-08 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637154', 'tblTempUsageDetail_20' ) end [2025-03-08 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637154', 'tblTempVendorCDR_20' ) start [2025-03-08 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637154', 'tblTempVendorCDR_20' ) end [2025-03-08 19:02:19] Production.INFO: ProcessCDR(1,14637154,1,1,2) [2025-03-08 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637154', 'tblTempUsageDetail_20' ) start [2025-03-08 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637154', 'tblTempUsageDetail_20' ) end [2025-03-08 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:02:24] Production.INFO: ==1291== Releasing lock... [2025-03-08 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:02:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-08 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:03:05 [end_date_ymd] => 2025-03-08 19:03:05 [RateCDR] => 1 ) [2025-03-08 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:03:05' and `end` < '2025-03-08 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:03:17] Production.INFO: count ==2646 [2025-03-08 19:03:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:03:05 - End Time 2025-03-08 19:03:05 [2025-03-08 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637159', 'tblTempUsageDetail_20' ) start [2025-03-08 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637159', 'tblTempUsageDetail_20' ) end [2025-03-08 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637159', 'tblTempVendorCDR_20' ) start [2025-03-08 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637159', 'tblTempVendorCDR_20' ) end [2025-03-08 19:03:18] Production.INFO: ProcessCDR(1,14637159,1,1,2) [2025-03-08 19:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637159', 'tblTempUsageDetail_20' ) start [2025-03-08 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637159', 'tblTempUsageDetail_20' ) end [2025-03-08 19:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:03:22] Production.INFO: ==1362== Releasing lock... [2025-03-08 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:03:22] Production.INFO: 48 MB #Memory Used# [2025-03-08 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:04:05 [end_date_ymd] => 2025-03-08 19:04:05 [RateCDR] => 1 ) [2025-03-08 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:04:05' and `end` < '2025-03-08 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:04:17] Production.INFO: count ==2644 [2025-03-08 19:04:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:04:05 - End Time 2025-03-08 19:04:05 [2025-03-08 19:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637164', 'tblTempUsageDetail_20' ) start [2025-03-08 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637164', 'tblTempUsageDetail_20' ) end [2025-03-08 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637164', 'tblTempVendorCDR_20' ) start [2025-03-08 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637164', 'tblTempVendorCDR_20' ) end [2025-03-08 19:04:18] Production.INFO: ProcessCDR(1,14637164,1,1,2) [2025-03-08 19:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637164', 'tblTempUsageDetail_20' ) start [2025-03-08 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637164', 'tblTempUsageDetail_20' ) end [2025-03-08 19:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:04:22] Production.INFO: ==1437== Releasing lock... [2025-03-08 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:04:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:05:05 [end_date_ymd] => 2025-03-08 19:05:05 [RateCDR] => 1 ) [2025-03-08 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:05:05' and `end` < '2025-03-08 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:05:17] Production.INFO: count ==2644 [2025-03-08 19:05:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:05:05 - End Time 2025-03-08 19:05:05 [2025-03-08 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637169', 'tblTempUsageDetail_20' ) start [2025-03-08 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637169', 'tblTempUsageDetail_20' ) end [2025-03-08 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637169', 'tblTempVendorCDR_20' ) start [2025-03-08 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637169', 'tblTempVendorCDR_20' ) end [2025-03-08 19:05:18] Production.INFO: ProcessCDR(1,14637169,1,1,2) [2025-03-08 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637169', 'tblTempUsageDetail_20' ) start [2025-03-08 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637169', 'tblTempUsageDetail_20' ) end [2025-03-08 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:05:22] Production.INFO: ==1626== Releasing lock... [2025-03-08 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:05:22] Production.INFO: 48 MB #Memory Used# [2025-03-08 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:06:05 [end_date_ymd] => 2025-03-08 19:06:05 [RateCDR] => 1 ) [2025-03-08 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:06:05' and `end` < '2025-03-08 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:06:18] Production.INFO: count ==2645 [2025-03-08 19:06:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:06:05 - End Time 2025-03-08 19:06:05 [2025-03-08 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637174', 'tblTempUsageDetail_20' ) start [2025-03-08 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637174', 'tblTempUsageDetail_20' ) end [2025-03-08 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637174', 'tblTempVendorCDR_20' ) start [2025-03-08 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637174', 'tblTempVendorCDR_20' ) end [2025-03-08 19:06:19] Production.INFO: ProcessCDR(1,14637174,1,1,2) [2025-03-08 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637174', 'tblTempUsageDetail_20' ) start [2025-03-08 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637174', 'tblTempUsageDetail_20' ) end [2025-03-08 19:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:06:22] Production.INFO: ==1703== Releasing lock... [2025-03-08 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:06:22] Production.INFO: 48 MB #Memory Used# [2025-03-08 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:07:05 [end_date_ymd] => 2025-03-08 19:07:05 [RateCDR] => 1 ) [2025-03-08 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:07:05' and `end` < '2025-03-08 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:07:17] Production.INFO: count ==2646 [2025-03-08 19:07:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:07:05 - End Time 2025-03-08 19:07:05 [2025-03-08 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637179', 'tblTempUsageDetail_20' ) start [2025-03-08 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637179', 'tblTempUsageDetail_20' ) end [2025-03-08 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637179', 'tblTempVendorCDR_20' ) start [2025-03-08 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637179', 'tblTempVendorCDR_20' ) end [2025-03-08 19:07:18] Production.INFO: ProcessCDR(1,14637179,1,1,2) [2025-03-08 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637179', 'tblTempUsageDetail_20' ) start [2025-03-08 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637179', 'tblTempUsageDetail_20' ) end [2025-03-08 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:07:23] Production.INFO: ==1778== Releasing lock... [2025-03-08 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:07:23] Production.INFO: 48 MB #Memory Used# [2025-03-08 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:08:05 [end_date_ymd] => 2025-03-08 19:08:05 [RateCDR] => 1 ) [2025-03-08 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:08:05' and `end` < '2025-03-08 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:08:18] Production.INFO: count ==2646 [2025-03-08 19:08:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:08:05 - End Time 2025-03-08 19:08:05 [2025-03-08 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637184', 'tblTempUsageDetail_20' ) start [2025-03-08 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637184', 'tblTempUsageDetail_20' ) end [2025-03-08 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637184', 'tblTempVendorCDR_20' ) start [2025-03-08 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637184', 'tblTempVendorCDR_20' ) end [2025-03-08 19:08:19] Production.INFO: ProcessCDR(1,14637184,1,1,2) [2025-03-08 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637184', 'tblTempUsageDetail_20' ) start [2025-03-08 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637184', 'tblTempUsageDetail_20' ) end [2025-03-08 19:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:08:22] Production.INFO: ==1932== Releasing lock... [2025-03-08 19:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:08:22] Production.INFO: 48 MB #Memory Used# [2025-03-08 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:09:05 [end_date_ymd] => 2025-03-08 19:09:05 [RateCDR] => 1 ) [2025-03-08 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:09:05' and `end` < '2025-03-08 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:09:17] Production.INFO: count ==2649 [2025-03-08 19:09:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:09:05 - End Time 2025-03-08 19:09:05 [2025-03-08 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637189', 'tblTempUsageDetail_20' ) start [2025-03-08 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637189', 'tblTempUsageDetail_20' ) end [2025-03-08 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637189', 'tblTempVendorCDR_20' ) start [2025-03-08 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637189', 'tblTempVendorCDR_20' ) end [2025-03-08 19:09:19] Production.INFO: ProcessCDR(1,14637189,1,1,2) [2025-03-08 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637189', 'tblTempUsageDetail_20' ) start [2025-03-08 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637189', 'tblTempUsageDetail_20' ) end [2025-03-08 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:09:22] Production.INFO: ==2004== Releasing lock... [2025-03-08 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:09:22] Production.INFO: 48 MB #Memory Used# [2025-03-08 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:10:06 [end_date_ymd] => 2025-03-08 19:10:06 [RateCDR] => 1 ) [2025-03-08 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:10:06' and `end` < '2025-03-08 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:10:18] Production.INFO: count ==2650 [2025-03-08 19:10:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:10:06 - End Time 2025-03-08 19:10:06 [2025-03-08 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637195', 'tblTempUsageDetail_20' ) start [2025-03-08 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637195', 'tblTempUsageDetail_20' ) end [2025-03-08 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637195', 'tblTempVendorCDR_20' ) start [2025-03-08 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637195', 'tblTempVendorCDR_20' ) end [2025-03-08 19:10:19] Production.INFO: ProcessCDR(1,14637195,1,1,2) [2025-03-08 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637195', 'tblTempUsageDetail_20' ) start [2025-03-08 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637195', 'tblTempUsageDetail_20' ) end [2025-03-08 19:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:10:22] Production.INFO: ==2076== Releasing lock... [2025-03-08 19:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:10:22] Production.INFO: 48 MB #Memory Used# [2025-03-08 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:11:05 [end_date_ymd] => 2025-03-08 19:11:05 [RateCDR] => 1 ) [2025-03-08 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:11:05' and `end` < '2025-03-08 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:11:17] Production.INFO: count ==2667 [2025-03-08 19:11:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:11:05 - End Time 2025-03-08 19:11:05 [2025-03-08 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637200', 'tblTempUsageDetail_20' ) start [2025-03-08 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637200', 'tblTempUsageDetail_20' ) end [2025-03-08 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637200', 'tblTempVendorCDR_20' ) start [2025-03-08 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637200', 'tblTempVendorCDR_20' ) end [2025-03-08 19:11:18] Production.INFO: ProcessCDR(1,14637200,1,1,2) [2025-03-08 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637200', 'tblTempUsageDetail_20' ) start [2025-03-08 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637200', 'tblTempUsageDetail_20' ) end [2025-03-08 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:11:23] Production.INFO: ==2150== Releasing lock... [2025-03-08 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:11:23] Production.INFO: 48 MB #Memory Used# [2025-03-08 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:12:05 [end_date_ymd] => 2025-03-08 19:12:05 [RateCDR] => 1 ) [2025-03-08 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:12:05' and `end` < '2025-03-08 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:12:18] Production.INFO: count ==2667 [2025-03-08 19:12:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:12:05 - End Time 2025-03-08 19:12:05 [2025-03-08 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637205', 'tblTempUsageDetail_20' ) start [2025-03-08 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637205', 'tblTempUsageDetail_20' ) end [2025-03-08 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637205', 'tblTempVendorCDR_20' ) start [2025-03-08 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637205', 'tblTempVendorCDR_20' ) end [2025-03-08 19:12:19] Production.INFO: ProcessCDR(1,14637205,1,1,2) [2025-03-08 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637205', 'tblTempUsageDetail_20' ) start [2025-03-08 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637205', 'tblTempUsageDetail_20' ) end [2025-03-08 19:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:12:22] Production.INFO: ==2315== Releasing lock... [2025-03-08 19:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:12:22] Production.INFO: 48 MB #Memory Used# [2025-03-08 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:13:05 [end_date_ymd] => 2025-03-08 19:13:05 [RateCDR] => 1 ) [2025-03-08 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:13:05' and `end` < '2025-03-08 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:13:18] Production.INFO: count ==2665 [2025-03-08 19:13:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:13:05 - End Time 2025-03-08 19:13:05 [2025-03-08 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637210', 'tblTempUsageDetail_20' ) start [2025-03-08 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637210', 'tblTempUsageDetail_20' ) end [2025-03-08 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637210', 'tblTempVendorCDR_20' ) start [2025-03-08 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637210', 'tblTempVendorCDR_20' ) end [2025-03-08 19:13:18] Production.INFO: ProcessCDR(1,14637210,1,1,2) [2025-03-08 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637210', 'tblTempUsageDetail_20' ) start [2025-03-08 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637210', 'tblTempUsageDetail_20' ) end [2025-03-08 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:13:22] Production.INFO: ==2387== Releasing lock... [2025-03-08 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:13:22] Production.INFO: 48.25 MB #Memory Used# [2025-03-08 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:14:05 [end_date_ymd] => 2025-03-08 19:14:05 [RateCDR] => 1 ) [2025-03-08 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:14:05' and `end` < '2025-03-08 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:14:18] Production.INFO: count ==2667 [2025-03-08 19:14:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:14:05 - End Time 2025-03-08 19:14:05 [2025-03-08 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637215', 'tblTempUsageDetail_20' ) start [2025-03-08 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637215', 'tblTempUsageDetail_20' ) end [2025-03-08 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637215', 'tblTempVendorCDR_20' ) start [2025-03-08 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637215', 'tblTempVendorCDR_20' ) end [2025-03-08 19:14:18] Production.INFO: ProcessCDR(1,14637215,1,1,2) [2025-03-08 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637215', 'tblTempUsageDetail_20' ) start [2025-03-08 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637215', 'tblTempUsageDetail_20' ) end [2025-03-08 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:14:22] Production.INFO: ==2459== Releasing lock... [2025-03-08 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:14:22] Production.INFO: 48 MB #Memory Used# [2025-03-08 19:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:15:06 [end_date_ymd] => 2025-03-08 19:15:06 [RateCDR] => 1 ) [2025-03-08 19:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:15:06' and `end` < '2025-03-08 19:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:15:18] Production.INFO: count ==2665 [2025-03-08 19:15:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:15:06 - End Time 2025-03-08 19:15:06 [2025-03-08 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637220', 'tblTempUsageDetail_20' ) start [2025-03-08 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637220', 'tblTempUsageDetail_20' ) end [2025-03-08 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637220', 'tblTempVendorCDR_20' ) start [2025-03-08 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637220', 'tblTempVendorCDR_20' ) end [2025-03-08 19:15:19] Production.INFO: ProcessCDR(1,14637220,1,1,2) [2025-03-08 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637220', 'tblTempUsageDetail_20' ) start [2025-03-08 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637220', 'tblTempUsageDetail_20' ) end [2025-03-08 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:15:22] Production.INFO: ==2610== Releasing lock... [2025-03-08 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:15:22] Production.INFO: 48 MB #Memory Used# [2025-03-08 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:16:05 [end_date_ymd] => 2025-03-08 19:16:05 [RateCDR] => 1 ) [2025-03-08 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:16:05' and `end` < '2025-03-08 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:16:17] Production.INFO: count ==2670 [2025-03-08 19:16:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:16:05 - End Time 2025-03-08 19:16:05 [2025-03-08 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637225', 'tblTempUsageDetail_20' ) start [2025-03-08 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637225', 'tblTempUsageDetail_20' ) end [2025-03-08 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637225', 'tblTempVendorCDR_20' ) start [2025-03-08 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637225', 'tblTempVendorCDR_20' ) end [2025-03-08 19:16:18] Production.INFO: ProcessCDR(1,14637225,1,1,2) [2025-03-08 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637225', 'tblTempUsageDetail_20' ) start [2025-03-08 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637225', 'tblTempUsageDetail_20' ) end [2025-03-08 19:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:16:21] Production.INFO: ==2681== Releasing lock... [2025-03-08 19:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:16:21] Production.INFO: 48 MB #Memory Used# [2025-03-08 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:17:05 [end_date_ymd] => 2025-03-08 19:17:05 [RateCDR] => 1 ) [2025-03-08 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:17:05' and `end` < '2025-03-08 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:17:17] Production.INFO: count ==2669 [2025-03-08 19:17:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:17:05 - End Time 2025-03-08 19:17:05 [2025-03-08 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637230', 'tblTempUsageDetail_20' ) start [2025-03-08 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637230', 'tblTempUsageDetail_20' ) end [2025-03-08 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637230', 'tblTempVendorCDR_20' ) start [2025-03-08 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637230', 'tblTempVendorCDR_20' ) end [2025-03-08 19:17:18] Production.INFO: ProcessCDR(1,14637230,1,1,2) [2025-03-08 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637230', 'tblTempUsageDetail_20' ) start [2025-03-08 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637230', 'tblTempUsageDetail_20' ) end [2025-03-08 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:17:22] Production.INFO: ==2794== Releasing lock... [2025-03-08 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:17:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-08 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:18:05 [end_date_ymd] => 2025-03-08 19:18:05 [RateCDR] => 1 ) [2025-03-08 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:18:05' and `end` < '2025-03-08 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:18:17] Production.INFO: count ==2668 [2025-03-08 19:18:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:18:05 - End Time 2025-03-08 19:18:05 [2025-03-08 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637235', 'tblTempUsageDetail_20' ) start [2025-03-08 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637235', 'tblTempUsageDetail_20' ) end [2025-03-08 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637235', 'tblTempVendorCDR_20' ) start [2025-03-08 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637235', 'tblTempVendorCDR_20' ) end [2025-03-08 19:18:18] Production.INFO: ProcessCDR(1,14637235,1,1,2) [2025-03-08 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637235', 'tblTempUsageDetail_20' ) start [2025-03-08 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637235', 'tblTempUsageDetail_20' ) end [2025-03-08 19:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:18:21] Production.INFO: ==2865== Releasing lock... [2025-03-08 19:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:18:21] Production.INFO: 48 MB #Memory Used# [2025-03-08 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:19:05 [end_date_ymd] => 2025-03-08 19:19:05 [RateCDR] => 1 ) [2025-03-08 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:19:05' and `end` < '2025-03-08 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:19:18] Production.INFO: count ==2652 [2025-03-08 19:19:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:19:05 - End Time 2025-03-08 19:19:05 [2025-03-08 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637240', 'tblTempUsageDetail_20' ) start [2025-03-08 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637240', 'tblTempUsageDetail_20' ) end [2025-03-08 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637240', 'tblTempVendorCDR_20' ) start [2025-03-08 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637240', 'tblTempVendorCDR_20' ) end [2025-03-08 19:19:18] Production.INFO: ProcessCDR(1,14637240,1,1,2) [2025-03-08 19:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637240', 'tblTempUsageDetail_20' ) start [2025-03-08 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637240', 'tblTempUsageDetail_20' ) end [2025-03-08 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:19:23] Production.INFO: ==2938== Releasing lock... [2025-03-08 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:19:23] Production.INFO: 48 MB #Memory Used# [2025-03-08 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:20:06 [end_date_ymd] => 2025-03-08 19:20:06 [RateCDR] => 1 ) [2025-03-08 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:20:06' and `end` < '2025-03-08 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:20:18] Production.INFO: count ==2649 [2025-03-08 19:20:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:20:06 - End Time 2025-03-08 19:20:06 [2025-03-08 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637246', 'tblTempUsageDetail_20' ) start [2025-03-08 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637246', 'tblTempUsageDetail_20' ) end [2025-03-08 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637246', 'tblTempVendorCDR_20' ) start [2025-03-08 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637246', 'tblTempVendorCDR_20' ) end [2025-03-08 19:20:19] Production.INFO: ProcessCDR(1,14637246,1,1,2) [2025-03-08 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637246', 'tblTempUsageDetail_20' ) start [2025-03-08 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637246', 'tblTempUsageDetail_20' ) end [2025-03-08 19:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:20:22] Production.INFO: ==3018== Releasing lock... [2025-03-08 19:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:20:22] Production.INFO: 48 MB #Memory Used# [2025-03-08 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:21:05 [end_date_ymd] => 2025-03-08 19:21:05 [RateCDR] => 1 ) [2025-03-08 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:21:05' and `end` < '2025-03-08 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:21:17] Production.INFO: count ==2620 [2025-03-08 19:21:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:21:05 - End Time 2025-03-08 19:21:05 [2025-03-08 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637251', 'tblTempUsageDetail_20' ) start [2025-03-08 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637251', 'tblTempUsageDetail_20' ) end [2025-03-08 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637251', 'tblTempVendorCDR_20' ) start [2025-03-08 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637251', 'tblTempVendorCDR_20' ) end [2025-03-08 19:21:18] Production.INFO: ProcessCDR(1,14637251,1,1,2) [2025-03-08 19:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637251', 'tblTempUsageDetail_20' ) start [2025-03-08 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637251', 'tblTempUsageDetail_20' ) end [2025-03-08 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:21:22] Production.INFO: ==3092== Releasing lock... [2025-03-08 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:21:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-08 19:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:22:04 [end_date_ymd] => 2025-03-08 19:22:04 [RateCDR] => 1 ) [2025-03-08 19:22: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-03-08 16:22:04' and `end` < '2025-03-08 19:22: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-03-08 19:22:16] Production.INFO: count ==2618 [2025-03-08 19:22:17] Production.ERROR: pbx CDR StartTime 2025-03-08 16:22:04 - End Time 2025-03-08 19:22:04 [2025-03-08 19:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637256', 'tblTempUsageDetail_20' ) start [2025-03-08 19:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637256', 'tblTempUsageDetail_20' ) end [2025-03-08 19:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637256', 'tblTempVendorCDR_20' ) start [2025-03-08 19:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637256', 'tblTempVendorCDR_20' ) end [2025-03-08 19:22:17] Production.INFO: ProcessCDR(1,14637256,1,1,2) [2025-03-08 19:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637256', 'tblTempUsageDetail_20' ) start [2025-03-08 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637256', 'tblTempUsageDetail_20' ) end [2025-03-08 19:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:22:21] Production.INFO: ==3167== Releasing lock... [2025-03-08 19:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:22:21] Production.INFO: 47.75 MB #Memory Used# [2025-03-08 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:23:05 [end_date_ymd] => 2025-03-08 19:23:05 [RateCDR] => 1 ) [2025-03-08 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:23:05' and `end` < '2025-03-08 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:23:17] Production.INFO: count ==2615 [2025-03-08 19:23:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:23:05 - End Time 2025-03-08 19:23:05 [2025-03-08 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637261', 'tblTempUsageDetail_20' ) start [2025-03-08 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637261', 'tblTempUsageDetail_20' ) end [2025-03-08 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637261', 'tblTempVendorCDR_20' ) start [2025-03-08 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637261', 'tblTempVendorCDR_20' ) end [2025-03-08 19:23:19] Production.INFO: ProcessCDR(1,14637261,1,1,2) [2025-03-08 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637261', 'tblTempUsageDetail_20' ) start [2025-03-08 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637261', 'tblTempUsageDetail_20' ) end [2025-03-08 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:23:22] Production.INFO: ==3241== Releasing lock... [2025-03-08 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:23:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-08 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:24:06 [end_date_ymd] => 2025-03-08 19:24:06 [RateCDR] => 1 ) [2025-03-08 19:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:24:06' and `end` < '2025-03-08 19:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:24:18] Production.INFO: count ==2612 [2025-03-08 19:24:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:24:06 - End Time 2025-03-08 19:24:06 [2025-03-08 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637266', 'tblTempUsageDetail_20' ) start [2025-03-08 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637266', 'tblTempUsageDetail_20' ) end [2025-03-08 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637266', 'tblTempVendorCDR_20' ) start [2025-03-08 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637266', 'tblTempVendorCDR_20' ) end [2025-03-08 19:24:19] Production.INFO: ProcessCDR(1,14637266,1,1,2) [2025-03-08 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637266', 'tblTempUsageDetail_20' ) start [2025-03-08 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637266', 'tblTempUsageDetail_20' ) end [2025-03-08 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:24:23] Production.INFO: ==3314== Releasing lock... [2025-03-08 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:24:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-08 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:25:05 [end_date_ymd] => 2025-03-08 19:25:05 [RateCDR] => 1 ) [2025-03-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-03-08 16:25:05' and `end` < '2025-03-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-03-08 19:25:18] Production.INFO: count ==2605 [2025-03-08 19:25:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:25:05 - End Time 2025-03-08 19:25:05 [2025-03-08 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637271', 'tblTempUsageDetail_20' ) start [2025-03-08 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637271', 'tblTempUsageDetail_20' ) end [2025-03-08 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637271', 'tblTempVendorCDR_20' ) start [2025-03-08 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637271', 'tblTempVendorCDR_20' ) end [2025-03-08 19:25:19] Production.INFO: ProcessCDR(1,14637271,1,1,2) [2025-03-08 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637271', 'tblTempUsageDetail_20' ) start [2025-03-08 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637271', 'tblTempUsageDetail_20' ) end [2025-03-08 19:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:25:22] Production.INFO: ==3383== Releasing lock... [2025-03-08 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:25:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-08 19:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:26:06 [end_date_ymd] => 2025-03-08 19:26:06 [RateCDR] => 1 ) [2025-03-08 19:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:26:06' and `end` < '2025-03-08 19:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:26:19] Production.INFO: count ==2599 [2025-03-08 19:26:20] Production.ERROR: pbx CDR StartTime 2025-03-08 16:26:06 - End Time 2025-03-08 19:26:06 [2025-03-08 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637276', 'tblTempUsageDetail_20' ) start [2025-03-08 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637276', 'tblTempUsageDetail_20' ) end [2025-03-08 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637276', 'tblTempVendorCDR_20' ) start [2025-03-08 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637276', 'tblTempVendorCDR_20' ) end [2025-03-08 19:26:20] Production.INFO: ProcessCDR(1,14637276,1,1,2) [2025-03-08 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637276', 'tblTempUsageDetail_20' ) start [2025-03-08 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637276', 'tblTempUsageDetail_20' ) end [2025-03-08 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:26:23] Production.INFO: ==3457== Releasing lock... [2025-03-08 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:26:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-08 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:27:05 [end_date_ymd] => 2025-03-08 19:27:05 [RateCDR] => 1 ) [2025-03-08 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:27:05' and `end` < '2025-03-08 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:27:18] Production.INFO: count ==2603 [2025-03-08 19:27:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:27:05 - End Time 2025-03-08 19:27:05 [2025-03-08 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637281', 'tblTempUsageDetail_20' ) start [2025-03-08 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637281', 'tblTempUsageDetail_20' ) end [2025-03-08 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637281', 'tblTempVendorCDR_20' ) start [2025-03-08 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637281', 'tblTempVendorCDR_20' ) end [2025-03-08 19:27:19] Production.INFO: ProcessCDR(1,14637281,1,1,2) [2025-03-08 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637281', 'tblTempUsageDetail_20' ) start [2025-03-08 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637281', 'tblTempUsageDetail_20' ) end [2025-03-08 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:27:24] Production.INFO: ==3528== Releasing lock... [2025-03-08 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:27:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-08 19:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:28:06 [end_date_ymd] => 2025-03-08 19:28:06 [RateCDR] => 1 ) [2025-03-08 19:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:28:06' and `end` < '2025-03-08 19:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:28:18] Production.INFO: count ==2600 [2025-03-08 19:28:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:28:06 - End Time 2025-03-08 19:28:06 [2025-03-08 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637286', 'tblTempUsageDetail_20' ) start [2025-03-08 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637286', 'tblTempUsageDetail_20' ) end [2025-03-08 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637286', 'tblTempVendorCDR_20' ) start [2025-03-08 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637286', 'tblTempVendorCDR_20' ) end [2025-03-08 19:28:20] Production.INFO: ProcessCDR(1,14637286,1,1,2) [2025-03-08 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637286', 'tblTempUsageDetail_20' ) start [2025-03-08 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637286', 'tblTempUsageDetail_20' ) end [2025-03-08 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:28:23] Production.INFO: ==3603== Releasing lock... [2025-03-08 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:28:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-08 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:29:05 [end_date_ymd] => 2025-03-08 19:29:05 [RateCDR] => 1 ) [2025-03-08 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:29:05' and `end` < '2025-03-08 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:29:17] Production.INFO: count ==2600 [2025-03-08 19:29:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:29:05 - End Time 2025-03-08 19:29:05 [2025-03-08 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637291', 'tblTempUsageDetail_20' ) start [2025-03-08 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637291', 'tblTempUsageDetail_20' ) end [2025-03-08 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637291', 'tblTempVendorCDR_20' ) start [2025-03-08 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637291', 'tblTempVendorCDR_20' ) end [2025-03-08 19:29:18] Production.INFO: ProcessCDR(1,14637291,1,1,2) [2025-03-08 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637291', 'tblTempUsageDetail_20' ) start [2025-03-08 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637291', 'tblTempUsageDetail_20' ) end [2025-03-08 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:29:23] Production.INFO: ==3676== Releasing lock... [2025-03-08 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:29:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-08 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:30:06 [end_date_ymd] => 2025-03-08 19:30:06 [RateCDR] => 1 ) [2025-03-08 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:30:06' and `end` < '2025-03-08 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:30:19] Production.INFO: count ==2601 [2025-03-08 19:30:20] Production.ERROR: pbx CDR StartTime 2025-03-08 16:30:06 - End Time 2025-03-08 19:30:06 [2025-03-08 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637297', 'tblTempUsageDetail_20' ) start [2025-03-08 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637297', 'tblTempUsageDetail_20' ) end [2025-03-08 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637297', 'tblTempVendorCDR_20' ) start [2025-03-08 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637297', 'tblTempVendorCDR_20' ) end [2025-03-08 19:30:20] Production.INFO: ProcessCDR(1,14637297,1,1,2) [2025-03-08 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637297', 'tblTempUsageDetail_20' ) start [2025-03-08 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637297', 'tblTempUsageDetail_20' ) end [2025-03-08 19:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:30:25] Production.INFO: ==3751== Releasing lock... [2025-03-08 19:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:30:25] Production.INFO: 47.5 MB #Memory Used# [2025-03-08 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:31:05 [end_date_ymd] => 2025-03-08 19:31:05 [RateCDR] => 1 ) [2025-03-08 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:31:05' and `end` < '2025-03-08 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:31:17] Production.INFO: count ==2583 [2025-03-08 19:31:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:31:05 - End Time 2025-03-08 19:31:05 [2025-03-08 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637302', 'tblTempUsageDetail_20' ) start [2025-03-08 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637302', 'tblTempUsageDetail_20' ) end [2025-03-08 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637302', 'tblTempVendorCDR_20' ) start [2025-03-08 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637302', 'tblTempVendorCDR_20' ) end [2025-03-08 19:31:18] Production.INFO: ProcessCDR(1,14637302,1,1,2) [2025-03-08 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637302', 'tblTempUsageDetail_20' ) start [2025-03-08 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637302', 'tblTempUsageDetail_20' ) end [2025-03-08 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:31:22] Production.INFO: ==3831== Releasing lock... [2025-03-08 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:31:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-08 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:32:06 [end_date_ymd] => 2025-03-08 19:32:06 [RateCDR] => 1 ) [2025-03-08 19:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:32:06' and `end` < '2025-03-08 19:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:32:18] Production.INFO: count ==2583 [2025-03-08 19:32:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:32:06 - End Time 2025-03-08 19:32:06 [2025-03-08 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637307', 'tblTempUsageDetail_20' ) start [2025-03-08 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637307', 'tblTempUsageDetail_20' ) end [2025-03-08 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637307', 'tblTempVendorCDR_20' ) start [2025-03-08 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637307', 'tblTempVendorCDR_20' ) end [2025-03-08 19:32:19] Production.INFO: ProcessCDR(1,14637307,1,1,2) [2025-03-08 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637307', 'tblTempUsageDetail_20' ) start [2025-03-08 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637307', 'tblTempUsageDetail_20' ) end [2025-03-08 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:32:23] Production.INFO: ==3901== Releasing lock... [2025-03-08 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:32:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-08 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:33:05 [end_date_ymd] => 2025-03-08 19:33:05 [RateCDR] => 1 ) [2025-03-08 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:33:05' and `end` < '2025-03-08 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:33:17] Production.INFO: count ==2569 [2025-03-08 19:33:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:33:05 - End Time 2025-03-08 19:33:05 [2025-03-08 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637312', 'tblTempUsageDetail_20' ) start [2025-03-08 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637312', 'tblTempUsageDetail_20' ) end [2025-03-08 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637312', 'tblTempVendorCDR_20' ) start [2025-03-08 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637312', 'tblTempVendorCDR_20' ) end [2025-03-08 19:33:18] Production.INFO: ProcessCDR(1,14637312,1,1,2) [2025-03-08 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637312', 'tblTempUsageDetail_20' ) start [2025-03-08 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637312', 'tblTempUsageDetail_20' ) end [2025-03-08 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:33:23] Production.INFO: ==4020== Releasing lock... [2025-03-08 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:33:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-08 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:34:06 [end_date_ymd] => 2025-03-08 19:34:06 [RateCDR] => 1 ) [2025-03-08 19:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:34:06' and `end` < '2025-03-08 19:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:34:18] Production.INFO: count ==2570 [2025-03-08 19:34:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:34:06 - End Time 2025-03-08 19:34:06 [2025-03-08 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637317', 'tblTempUsageDetail_20' ) start [2025-03-08 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637317', 'tblTempUsageDetail_20' ) end [2025-03-08 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637317', 'tblTempVendorCDR_20' ) start [2025-03-08 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637317', 'tblTempVendorCDR_20' ) end [2025-03-08 19:34:19] Production.INFO: ProcessCDR(1,14637317,1,1,2) [2025-03-08 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637317', 'tblTempUsageDetail_20' ) start [2025-03-08 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637317', 'tblTempUsageDetail_20' ) end [2025-03-08 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:34:23] Production.INFO: ==4098== Releasing lock... [2025-03-08 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:34:23] Production.INFO: 47 MB #Memory Used# [2025-03-08 19:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:35:06 [end_date_ymd] => 2025-03-08 19:35:06 [RateCDR] => 1 ) [2025-03-08 19:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:35:06' and `end` < '2025-03-08 19:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:35:18] Production.INFO: count ==2572 [2025-03-08 19:35:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:35:06 - End Time 2025-03-08 19:35:06 [2025-03-08 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637322', 'tblTempUsageDetail_20' ) start [2025-03-08 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637322', 'tblTempUsageDetail_20' ) end [2025-03-08 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637322', 'tblTempVendorCDR_20' ) start [2025-03-08 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637322', 'tblTempVendorCDR_20' ) end [2025-03-08 19:35:19] Production.INFO: ProcessCDR(1,14637322,1,1,2) [2025-03-08 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637322', 'tblTempUsageDetail_20' ) start [2025-03-08 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637322', 'tblTempUsageDetail_20' ) end [2025-03-08 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:35:23] Production.INFO: ==4172== Releasing lock... [2025-03-08 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:35:23] Production.INFO: 47 MB #Memory Used# [2025-03-08 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:36:06 [end_date_ymd] => 2025-03-08 19:36:06 [RateCDR] => 1 ) [2025-03-08 19:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:36:06' and `end` < '2025-03-08 19:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:36:19] Production.INFO: count ==2570 [2025-03-08 19:36:20] Production.ERROR: pbx CDR StartTime 2025-03-08 16:36:06 - End Time 2025-03-08 19:36:06 [2025-03-08 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637327', 'tblTempUsageDetail_20' ) start [2025-03-08 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637327', 'tblTempUsageDetail_20' ) end [2025-03-08 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637327', 'tblTempVendorCDR_20' ) start [2025-03-08 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637327', 'tblTempVendorCDR_20' ) end [2025-03-08 19:36:20] Production.INFO: ProcessCDR(1,14637327,1,1,2) [2025-03-08 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637327', 'tblTempUsageDetail_20' ) start [2025-03-08 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637327', 'tblTempUsageDetail_20' ) end [2025-03-08 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:36:23] Production.INFO: ==4243== Releasing lock... [2025-03-08 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:36:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-08 19:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:37:06 [end_date_ymd] => 2025-03-08 19:37:06 [RateCDR] => 1 ) [2025-03-08 19:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:37:06' and `end` < '2025-03-08 19:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:37:18] Production.INFO: count ==2580 [2025-03-08 19:37:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:37:06 - End Time 2025-03-08 19:37:06 [2025-03-08 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637332', 'tblTempUsageDetail_20' ) start [2025-03-08 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637332', 'tblTempUsageDetail_20' ) end [2025-03-08 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637332', 'tblTempVendorCDR_20' ) start [2025-03-08 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637332', 'tblTempVendorCDR_20' ) end [2025-03-08 19:37:19] Production.INFO: ProcessCDR(1,14637332,1,1,2) [2025-03-08 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637332', 'tblTempUsageDetail_20' ) start [2025-03-08 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637332', 'tblTempUsageDetail_20' ) end [2025-03-08 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:37:23] Production.INFO: ==4318== Releasing lock... [2025-03-08 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:37:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-08 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:38:05 [end_date_ymd] => 2025-03-08 19:38:05 [RateCDR] => 1 ) [2025-03-08 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:38:05' and `end` < '2025-03-08 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:38:17] Production.INFO: count ==2582 [2025-03-08 19:38:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:38:05 - End Time 2025-03-08 19:38:05 [2025-03-08 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637337', 'tblTempUsageDetail_20' ) start [2025-03-08 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637337', 'tblTempUsageDetail_20' ) end [2025-03-08 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637337', 'tblTempVendorCDR_20' ) start [2025-03-08 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637337', 'tblTempVendorCDR_20' ) end [2025-03-08 19:38:18] Production.INFO: ProcessCDR(1,14637337,1,1,2) [2025-03-08 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637337', 'tblTempUsageDetail_20' ) start [2025-03-08 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637337', 'tblTempUsageDetail_20' ) end [2025-03-08 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:38:22] Production.INFO: ==4388== Releasing lock... [2025-03-08 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:38:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-08 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:39:05 [end_date_ymd] => 2025-03-08 19:39:05 [RateCDR] => 1 ) [2025-03-08 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:39:05' and `end` < '2025-03-08 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:39:17] Production.INFO: count ==2581 [2025-03-08 19:39:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:39:05 - End Time 2025-03-08 19:39:05 [2025-03-08 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637342', 'tblTempUsageDetail_20' ) start [2025-03-08 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637342', 'tblTempUsageDetail_20' ) end [2025-03-08 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637342', 'tblTempVendorCDR_20' ) start [2025-03-08 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637342', 'tblTempVendorCDR_20' ) end [2025-03-08 19:39:18] Production.INFO: ProcessCDR(1,14637342,1,1,2) [2025-03-08 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637342', 'tblTempUsageDetail_20' ) start [2025-03-08 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637342', 'tblTempUsageDetail_20' ) end [2025-03-08 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:39:22] Production.INFO: ==4463== Releasing lock... [2025-03-08 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:39:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-08 19:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:40:07 [end_date_ymd] => 2025-03-08 19:40:07 [RateCDR] => 1 ) [2025-03-08 19:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:40:07' and `end` < '2025-03-08 19:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:40:19] Production.INFO: count ==2579 [2025-03-08 19:40:20] Production.ERROR: pbx CDR StartTime 2025-03-08 16:40:07 - End Time 2025-03-08 19:40:07 [2025-03-08 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637348', 'tblTempUsageDetail_20' ) start [2025-03-08 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637348', 'tblTempUsageDetail_20' ) end [2025-03-08 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637348', 'tblTempVendorCDR_20' ) start [2025-03-08 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637348', 'tblTempVendorCDR_20' ) end [2025-03-08 19:40:20] Production.INFO: ProcessCDR(1,14637348,1,1,2) [2025-03-08 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637348', 'tblTempUsageDetail_20' ) start [2025-03-08 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637348', 'tblTempUsageDetail_20' ) end [2025-03-08 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:40:23] Production.INFO: ==4536== Releasing lock... [2025-03-08 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:40:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-08 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:41:05 [end_date_ymd] => 2025-03-08 19:41:05 [RateCDR] => 1 ) [2025-03-08 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:41:05' and `end` < '2025-03-08 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:41:17] Production.INFO: count ==2582 [2025-03-08 19:41:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:41:05 - End Time 2025-03-08 19:41:05 [2025-03-08 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637353', 'tblTempUsageDetail_20' ) start [2025-03-08 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637353', 'tblTempUsageDetail_20' ) end [2025-03-08 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637353', 'tblTempVendorCDR_20' ) start [2025-03-08 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637353', 'tblTempVendorCDR_20' ) end [2025-03-08 19:41:18] Production.INFO: ProcessCDR(1,14637353,1,1,2) [2025-03-08 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637353', 'tblTempUsageDetail_20' ) start [2025-03-08 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637353', 'tblTempUsageDetail_20' ) end [2025-03-08 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:41:22] Production.INFO: ==4619== Releasing lock... [2025-03-08 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:41:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-08 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:42:05 [end_date_ymd] => 2025-03-08 19:42:05 [RateCDR] => 1 ) [2025-03-08 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:42:05' and `end` < '2025-03-08 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:42:18] Production.INFO: count ==2580 [2025-03-08 19:42:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:42:05 - End Time 2025-03-08 19:42:05 [2025-03-08 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637358', 'tblTempUsageDetail_20' ) start [2025-03-08 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637358', 'tblTempUsageDetail_20' ) end [2025-03-08 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637358', 'tblTempVendorCDR_20' ) start [2025-03-08 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637358', 'tblTempVendorCDR_20' ) end [2025-03-08 19:42:19] Production.INFO: ProcessCDR(1,14637358,1,1,2) [2025-03-08 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637358', 'tblTempUsageDetail_20' ) start [2025-03-08 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637358', 'tblTempUsageDetail_20' ) end [2025-03-08 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:42:22] Production.INFO: ==4690== Releasing lock... [2025-03-08 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:42:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-08 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:43:05 [end_date_ymd] => 2025-03-08 19:43:05 [RateCDR] => 1 ) [2025-03-08 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:43:05' and `end` < '2025-03-08 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:43:18] Production.INFO: count ==2578 [2025-03-08 19:43:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:43:05 - End Time 2025-03-08 19:43:05 [2025-03-08 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637363', 'tblTempUsageDetail_20' ) start [2025-03-08 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637363', 'tblTempUsageDetail_20' ) end [2025-03-08 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637363', 'tblTempVendorCDR_20' ) start [2025-03-08 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637363', 'tblTempVendorCDR_20' ) end [2025-03-08 19:43:19] Production.INFO: ProcessCDR(1,14637363,1,1,2) [2025-03-08 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637363', 'tblTempUsageDetail_20' ) start [2025-03-08 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637363', 'tblTempUsageDetail_20' ) end [2025-03-08 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:43:22] Production.INFO: ==4766== Releasing lock... [2025-03-08 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:43:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-08 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:44:05 [end_date_ymd] => 2025-03-08 19:44:05 [RateCDR] => 1 ) [2025-03-08 19:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:44:05' and `end` < '2025-03-08 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:44:18] Production.INFO: count ==2581 [2025-03-08 19:44:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:44:05 - End Time 2025-03-08 19:44:05 [2025-03-08 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637368', 'tblTempUsageDetail_20' ) start [2025-03-08 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637368', 'tblTempUsageDetail_20' ) end [2025-03-08 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637368', 'tblTempVendorCDR_20' ) start [2025-03-08 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637368', 'tblTempVendorCDR_20' ) end [2025-03-08 19:44:19] Production.INFO: ProcessCDR(1,14637368,1,1,2) [2025-03-08 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637368', 'tblTempUsageDetail_20' ) start [2025-03-08 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637368', 'tblTempUsageDetail_20' ) end [2025-03-08 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:44:22] Production.INFO: ==4840== Releasing lock... [2025-03-08 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:44:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-08 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:45:05 [end_date_ymd] => 2025-03-08 19:45:05 [RateCDR] => 1 ) [2025-03-08 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:45:05' and `end` < '2025-03-08 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:45:18] Production.INFO: count ==2578 [2025-03-08 19:45:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:45:05 - End Time 2025-03-08 19:45:05 [2025-03-08 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637373', 'tblTempUsageDetail_20' ) start [2025-03-08 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637373', 'tblTempUsageDetail_20' ) end [2025-03-08 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637373', 'tblTempVendorCDR_20' ) start [2025-03-08 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637373', 'tblTempVendorCDR_20' ) end [2025-03-08 19:45:19] Production.INFO: ProcessCDR(1,14637373,1,1,2) [2025-03-08 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637373', 'tblTempUsageDetail_20' ) start [2025-03-08 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637373', 'tblTempUsageDetail_20' ) end [2025-03-08 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:45:22] Production.INFO: ==4917== Releasing lock... [2025-03-08 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:45:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-08 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:46:06 [end_date_ymd] => 2025-03-08 19:46:06 [RateCDR] => 1 ) [2025-03-08 19:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:46:06' and `end` < '2025-03-08 19:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:46:18] Production.INFO: count ==2585 [2025-03-08 19:46:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:46:06 - End Time 2025-03-08 19:46:06 [2025-03-08 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637378', 'tblTempUsageDetail_20' ) start [2025-03-08 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637378', 'tblTempUsageDetail_20' ) end [2025-03-08 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637378', 'tblTempVendorCDR_20' ) start [2025-03-08 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637378', 'tblTempVendorCDR_20' ) end [2025-03-08 19:46:19] Production.INFO: ProcessCDR(1,14637378,1,1,2) [2025-03-08 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637378', 'tblTempUsageDetail_20' ) start [2025-03-08 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637378', 'tblTempUsageDetail_20' ) end [2025-03-08 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:46:23] Production.INFO: ==4989== Releasing lock... [2025-03-08 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:46:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-08 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:47:05 [end_date_ymd] => 2025-03-08 19:47:05 [RateCDR] => 1 ) [2025-03-08 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:47:05' and `end` < '2025-03-08 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:47:17] Production.INFO: count ==2587 [2025-03-08 19:47:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:47:05 - End Time 2025-03-08 19:47:05 [2025-03-08 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637383', 'tblTempUsageDetail_20' ) start [2025-03-08 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637383', 'tblTempUsageDetail_20' ) end [2025-03-08 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637383', 'tblTempVendorCDR_20' ) start [2025-03-08 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637383', 'tblTempVendorCDR_20' ) end [2025-03-08 19:47:18] Production.INFO: ProcessCDR(1,14637383,1,1,2) [2025-03-08 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637383', 'tblTempUsageDetail_20' ) start [2025-03-08 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637383', 'tblTempUsageDetail_20' ) end [2025-03-08 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:47:22] Production.INFO: ==5062== Releasing lock... [2025-03-08 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:47:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-08 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:48:05 [end_date_ymd] => 2025-03-08 19:48:05 [RateCDR] => 1 ) [2025-03-08 19:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:48:05' and `end` < '2025-03-08 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:48:18] Production.INFO: count ==2574 [2025-03-08 19:48:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:48:05 - End Time 2025-03-08 19:48:05 [2025-03-08 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637388', 'tblTempUsageDetail_20' ) start [2025-03-08 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637388', 'tblTempUsageDetail_20' ) end [2025-03-08 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637388', 'tblTempVendorCDR_20' ) start [2025-03-08 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637388', 'tblTempVendorCDR_20' ) end [2025-03-08 19:48:19] Production.INFO: ProcessCDR(1,14637388,1,1,2) [2025-03-08 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637388', 'tblTempUsageDetail_20' ) start [2025-03-08 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637388', 'tblTempUsageDetail_20' ) end [2025-03-08 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:48:22] Production.INFO: ==5175== Releasing lock... [2025-03-08 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:48:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-08 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:49:06 [end_date_ymd] => 2025-03-08 19:49:06 [RateCDR] => 1 ) [2025-03-08 19:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:49:06' and `end` < '2025-03-08 19:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:49:18] Production.INFO: count ==2574 [2025-03-08 19:49:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:49:06 - End Time 2025-03-08 19:49:06 [2025-03-08 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637393', 'tblTempUsageDetail_20' ) start [2025-03-08 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637393', 'tblTempUsageDetail_20' ) end [2025-03-08 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637393', 'tblTempVendorCDR_20' ) start [2025-03-08 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637393', 'tblTempVendorCDR_20' ) end [2025-03-08 19:49:19] Production.INFO: ProcessCDR(1,14637393,1,1,2) [2025-03-08 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637393', 'tblTempUsageDetail_20' ) start [2025-03-08 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637393', 'tblTempUsageDetail_20' ) end [2025-03-08 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:49:22] Production.INFO: ==5248== Releasing lock... [2025-03-08 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:49:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-08 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:50:06 [end_date_ymd] => 2025-03-08 19:50:06 [RateCDR] => 1 ) [2025-03-08 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:50:06' and `end` < '2025-03-08 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:50:18] Production.INFO: count ==2557 [2025-03-08 19:50:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:50:06 - End Time 2025-03-08 19:50:06 [2025-03-08 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637399', 'tblTempUsageDetail_20' ) start [2025-03-08 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637399', 'tblTempUsageDetail_20' ) end [2025-03-08 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637399', 'tblTempVendorCDR_20' ) start [2025-03-08 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637399', 'tblTempVendorCDR_20' ) end [2025-03-08 19:50:19] Production.INFO: ProcessCDR(1,14637399,1,1,2) [2025-03-08 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637399', 'tblTempUsageDetail_20' ) start [2025-03-08 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637399', 'tblTempUsageDetail_20' ) end [2025-03-08 19:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:50:22] Production.INFO: ==5329== Releasing lock... [2025-03-08 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:50:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-08 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:51:05 [end_date_ymd] => 2025-03-08 19:51:05 [RateCDR] => 1 ) [2025-03-08 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:51:05' and `end` < '2025-03-08 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:51:17] Production.INFO: count ==2512 [2025-03-08 19:51:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:51:05 - End Time 2025-03-08 19:51:05 [2025-03-08 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637404', 'tblTempUsageDetail_20' ) start [2025-03-08 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637404', 'tblTempUsageDetail_20' ) end [2025-03-08 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637404', 'tblTempVendorCDR_20' ) start [2025-03-08 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637404', 'tblTempVendorCDR_20' ) end [2025-03-08 19:51:18] Production.INFO: ProcessCDR(1,14637404,1,1,2) [2025-03-08 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637404', 'tblTempUsageDetail_20' ) start [2025-03-08 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637404', 'tblTempUsageDetail_20' ) end [2025-03-08 19:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:51:21] Production.INFO: ==5404== Releasing lock... [2025-03-08 19:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:51:21] Production.INFO: 47 MB #Memory Used# [2025-03-08 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:52:05 [end_date_ymd] => 2025-03-08 19:52:05 [RateCDR] => 1 ) [2025-03-08 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:52:05' and `end` < '2025-03-08 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:52:18] Production.INFO: count ==2502 [2025-03-08 19:52:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:52:05 - End Time 2025-03-08 19:52:05 [2025-03-08 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637409', 'tblTempUsageDetail_20' ) start [2025-03-08 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637409', 'tblTempUsageDetail_20' ) end [2025-03-08 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637409', 'tblTempVendorCDR_20' ) start [2025-03-08 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637409', 'tblTempVendorCDR_20' ) end [2025-03-08 19:52:19] Production.INFO: ProcessCDR(1,14637409,1,1,2) [2025-03-08 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637409', 'tblTempUsageDetail_20' ) start [2025-03-08 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637409', 'tblTempUsageDetail_20' ) end [2025-03-08 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:52:22] Production.INFO: ==5477== Releasing lock... [2025-03-08 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:52:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-08 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:53:05 [end_date_ymd] => 2025-03-08 19:53:05 [RateCDR] => 1 ) [2025-03-08 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:53:05' and `end` < '2025-03-08 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:53:17] Production.INFO: count ==2501 [2025-03-08 19:53:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:53:05 - End Time 2025-03-08 19:53:05 [2025-03-08 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637414', 'tblTempUsageDetail_20' ) start [2025-03-08 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637414', 'tblTempUsageDetail_20' ) end [2025-03-08 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637414', 'tblTempVendorCDR_20' ) start [2025-03-08 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637414', 'tblTempVendorCDR_20' ) end [2025-03-08 19:53:18] Production.INFO: ProcessCDR(1,14637414,1,1,2) [2025-03-08 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637414', 'tblTempUsageDetail_20' ) start [2025-03-08 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637414', 'tblTempUsageDetail_20' ) end [2025-03-08 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:53:22] Production.INFO: ==5553== Releasing lock... [2025-03-08 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:53:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-08 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:54:05 [end_date_ymd] => 2025-03-08 19:54:05 [RateCDR] => 1 ) [2025-03-08 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:54:05' and `end` < '2025-03-08 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:54:17] Production.INFO: count ==2507 [2025-03-08 19:54:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:54:05 - End Time 2025-03-08 19:54:05 [2025-03-08 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637419', 'tblTempUsageDetail_20' ) start [2025-03-08 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637419', 'tblTempUsageDetail_20' ) end [2025-03-08 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637419', 'tblTempVendorCDR_20' ) start [2025-03-08 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637419', 'tblTempVendorCDR_20' ) end [2025-03-08 19:54:18] Production.INFO: ProcessCDR(1,14637419,1,1,2) [2025-03-08 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637419', 'tblTempUsageDetail_20' ) start [2025-03-08 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637419', 'tblTempUsageDetail_20' ) end [2025-03-08 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:54:22] Production.INFO: ==5624== Releasing lock... [2025-03-08 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:54:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-08 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:55:05 [end_date_ymd] => 2025-03-08 19:55:05 [RateCDR] => 1 ) [2025-03-08 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:55:05' and `end` < '2025-03-08 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:55:17] Production.INFO: count ==2510 [2025-03-08 19:55:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:55:05 - End Time 2025-03-08 19:55:05 [2025-03-08 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637424', 'tblTempUsageDetail_20' ) start [2025-03-08 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637424', 'tblTempUsageDetail_20' ) end [2025-03-08 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637424', 'tblTempVendorCDR_20' ) start [2025-03-08 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637424', 'tblTempVendorCDR_20' ) end [2025-03-08 19:55:18] Production.INFO: ProcessCDR(1,14637424,1,1,2) [2025-03-08 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637424', 'tblTempUsageDetail_20' ) start [2025-03-08 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637424', 'tblTempUsageDetail_20' ) end [2025-03-08 19:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:55:21] Production.INFO: ==5696== Releasing lock... [2025-03-08 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:55:21] Production.INFO: 46.75 MB #Memory Used# [2025-03-08 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:56:06 [end_date_ymd] => 2025-03-08 19:56:06 [RateCDR] => 1 ) [2025-03-08 19:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:56:06' and `end` < '2025-03-08 19:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:56:18] Production.INFO: count ==2498 [2025-03-08 19:56:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:56:06 - End Time 2025-03-08 19:56:06 [2025-03-08 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637429', 'tblTempUsageDetail_20' ) start [2025-03-08 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637429', 'tblTempUsageDetail_20' ) end [2025-03-08 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637429', 'tblTempVendorCDR_20' ) start [2025-03-08 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637429', 'tblTempVendorCDR_20' ) end [2025-03-08 19:56:19] Production.INFO: ProcessCDR(1,14637429,1,1,2) [2025-03-08 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637429', 'tblTempUsageDetail_20' ) start [2025-03-08 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637429', 'tblTempUsageDetail_20' ) end [2025-03-08 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:56:22] Production.INFO: ==5767== Releasing lock... [2025-03-08 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:56:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-08 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:57:05 [end_date_ymd] => 2025-03-08 19:57:05 [RateCDR] => 1 ) [2025-03-08 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:57:05' and `end` < '2025-03-08 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:57:17] Production.INFO: count ==2500 [2025-03-08 19:57:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:57:05 - End Time 2025-03-08 19:57:05 [2025-03-08 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637434', 'tblTempUsageDetail_20' ) start [2025-03-08 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637434', 'tblTempUsageDetail_20' ) end [2025-03-08 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637434', 'tblTempVendorCDR_20' ) start [2025-03-08 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637434', 'tblTempVendorCDR_20' ) end [2025-03-08 19:57:18] Production.INFO: ProcessCDR(1,14637434,1,1,2) [2025-03-08 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637434', 'tblTempUsageDetail_20' ) start [2025-03-08 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637434', 'tblTempUsageDetail_20' ) end [2025-03-08 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:57:22] Production.INFO: ==5837== Releasing lock... [2025-03-08 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:57:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-08 19:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:58:06 [end_date_ymd] => 2025-03-08 19:58:06 [RateCDR] => 1 ) [2025-03-08 19:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:58:06' and `end` < '2025-03-08 19:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:58:18] Production.INFO: count ==2494 [2025-03-08 19:58:19] Production.ERROR: pbx CDR StartTime 2025-03-08 16:58:06 - End Time 2025-03-08 19:58:06 [2025-03-08 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637439', 'tblTempUsageDetail_20' ) start [2025-03-08 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637439', 'tblTempUsageDetail_20' ) end [2025-03-08 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637439', 'tblTempVendorCDR_20' ) start [2025-03-08 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637439', 'tblTempVendorCDR_20' ) end [2025-03-08 19:58:19] Production.INFO: ProcessCDR(1,14637439,1,1,2) [2025-03-08 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637439', 'tblTempUsageDetail_20' ) start [2025-03-08 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637439', 'tblTempUsageDetail_20' ) end [2025-03-08 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:58:23] Production.INFO: ==5908== Releasing lock... [2025-03-08 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:58:23] Production.INFO: 47 MB #Memory Used# [2025-03-08 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 16:59:05 [end_date_ymd] => 2025-03-08 19:59:05 [RateCDR] => 1 ) [2025-03-08 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 16:59:05' and `end` < '2025-03-08 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 19:59:18] Production.INFO: count ==2499 [2025-03-08 19:59:18] Production.ERROR: pbx CDR StartTime 2025-03-08 16:59:05 - End Time 2025-03-08 19:59:05 [2025-03-08 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637444', 'tblTempUsageDetail_20' ) start [2025-03-08 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637444', 'tblTempUsageDetail_20' ) end [2025-03-08 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637444', 'tblTempVendorCDR_20' ) start [2025-03-08 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637444', 'tblTempVendorCDR_20' ) end [2025-03-08 19:59:19] Production.INFO: ProcessCDR(1,14637444,1,1,2) [2025-03-08 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637444', 'tblTempUsageDetail_20' ) start [2025-03-08 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637444', 'tblTempUsageDetail_20' ) end [2025-03-08 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 19:59:22] Production.INFO: ==5979== Releasing lock... [2025-03-08 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 19:59:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-08 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:00:06 [end_date_ymd] => 2025-03-08 20:00:06 [RateCDR] => 1 ) [2025-03-08 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:00:06' and `end` < '2025-03-08 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:00:18] Production.INFO: count ==2496 [2025-03-08 20:00:19] Production.ERROR: pbx CDR StartTime 2025-03-08 17:00:06 - End Time 2025-03-08 20:00:06 [2025-03-08 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637450', 'tblTempUsageDetail_20' ) start [2025-03-08 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637450', 'tblTempUsageDetail_20' ) end [2025-03-08 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637450', 'tblTempVendorCDR_20' ) start [2025-03-08 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637450', 'tblTempVendorCDR_20' ) end [2025-03-08 20:00:19] Production.INFO: ProcessCDR(1,14637450,1,1,2) [2025-03-08 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637450', 'tblTempUsageDetail_20' ) start [2025-03-08 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637450', 'tblTempUsageDetail_20' ) end [2025-03-08 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:00:23] Production.INFO: ==6052== Releasing lock... [2025-03-08 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:00:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-08 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:01:05 [end_date_ymd] => 2025-03-08 20:01:05 [RateCDR] => 1 ) [2025-03-08 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:01:05' and `end` < '2025-03-08 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:01:17] Production.INFO: count ==2497 [2025-03-08 20:01:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:01:05 - End Time 2025-03-08 20:01:05 [2025-03-08 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637455', 'tblTempUsageDetail_20' ) start [2025-03-08 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637455', 'tblTempUsageDetail_20' ) end [2025-03-08 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637455', 'tblTempVendorCDR_20' ) start [2025-03-08 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637455', 'tblTempVendorCDR_20' ) end [2025-03-08 20:01:18] Production.INFO: ProcessCDR(1,14637455,1,1,2) [2025-03-08 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637455', 'tblTempUsageDetail_20' ) start [2025-03-08 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637455', 'tblTempUsageDetail_20' ) end [2025-03-08 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:01:22] Production.INFO: ==6179== Releasing lock... [2025-03-08 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:01:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-08 20:02:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:02:07 [end_date_ymd] => 2025-03-08 20:02:07 [RateCDR] => 1 ) [2025-03-08 20:02:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:02:07' and `end` < '2025-03-08 20:02:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:02:19] Production.INFO: count ==2493 [2025-03-08 20:02:20] Production.ERROR: pbx CDR StartTime 2025-03-08 17:02:07 - End Time 2025-03-08 20:02:07 [2025-03-08 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637460', 'tblTempUsageDetail_20' ) start [2025-03-08 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637460', 'tblTempUsageDetail_20' ) end [2025-03-08 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637460', 'tblTempVendorCDR_20' ) start [2025-03-08 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637460', 'tblTempVendorCDR_20' ) end [2025-03-08 20:02:20] Production.INFO: ProcessCDR(1,14637460,1,1,2) [2025-03-08 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637460', 'tblTempUsageDetail_20' ) start [2025-03-08 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637460', 'tblTempUsageDetail_20' ) end [2025-03-08 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:02:23] Production.INFO: ==6256== Releasing lock... [2025-03-08 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:02:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-08 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:03:05 [end_date_ymd] => 2025-03-08 20:03:05 [RateCDR] => 1 ) [2025-03-08 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:03:05' and `end` < '2025-03-08 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:03:17] Production.INFO: count ==2495 [2025-03-08 20:03:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:03:05 - End Time 2025-03-08 20:03:05 [2025-03-08 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637465', 'tblTempUsageDetail_20' ) start [2025-03-08 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637465', 'tblTempUsageDetail_20' ) end [2025-03-08 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637465', 'tblTempVendorCDR_20' ) start [2025-03-08 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637465', 'tblTempVendorCDR_20' ) end [2025-03-08 20:03:18] Production.INFO: ProcessCDR(1,14637465,1,1,2) [2025-03-08 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637465', 'tblTempUsageDetail_20' ) start [2025-03-08 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637465', 'tblTempUsageDetail_20' ) end [2025-03-08 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:03:23] Production.INFO: ==6334== Releasing lock... [2025-03-08 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:03:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-08 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:04:06 [end_date_ymd] => 2025-03-08 20:04:06 [RateCDR] => 1 ) [2025-03-08 20:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:04:06' and `end` < '2025-03-08 20:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:04:18] Production.INFO: count ==2492 [2025-03-08 20:04:19] Production.ERROR: pbx CDR StartTime 2025-03-08 17:04:06 - End Time 2025-03-08 20:04:06 [2025-03-08 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637470', 'tblTempUsageDetail_20' ) start [2025-03-08 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637470', 'tblTempUsageDetail_20' ) end [2025-03-08 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637470', 'tblTempVendorCDR_20' ) start [2025-03-08 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637470', 'tblTempVendorCDR_20' ) end [2025-03-08 20:04:19] Production.INFO: ProcessCDR(1,14637470,1,1,2) [2025-03-08 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637470', 'tblTempUsageDetail_20' ) start [2025-03-08 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637470', 'tblTempUsageDetail_20' ) end [2025-03-08 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:04:22] Production.INFO: ==6445== Releasing lock... [2025-03-08 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:04:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-08 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:05:05 [end_date_ymd] => 2025-03-08 20:05:05 [RateCDR] => 1 ) [2025-03-08 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:05:05' and `end` < '2025-03-08 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:05:17] Production.INFO: count ==2495 [2025-03-08 20:05:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:05:05 - End Time 2025-03-08 20:05:05 [2025-03-08 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637475', 'tblTempUsageDetail_20' ) start [2025-03-08 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637475', 'tblTempUsageDetail_20' ) end [2025-03-08 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637475', 'tblTempVendorCDR_20' ) start [2025-03-08 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637475', 'tblTempVendorCDR_20' ) end [2025-03-08 20:05:18] Production.INFO: ProcessCDR(1,14637475,1,1,2) [2025-03-08 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637475', 'tblTempUsageDetail_20' ) start [2025-03-08 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637475', 'tblTempUsageDetail_20' ) end [2025-03-08 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:05:22] Production.INFO: ==6517== Releasing lock... [2025-03-08 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:05:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-08 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:06:05 [end_date_ymd] => 2025-03-08 20:06:05 [RateCDR] => 1 ) [2025-03-08 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:06:05' and `end` < '2025-03-08 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:06:18] Production.INFO: count ==2487 [2025-03-08 20:06:19] Production.ERROR: pbx CDR StartTime 2025-03-08 17:06:05 - End Time 2025-03-08 20:06:05 [2025-03-08 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637480', 'tblTempUsageDetail_20' ) start [2025-03-08 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637480', 'tblTempUsageDetail_20' ) end [2025-03-08 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637480', 'tblTempVendorCDR_20' ) start [2025-03-08 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637480', 'tblTempVendorCDR_20' ) end [2025-03-08 20:06:19] Production.INFO: ProcessCDR(1,14637480,1,1,2) [2025-03-08 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637480', 'tblTempUsageDetail_20' ) start [2025-03-08 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637480', 'tblTempUsageDetail_20' ) end [2025-03-08 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:06:22] Production.INFO: ==6590== Releasing lock... [2025-03-08 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:06:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-08 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:07:05 [end_date_ymd] => 2025-03-08 20:07:05 [RateCDR] => 1 ) [2025-03-08 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:07:05' and `end` < '2025-03-08 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:07:17] Production.INFO: count ==2484 [2025-03-08 20:07:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:07:05 - End Time 2025-03-08 20:07:05 [2025-03-08 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637485', 'tblTempUsageDetail_20' ) start [2025-03-08 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637485', 'tblTempUsageDetail_20' ) end [2025-03-08 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637485', 'tblTempVendorCDR_20' ) start [2025-03-08 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637485', 'tblTempVendorCDR_20' ) end [2025-03-08 20:07:18] Production.INFO: ProcessCDR(1,14637485,1,1,2) [2025-03-08 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637485', 'tblTempUsageDetail_20' ) start [2025-03-08 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637485', 'tblTempUsageDetail_20' ) end [2025-03-08 20:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:07:21] Production.INFO: ==6663== Releasing lock... [2025-03-08 20:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:07:21] Production.INFO: 47 MB #Memory Used# [2025-03-08 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:08:05 [end_date_ymd] => 2025-03-08 20:08:05 [RateCDR] => 1 ) [2025-03-08 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:08:05' and `end` < '2025-03-08 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:08:17] Production.INFO: count ==2484 [2025-03-08 20:08:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:08:05 - End Time 2025-03-08 20:08:05 [2025-03-08 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637490', 'tblTempUsageDetail_20' ) start [2025-03-08 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637490', 'tblTempUsageDetail_20' ) end [2025-03-08 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637490', 'tblTempVendorCDR_20' ) start [2025-03-08 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637490', 'tblTempVendorCDR_20' ) end [2025-03-08 20:08:18] Production.INFO: ProcessCDR(1,14637490,1,1,2) [2025-03-08 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637490', 'tblTempUsageDetail_20' ) start [2025-03-08 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637490', 'tblTempUsageDetail_20' ) end [2025-03-08 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:08:22] Production.INFO: ==6736== Releasing lock... [2025-03-08 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:08:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-08 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:09:05 [end_date_ymd] => 2025-03-08 20:09:05 [RateCDR] => 1 ) [2025-03-08 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:09:05' and `end` < '2025-03-08 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:09:17] Production.INFO: count ==2484 [2025-03-08 20:09:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:09:05 - End Time 2025-03-08 20:09:05 [2025-03-08 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637495', 'tblTempUsageDetail_20' ) start [2025-03-08 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637495', 'tblTempUsageDetail_20' ) end [2025-03-08 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637495', 'tblTempVendorCDR_20' ) start [2025-03-08 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637495', 'tblTempVendorCDR_20' ) end [2025-03-08 20:09:18] Production.INFO: ProcessCDR(1,14637495,1,1,2) [2025-03-08 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637495', 'tblTempUsageDetail_20' ) start [2025-03-08 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637495', 'tblTempUsageDetail_20' ) end [2025-03-08 20:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:09:21] Production.INFO: ==6813== Releasing lock... [2025-03-08 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:09:21] Production.INFO: 46.75 MB #Memory Used# [2025-03-08 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:10:06 [end_date_ymd] => 2025-03-08 20:10:06 [RateCDR] => 1 ) [2025-03-08 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:10:06' and `end` < '2025-03-08 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:10:18] Production.INFO: count ==2486 [2025-03-08 20:10:19] Production.ERROR: pbx CDR StartTime 2025-03-08 17:10:06 - End Time 2025-03-08 20:10:06 [2025-03-08 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637501', 'tblTempUsageDetail_20' ) start [2025-03-08 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637501', 'tblTempUsageDetail_20' ) end [2025-03-08 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637501', 'tblTempVendorCDR_20' ) start [2025-03-08 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637501', 'tblTempVendorCDR_20' ) end [2025-03-08 20:10:19] Production.INFO: ProcessCDR(1,14637501,1,1,2) [2025-03-08 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637501', 'tblTempUsageDetail_20' ) start [2025-03-08 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637501', 'tblTempUsageDetail_20' ) end [2025-03-08 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:10:23] Production.INFO: ==6897== Releasing lock... [2025-03-08 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:10:23] Production.INFO: 47 MB #Memory Used# [2025-03-08 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:11:06 [end_date_ymd] => 2025-03-08 20:11:06 [RateCDR] => 1 ) [2025-03-08 20:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:11:06' and `end` < '2025-03-08 20:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:11:18] Production.INFO: count ==2450 [2025-03-08 20:11:19] Production.ERROR: pbx CDR StartTime 2025-03-08 17:11:06 - End Time 2025-03-08 20:11:06 [2025-03-08 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637506', 'tblTempUsageDetail_20' ) start [2025-03-08 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637506', 'tblTempUsageDetail_20' ) end [2025-03-08 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637506', 'tblTempVendorCDR_20' ) start [2025-03-08 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637506', 'tblTempVendorCDR_20' ) end [2025-03-08 20:11:19] Production.INFO: ProcessCDR(1,14637506,1,1,2) [2025-03-08 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637506', 'tblTempUsageDetail_20' ) start [2025-03-08 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637506', 'tblTempUsageDetail_20' ) end [2025-03-08 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:11:22] Production.INFO: ==6998== Releasing lock... [2025-03-08 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:11:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-08 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:12:05 [end_date_ymd] => 2025-03-08 20:12:05 [RateCDR] => 1 ) [2025-03-08 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:12:05' and `end` < '2025-03-08 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:12:18] Production.INFO: count ==2454 [2025-03-08 20:12:19] Production.ERROR: pbx CDR StartTime 2025-03-08 17:12:05 - End Time 2025-03-08 20:12:05 [2025-03-08 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637511', 'tblTempUsageDetail_20' ) start [2025-03-08 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637511', 'tblTempUsageDetail_20' ) end [2025-03-08 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637511', 'tblTempVendorCDR_20' ) start [2025-03-08 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637511', 'tblTempVendorCDR_20' ) end [2025-03-08 20:12:19] Production.INFO: ProcessCDR(1,14637511,1,1,2) [2025-03-08 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637511', 'tblTempUsageDetail_20' ) start [2025-03-08 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637511', 'tblTempUsageDetail_20' ) end [2025-03-08 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:12:24] Production.INFO: ==7081== Releasing lock... [2025-03-08 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:12:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-08 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:13:05 [end_date_ymd] => 2025-03-08 20:13:05 [RateCDR] => 1 ) [2025-03-08 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:13:05' and `end` < '2025-03-08 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:13:17] Production.INFO: count ==2454 [2025-03-08 20:13:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:13:05 - End Time 2025-03-08 20:13:05 [2025-03-08 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637516', 'tblTempUsageDetail_20' ) start [2025-03-08 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637516', 'tblTempUsageDetail_20' ) end [2025-03-08 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637516', 'tblTempVendorCDR_20' ) start [2025-03-08 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637516', 'tblTempVendorCDR_20' ) end [2025-03-08 20:13:18] Production.INFO: ProcessCDR(1,14637516,1,1,2) [2025-03-08 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637516', 'tblTempUsageDetail_20' ) start [2025-03-08 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637516', 'tblTempUsageDetail_20' ) end [2025-03-08 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:13:23] Production.INFO: ==7153== Releasing lock... [2025-03-08 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:13:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-08 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:14:05 [end_date_ymd] => 2025-03-08 20:14:05 [RateCDR] => 1 ) [2025-03-08 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:14:05' and `end` < '2025-03-08 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:14:18] Production.INFO: count ==2450 [2025-03-08 20:14:19] Production.ERROR: pbx CDR StartTime 2025-03-08 17:14:05 - End Time 2025-03-08 20:14:05 [2025-03-08 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637521', 'tblTempUsageDetail_20' ) start [2025-03-08 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637521', 'tblTempUsageDetail_20' ) end [2025-03-08 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637521', 'tblTempVendorCDR_20' ) start [2025-03-08 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637521', 'tblTempVendorCDR_20' ) end [2025-03-08 20:14:19] Production.INFO: ProcessCDR(1,14637521,1,1,2) [2025-03-08 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637521', 'tblTempUsageDetail_20' ) start [2025-03-08 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637521', 'tblTempUsageDetail_20' ) end [2025-03-08 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:14:22] Production.INFO: ==7231== Releasing lock... [2025-03-08 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:14:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-08 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:15:05 [end_date_ymd] => 2025-03-08 20:15:05 [RateCDR] => 1 ) [2025-03-08 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:15:05' and `end` < '2025-03-08 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:15:17] Production.INFO: count ==2449 [2025-03-08 20:15:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:15:05 - End Time 2025-03-08 20:15:05 [2025-03-08 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637526', 'tblTempUsageDetail_20' ) start [2025-03-08 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637526', 'tblTempUsageDetail_20' ) end [2025-03-08 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637526', 'tblTempVendorCDR_20' ) start [2025-03-08 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637526', 'tblTempVendorCDR_20' ) end [2025-03-08 20:15:18] Production.INFO: ProcessCDR(1,14637526,1,1,2) [2025-03-08 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637526', 'tblTempUsageDetail_20' ) start [2025-03-08 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637526', 'tblTempUsageDetail_20' ) end [2025-03-08 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:15:21] Production.INFO: ==7307== Releasing lock... [2025-03-08 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:15:21] Production.INFO: 46.5 MB #Memory Used# [2025-03-08 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:16:05 [end_date_ymd] => 2025-03-08 20:16:05 [RateCDR] => 1 ) [2025-03-08 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:16:05' and `end` < '2025-03-08 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:16:17] Production.INFO: count ==2427 [2025-03-08 20:16:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:16:05 - End Time 2025-03-08 20:16:05 [2025-03-08 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637531', 'tblTempUsageDetail_20' ) start [2025-03-08 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637531', 'tblTempUsageDetail_20' ) end [2025-03-08 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637531', 'tblTempVendorCDR_20' ) start [2025-03-08 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637531', 'tblTempVendorCDR_20' ) end [2025-03-08 20:16:18] Production.INFO: ProcessCDR(1,14637531,1,1,2) [2025-03-08 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637531', 'tblTempUsageDetail_20' ) start [2025-03-08 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637531', 'tblTempUsageDetail_20' ) end [2025-03-08 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:16:23] Production.INFO: ==7390== Releasing lock... [2025-03-08 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:16:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-08 20:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:17:04 [end_date_ymd] => 2025-03-08 20:17:04 [RateCDR] => 1 ) [2025-03-08 20:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:17:04' and `end` < '2025-03-08 20:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:17:17] Production.INFO: count ==2354 [2025-03-08 20:17:17] Production.ERROR: pbx CDR StartTime 2025-03-08 17:17:04 - End Time 2025-03-08 20:17:04 [2025-03-08 20:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637536', 'tblTempUsageDetail_20' ) start [2025-03-08 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637536', 'tblTempUsageDetail_20' ) end [2025-03-08 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637536', 'tblTempVendorCDR_20' ) start [2025-03-08 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637536', 'tblTempVendorCDR_20' ) end [2025-03-08 20:17:17] Production.INFO: ProcessCDR(1,14637536,1,1,2) [2025-03-08 20:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637536', 'tblTempUsageDetail_20' ) start [2025-03-08 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637536', 'tblTempUsageDetail_20' ) end [2025-03-08 20:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:17:21] Production.INFO: ==7462== Releasing lock... [2025-03-08 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:17:21] Production.INFO: 45.75 MB #Memory Used# [2025-03-08 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:18:05 [end_date_ymd] => 2025-03-08 20:18:05 [RateCDR] => 1 ) [2025-03-08 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:18:05' and `end` < '2025-03-08 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:18:17] Production.INFO: count ==2335 [2025-03-08 20:18:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:18:05 - End Time 2025-03-08 20:18:05 [2025-03-08 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637541', 'tblTempUsageDetail_20' ) start [2025-03-08 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637541', 'tblTempUsageDetail_20' ) end [2025-03-08 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637541', 'tblTempVendorCDR_20' ) start [2025-03-08 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637541', 'tblTempVendorCDR_20' ) end [2025-03-08 20:18:18] Production.INFO: ProcessCDR(1,14637541,1,1,2) [2025-03-08 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637541', 'tblTempUsageDetail_20' ) start [2025-03-08 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637541', 'tblTempUsageDetail_20' ) end [2025-03-08 20:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:18:21] Production.INFO: ==7548== Releasing lock... [2025-03-08 20:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:18:21] Production.INFO: 45.5 MB #Memory Used# [2025-03-08 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:19:05 [end_date_ymd] => 2025-03-08 20:19:05 [RateCDR] => 1 ) [2025-03-08 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:19:05' and `end` < '2025-03-08 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:19:17] Production.INFO: count ==2331 [2025-03-08 20:19:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:19:05 - End Time 2025-03-08 20:19:05 [2025-03-08 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637546', 'tblTempUsageDetail_20' ) start [2025-03-08 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637546', 'tblTempUsageDetail_20' ) end [2025-03-08 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637546', 'tblTempVendorCDR_20' ) start [2025-03-08 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637546', 'tblTempVendorCDR_20' ) end [2025-03-08 20:19:18] Production.INFO: ProcessCDR(1,14637546,1,1,2) [2025-03-08 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637546', 'tblTempUsageDetail_20' ) start [2025-03-08 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637546', 'tblTempUsageDetail_20' ) end [2025-03-08 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:19:22] Production.INFO: ==7664== Releasing lock... [2025-03-08 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:19:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-08 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:20:05 [end_date_ymd] => 2025-03-08 20:20:05 [RateCDR] => 1 ) [2025-03-08 20:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:20:05' and `end` < '2025-03-08 20:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:20:18] Production.INFO: count ==2331 [2025-03-08 20:20:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:20:05 - End Time 2025-03-08 20:20:05 [2025-03-08 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637551', 'tblTempUsageDetail_20' ) start [2025-03-08 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637551', 'tblTempUsageDetail_20' ) end [2025-03-08 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637551', 'tblTempVendorCDR_20' ) start [2025-03-08 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637551', 'tblTempVendorCDR_20' ) end [2025-03-08 20:20:19] Production.INFO: ProcessCDR(1,14637551,1,1,2) [2025-03-08 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637551', 'tblTempUsageDetail_20' ) start [2025-03-08 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637551', 'tblTempUsageDetail_20' ) end [2025-03-08 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:20:23] Production.INFO: ==7741== Releasing lock... [2025-03-08 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:20:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-08 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:21:05 [end_date_ymd] => 2025-03-08 20:21:05 [RateCDR] => 1 ) [2025-03-08 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:21:05' and `end` < '2025-03-08 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:21:18] Production.INFO: count ==2294 [2025-03-08 20:21:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:21:05 - End Time 2025-03-08 20:21:05 [2025-03-08 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637557', 'tblTempUsageDetail_20' ) start [2025-03-08 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637557', 'tblTempUsageDetail_20' ) end [2025-03-08 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637557', 'tblTempVendorCDR_20' ) start [2025-03-08 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637557', 'tblTempVendorCDR_20' ) end [2025-03-08 20:21:18] Production.INFO: ProcessCDR(1,14637557,1,1,2) [2025-03-08 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637557', 'tblTempUsageDetail_20' ) start [2025-03-08 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637557', 'tblTempUsageDetail_20' ) end [2025-03-08 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:21:22] Production.INFO: ==7816== Releasing lock... [2025-03-08 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:21:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-08 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:22:05 [end_date_ymd] => 2025-03-08 20:22:05 [RateCDR] => 1 ) [2025-03-08 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:22:05' and `end` < '2025-03-08 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:22:17] Production.INFO: count ==2283 [2025-03-08 20:22:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:22:05 - End Time 2025-03-08 20:22:05 [2025-03-08 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637562', 'tblTempUsageDetail_20' ) start [2025-03-08 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637562', 'tblTempUsageDetail_20' ) end [2025-03-08 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637562', 'tblTempVendorCDR_20' ) start [2025-03-08 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637562', 'tblTempVendorCDR_20' ) end [2025-03-08 20:22:18] Production.INFO: ProcessCDR(1,14637562,1,1,2) [2025-03-08 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637562', 'tblTempUsageDetail_20' ) start [2025-03-08 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637562', 'tblTempUsageDetail_20' ) end [2025-03-08 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:22:21] Production.INFO: ==7890== Releasing lock... [2025-03-08 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:22:21] Production.INFO: 45.5 MB #Memory Used# [2025-03-08 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:23:05 [end_date_ymd] => 2025-03-08 20:23:05 [RateCDR] => 1 ) [2025-03-08 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:23:05' and `end` < '2025-03-08 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:23:18] Production.INFO: count ==2291 [2025-03-08 20:23:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:23:05 - End Time 2025-03-08 20:23:05 [2025-03-08 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637567', 'tblTempUsageDetail_20' ) start [2025-03-08 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637567', 'tblTempUsageDetail_20' ) end [2025-03-08 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637567', 'tblTempVendorCDR_20' ) start [2025-03-08 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637567', 'tblTempVendorCDR_20' ) end [2025-03-08 20:23:18] Production.INFO: ProcessCDR(1,14637567,1,1,2) [2025-03-08 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637567', 'tblTempUsageDetail_20' ) start [2025-03-08 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637567', 'tblTempUsageDetail_20' ) end [2025-03-08 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:23:22] Production.INFO: ==7966== Releasing lock... [2025-03-08 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:23:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-08 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:24:05 [end_date_ymd] => 2025-03-08 20:24:05 [RateCDR] => 1 ) [2025-03-08 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:24:05' and `end` < '2025-03-08 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:24:17] Production.INFO: count ==2283 [2025-03-08 20:24:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:24:05 - End Time 2025-03-08 20:24:05 [2025-03-08 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637572', 'tblTempUsageDetail_20' ) start [2025-03-08 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637572', 'tblTempUsageDetail_20' ) end [2025-03-08 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637572', 'tblTempVendorCDR_20' ) start [2025-03-08 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637572', 'tblTempVendorCDR_20' ) end [2025-03-08 20:24:18] Production.INFO: ProcessCDR(1,14637572,1,1,2) [2025-03-08 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637572', 'tblTempUsageDetail_20' ) start [2025-03-08 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637572', 'tblTempUsageDetail_20' ) end [2025-03-08 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:24:22] Production.INFO: ==8038== Releasing lock... [2025-03-08 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:24:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-08 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:25:06 [end_date_ymd] => 2025-03-08 20:25:06 [RateCDR] => 1 ) [2025-03-08 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:25:06' and `end` < '2025-03-08 20: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-03-08 20:25:18] Production.INFO: count ==2284 [2025-03-08 20:25:19] Production.ERROR: pbx CDR StartTime 2025-03-08 17:25:06 - End Time 2025-03-08 20:25:06 [2025-03-08 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637577', 'tblTempUsageDetail_20' ) start [2025-03-08 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637577', 'tblTempUsageDetail_20' ) end [2025-03-08 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637577', 'tblTempVendorCDR_20' ) start [2025-03-08 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637577', 'tblTempVendorCDR_20' ) end [2025-03-08 20:25:19] Production.INFO: ProcessCDR(1,14637577,1,1,2) [2025-03-08 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637577', 'tblTempUsageDetail_20' ) start [2025-03-08 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637577', 'tblTempUsageDetail_20' ) end [2025-03-08 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:25:22] Production.INFO: ==8115== Releasing lock... [2025-03-08 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:25:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-08 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:26:05 [end_date_ymd] => 2025-03-08 20:26:05 [RateCDR] => 1 ) [2025-03-08 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:26:05' and `end` < '2025-03-08 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:26:17] Production.INFO: count ==2280 [2025-03-08 20:26:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:26:05 - End Time 2025-03-08 20:26:05 [2025-03-08 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637582', 'tblTempUsageDetail_20' ) start [2025-03-08 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637582', 'tblTempUsageDetail_20' ) end [2025-03-08 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637582', 'tblTempVendorCDR_20' ) start [2025-03-08 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637582', 'tblTempVendorCDR_20' ) end [2025-03-08 20:26:18] Production.INFO: ProcessCDR(1,14637582,1,1,2) [2025-03-08 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637582', 'tblTempUsageDetail_20' ) start [2025-03-08 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637582', 'tblTempUsageDetail_20' ) end [2025-03-08 20:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:26:21] Production.INFO: ==8192== Releasing lock... [2025-03-08 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:26:21] Production.INFO: 45.25 MB #Memory Used# [2025-03-08 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:27:05 [end_date_ymd] => 2025-03-08 20:27:05 [RateCDR] => 1 ) [2025-03-08 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:27:05' and `end` < '2025-03-08 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:27:17] Production.INFO: count ==2276 [2025-03-08 20:27:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:27:05 - End Time 2025-03-08 20:27:05 [2025-03-08 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637587', 'tblTempUsageDetail_20' ) start [2025-03-08 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637587', 'tblTempUsageDetail_20' ) end [2025-03-08 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637587', 'tblTempVendorCDR_20' ) start [2025-03-08 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637587', 'tblTempVendorCDR_20' ) end [2025-03-08 20:27:18] Production.INFO: ProcessCDR(1,14637587,1,1,2) [2025-03-08 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637587', 'tblTempUsageDetail_20' ) start [2025-03-08 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637587', 'tblTempUsageDetail_20' ) end [2025-03-08 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:27:22] Production.INFO: ==8271== Releasing lock... [2025-03-08 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:27:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-08 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:28:05 [end_date_ymd] => 2025-03-08 20:28:05 [RateCDR] => 1 ) [2025-03-08 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:28:05' and `end` < '2025-03-08 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:28:17] Production.INFO: count ==2278 [2025-03-08 20:28:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:28:05 - End Time 2025-03-08 20:28:05 [2025-03-08 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637592', 'tblTempUsageDetail_20' ) start [2025-03-08 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637592', 'tblTempUsageDetail_20' ) end [2025-03-08 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637592', 'tblTempVendorCDR_20' ) start [2025-03-08 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637592', 'tblTempVendorCDR_20' ) end [2025-03-08 20:28:18] Production.INFO: ProcessCDR(1,14637592,1,1,2) [2025-03-08 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637592', 'tblTempUsageDetail_20' ) start [2025-03-08 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637592', 'tblTempUsageDetail_20' ) end [2025-03-08 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:28:23] Production.INFO: ==8343== Releasing lock... [2025-03-08 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:28:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-08 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:29:05 [end_date_ymd] => 2025-03-08 20:29:05 [RateCDR] => 1 ) [2025-03-08 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:29:05' and `end` < '2025-03-08 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:29:18] Production.INFO: count ==2276 [2025-03-08 20:29:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:29:05 - End Time 2025-03-08 20:29:05 [2025-03-08 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637597', 'tblTempUsageDetail_20' ) start [2025-03-08 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637597', 'tblTempUsageDetail_20' ) end [2025-03-08 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637597', 'tblTempVendorCDR_20' ) start [2025-03-08 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637597', 'tblTempVendorCDR_20' ) end [2025-03-08 20:29:18] Production.INFO: ProcessCDR(1,14637597,1,1,2) [2025-03-08 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637597', 'tblTempUsageDetail_20' ) start [2025-03-08 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637597', 'tblTempUsageDetail_20' ) end [2025-03-08 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:29:22] Production.INFO: ==8425== Releasing lock... [2025-03-08 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:29:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-08 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:30:05 [end_date_ymd] => 2025-03-08 20:30:05 [RateCDR] => 1 ) [2025-03-08 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:30:05' and `end` < '2025-03-08 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:30:18] Production.INFO: count ==2281 [2025-03-08 20:30:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:30:05 - End Time 2025-03-08 20:30:05 [2025-03-08 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637603', 'tblTempUsageDetail_20' ) start [2025-03-08 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637603', 'tblTempUsageDetail_20' ) end [2025-03-08 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637603', 'tblTempVendorCDR_20' ) start [2025-03-08 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637603', 'tblTempVendorCDR_20' ) end [2025-03-08 20:30:18] Production.INFO: ProcessCDR(1,14637603,1,1,2) [2025-03-08 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637603', 'tblTempUsageDetail_20' ) start [2025-03-08 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637603', 'tblTempUsageDetail_20' ) end [2025-03-08 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:30:23] Production.INFO: ==8501== Releasing lock... [2025-03-08 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:30:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-08 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:31:05 [end_date_ymd] => 2025-03-08 20:31:05 [RateCDR] => 1 ) [2025-03-08 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:31:05' and `end` < '2025-03-08 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:31:17] Production.INFO: count ==2264 [2025-03-08 20:31:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:31:05 - End Time 2025-03-08 20:31:05 [2025-03-08 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637608', 'tblTempUsageDetail_20' ) start [2025-03-08 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637608', 'tblTempUsageDetail_20' ) end [2025-03-08 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637608', 'tblTempVendorCDR_20' ) start [2025-03-08 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637608', 'tblTempVendorCDR_20' ) end [2025-03-08 20:31:18] Production.INFO: ProcessCDR(1,14637608,1,1,2) [2025-03-08 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637608', 'tblTempUsageDetail_20' ) start [2025-03-08 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637608', 'tblTempUsageDetail_20' ) end [2025-03-08 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:31:23] Production.INFO: ==8579== Releasing lock... [2025-03-08 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:31:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-08 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:32:05 [end_date_ymd] => 2025-03-08 20:32:05 [RateCDR] => 1 ) [2025-03-08 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:32:05' and `end` < '2025-03-08 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:32:18] Production.INFO: count ==2264 [2025-03-08 20:32:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:32:05 - End Time 2025-03-08 20:32:05 [2025-03-08 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637613', 'tblTempUsageDetail_20' ) start [2025-03-08 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637613', 'tblTempUsageDetail_20' ) end [2025-03-08 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637613', 'tblTempVendorCDR_20' ) start [2025-03-08 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637613', 'tblTempVendorCDR_20' ) end [2025-03-08 20:32:18] Production.INFO: ProcessCDR(1,14637613,1,1,2) [2025-03-08 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637613', 'tblTempUsageDetail_20' ) start [2025-03-08 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637613', 'tblTempUsageDetail_20' ) end [2025-03-08 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:32:22] Production.INFO: ==8656== Releasing lock... [2025-03-08 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:32:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-08 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:33:05 [end_date_ymd] => 2025-03-08 20:33:05 [RateCDR] => 1 ) [2025-03-08 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:33:05' and `end` < '2025-03-08 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:33:18] Production.INFO: count ==2262 [2025-03-08 20:33:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:33:05 - End Time 2025-03-08 20:33:05 [2025-03-08 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637618', 'tblTempUsageDetail_20' ) start [2025-03-08 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637618', 'tblTempUsageDetail_20' ) end [2025-03-08 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637618', 'tblTempVendorCDR_20' ) start [2025-03-08 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637618', 'tblTempVendorCDR_20' ) end [2025-03-08 20:33:18] Production.INFO: ProcessCDR(1,14637618,1,1,2) [2025-03-08 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637618', 'tblTempUsageDetail_20' ) start [2025-03-08 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637618', 'tblTempUsageDetail_20' ) end [2025-03-08 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:33:22] Production.INFO: ==8732== Releasing lock... [2025-03-08 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:33:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-08 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:34:06 [end_date_ymd] => 2025-03-08 20:34:06 [RateCDR] => 1 ) [2025-03-08 20:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:34:06' and `end` < '2025-03-08 20:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:34:18] Production.INFO: count ==2272 [2025-03-08 20:34:19] Production.ERROR: pbx CDR StartTime 2025-03-08 17:34:06 - End Time 2025-03-08 20:34:06 [2025-03-08 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637623', 'tblTempUsageDetail_20' ) start [2025-03-08 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637623', 'tblTempUsageDetail_20' ) end [2025-03-08 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637623', 'tblTempVendorCDR_20' ) start [2025-03-08 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637623', 'tblTempVendorCDR_20' ) end [2025-03-08 20:34:19] Production.INFO: ProcessCDR(1,14637623,1,1,2) [2025-03-08 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637623', 'tblTempUsageDetail_20' ) start [2025-03-08 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637623', 'tblTempUsageDetail_20' ) end [2025-03-08 20:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:34:24] Production.INFO: ==8808== Releasing lock... [2025-03-08 20:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:34:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-08 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:35:05 [end_date_ymd] => 2025-03-08 20:35:05 [RateCDR] => 1 ) [2025-03-08 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:35:05' and `end` < '2025-03-08 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:35:17] Production.INFO: count ==2269 [2025-03-08 20:35:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:35:05 - End Time 2025-03-08 20:35:05 [2025-03-08 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637628', 'tblTempUsageDetail_20' ) start [2025-03-08 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637628', 'tblTempUsageDetail_20' ) end [2025-03-08 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637628', 'tblTempVendorCDR_20' ) start [2025-03-08 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637628', 'tblTempVendorCDR_20' ) end [2025-03-08 20:35:18] Production.INFO: ProcessCDR(1,14637628,1,1,2) [2025-03-08 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637628', 'tblTempUsageDetail_20' ) start [2025-03-08 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637628', 'tblTempUsageDetail_20' ) end [2025-03-08 20:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:35:21] Production.INFO: ==8923== Releasing lock... [2025-03-08 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:35:21] Production.INFO: 45 MB #Memory Used# [2025-03-08 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:36:06 [end_date_ymd] => 2025-03-08 20:36:06 [RateCDR] => 1 ) [2025-03-08 20:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:36:06' and `end` < '2025-03-08 20:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:36:18] Production.INFO: count ==2264 [2025-03-08 20:36:19] Production.ERROR: pbx CDR StartTime 2025-03-08 17:36:06 - End Time 2025-03-08 20:36:06 [2025-03-08 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637633', 'tblTempUsageDetail_20' ) start [2025-03-08 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637633', 'tblTempUsageDetail_20' ) end [2025-03-08 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637633', 'tblTempVendorCDR_20' ) start [2025-03-08 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637633', 'tblTempVendorCDR_20' ) end [2025-03-08 20:36:19] Production.INFO: ProcessCDR(1,14637633,1,1,2) [2025-03-08 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637633', 'tblTempUsageDetail_20' ) start [2025-03-08 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637633', 'tblTempUsageDetail_20' ) end [2025-03-08 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:36:22] Production.INFO: ==9000== Releasing lock... [2025-03-08 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:36:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-08 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:37:05 [end_date_ymd] => 2025-03-08 20:37:05 [RateCDR] => 1 ) [2025-03-08 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:37:05' and `end` < '2025-03-08 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:37:17] Production.INFO: count ==2272 [2025-03-08 20:37:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:37:05 - End Time 2025-03-08 20:37:05 [2025-03-08 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637638', 'tblTempUsageDetail_20' ) start [2025-03-08 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637638', 'tblTempUsageDetail_20' ) end [2025-03-08 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637638', 'tblTempVendorCDR_20' ) start [2025-03-08 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637638', 'tblTempVendorCDR_20' ) end [2025-03-08 20:37:18] Production.INFO: ProcessCDR(1,14637638,1,1,2) [2025-03-08 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637638', 'tblTempUsageDetail_20' ) start [2025-03-08 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637638', 'tblTempUsageDetail_20' ) end [2025-03-08 20:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:37:21] Production.INFO: ==9075== Releasing lock... [2025-03-08 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:37:21] Production.INFO: 45 MB #Memory Used# [2025-03-08 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:38:05 [end_date_ymd] => 2025-03-08 20:38:05 [RateCDR] => 1 ) [2025-03-08 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:38:05' and `end` < '2025-03-08 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:38:18] Production.INFO: count ==2269 [2025-03-08 20:38:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:38:05 - End Time 2025-03-08 20:38:05 [2025-03-08 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637643', 'tblTempUsageDetail_20' ) start [2025-03-08 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637643', 'tblTempUsageDetail_20' ) end [2025-03-08 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637643', 'tblTempVendorCDR_20' ) start [2025-03-08 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637643', 'tblTempVendorCDR_20' ) end [2025-03-08 20:38:18] Production.INFO: ProcessCDR(1,14637643,1,1,2) [2025-03-08 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637643', 'tblTempUsageDetail_20' ) start [2025-03-08 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637643', 'tblTempUsageDetail_20' ) end [2025-03-08 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:38:22] Production.INFO: ==9150== Releasing lock... [2025-03-08 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:38:22] Production.INFO: 45 MB #Memory Used# [2025-03-08 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:39:05 [end_date_ymd] => 2025-03-08 20:39:05 [RateCDR] => 1 ) [2025-03-08 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:39:05' and `end` < '2025-03-08 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:39:17] Production.INFO: count ==2266 [2025-03-08 20:39:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:39:05 - End Time 2025-03-08 20:39:05 [2025-03-08 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637648', 'tblTempUsageDetail_20' ) start [2025-03-08 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637648', 'tblTempUsageDetail_20' ) end [2025-03-08 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637648', 'tblTempVendorCDR_20' ) start [2025-03-08 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637648', 'tblTempVendorCDR_20' ) end [2025-03-08 20:39:18] Production.INFO: ProcessCDR(1,14637648,1,1,2) [2025-03-08 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637648', 'tblTempUsageDetail_20' ) start [2025-03-08 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637648', 'tblTempUsageDetail_20' ) end [2025-03-08 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:39:23] Production.INFO: ==9225== Releasing lock... [2025-03-08 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:39:23] Production.INFO: 45 MB #Memory Used# [2025-03-08 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:40:05 [end_date_ymd] => 2025-03-08 20:40:05 [RateCDR] => 1 ) [2025-03-08 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:40:05' and `end` < '2025-03-08 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:40:18] Production.INFO: count ==2269 [2025-03-08 20:40:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:40:05 - End Time 2025-03-08 20:40:05 [2025-03-08 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637653', 'tblTempUsageDetail_20' ) start [2025-03-08 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637653', 'tblTempUsageDetail_20' ) end [2025-03-08 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637653', 'tblTempVendorCDR_20' ) start [2025-03-08 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637653', 'tblTempVendorCDR_20' ) end [2025-03-08 20:40:19] Production.INFO: ProcessCDR(1,14637653,1,1,2) [2025-03-08 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637653', 'tblTempUsageDetail_20' ) start [2025-03-08 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637653', 'tblTempUsageDetail_20' ) end [2025-03-08 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:40:23] Production.INFO: ==9303== Releasing lock... [2025-03-08 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:40:23] Production.INFO: 45 MB #Memory Used# [2025-03-08 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:41:05 [end_date_ymd] => 2025-03-08 20:41:05 [RateCDR] => 1 ) [2025-03-08 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:41:05' and `end` < '2025-03-08 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:41:17] Production.INFO: count ==2231 [2025-03-08 20:41:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:41:05 - End Time 2025-03-08 20:41:05 [2025-03-08 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637659', 'tblTempUsageDetail_20' ) start [2025-03-08 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637659', 'tblTempUsageDetail_20' ) end [2025-03-08 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637659', 'tblTempVendorCDR_20' ) start [2025-03-08 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637659', 'tblTempVendorCDR_20' ) end [2025-03-08 20:41:18] Production.INFO: ProcessCDR(1,14637659,1,1,2) [2025-03-08 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637659', 'tblTempUsageDetail_20' ) start [2025-03-08 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637659', 'tblTempUsageDetail_20' ) end [2025-03-08 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:41:21] Production.INFO: ==9380== Releasing lock... [2025-03-08 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:41:21] Production.INFO: 44.75 MB #Memory Used# [2025-03-08 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:42:05 [end_date_ymd] => 2025-03-08 20:42:05 [RateCDR] => 1 ) [2025-03-08 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:42:05' and `end` < '2025-03-08 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:42:18] Production.INFO: count ==2228 [2025-03-08 20:42:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:42:05 - End Time 2025-03-08 20:42:05 [2025-03-08 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637664', 'tblTempUsageDetail_20' ) start [2025-03-08 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637664', 'tblTempUsageDetail_20' ) end [2025-03-08 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637664', 'tblTempVendorCDR_20' ) start [2025-03-08 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637664', 'tblTempVendorCDR_20' ) end [2025-03-08 20:42:18] Production.INFO: ProcessCDR(1,14637664,1,1,2) [2025-03-08 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637664', 'tblTempUsageDetail_20' ) start [2025-03-08 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637664', 'tblTempUsageDetail_20' ) end [2025-03-08 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:42:22] Production.INFO: ==9458== Releasing lock... [2025-03-08 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:42:22] Production.INFO: 45 MB #Memory Used# [2025-03-08 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:43:05 [end_date_ymd] => 2025-03-08 20:43:05 [RateCDR] => 1 ) [2025-03-08 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:43:05' and `end` < '2025-03-08 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:43:18] Production.INFO: count ==2228 [2025-03-08 20:43:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:43:05 - End Time 2025-03-08 20:43:05 [2025-03-08 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637669', 'tblTempUsageDetail_20' ) start [2025-03-08 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637669', 'tblTempUsageDetail_20' ) end [2025-03-08 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637669', 'tblTempVendorCDR_20' ) start [2025-03-08 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637669', 'tblTempVendorCDR_20' ) end [2025-03-08 20:43:18] Production.INFO: ProcessCDR(1,14637669,1,1,2) [2025-03-08 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637669', 'tblTempUsageDetail_20' ) start [2025-03-08 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637669', 'tblTempUsageDetail_20' ) end [2025-03-08 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:43:22] Production.INFO: ==9534== Releasing lock... [2025-03-08 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:43:22] Production.INFO: 45 MB #Memory Used# [2025-03-08 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:44:05 [end_date_ymd] => 2025-03-08 20:44:05 [RateCDR] => 1 ) [2025-03-08 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:44:05' and `end` < '2025-03-08 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:44:18] Production.INFO: count ==2235 [2025-03-08 20:44:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:44:05 - End Time 2025-03-08 20:44:05 [2025-03-08 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637674', 'tblTempUsageDetail_20' ) start [2025-03-08 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637674', 'tblTempUsageDetail_20' ) end [2025-03-08 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637674', 'tblTempVendorCDR_20' ) start [2025-03-08 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637674', 'tblTempVendorCDR_20' ) end [2025-03-08 20:44:18] Production.INFO: ProcessCDR(1,14637674,1,1,2) [2025-03-08 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637674', 'tblTempUsageDetail_20' ) start [2025-03-08 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637674', 'tblTempUsageDetail_20' ) end [2025-03-08 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:44:22] Production.INFO: ==9610== Releasing lock... [2025-03-08 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:44:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-08 20:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:45:06 [end_date_ymd] => 2025-03-08 20:45:06 [RateCDR] => 1 ) [2025-03-08 20:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:45:06' and `end` < '2025-03-08 20:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:45:18] Production.INFO: count ==2235 [2025-03-08 20:45:19] Production.ERROR: pbx CDR StartTime 2025-03-08 17:45:06 - End Time 2025-03-08 20:45:06 [2025-03-08 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637679', 'tblTempUsageDetail_20' ) start [2025-03-08 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637679', 'tblTempUsageDetail_20' ) end [2025-03-08 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637679', 'tblTempVendorCDR_20' ) start [2025-03-08 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637679', 'tblTempVendorCDR_20' ) end [2025-03-08 20:45:19] Production.INFO: ProcessCDR(1,14637679,1,1,2) [2025-03-08 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637679', 'tblTempUsageDetail_20' ) start [2025-03-08 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637679', 'tblTempUsageDetail_20' ) end [2025-03-08 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:45:22] Production.INFO: ==9685== Releasing lock... [2025-03-08 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:45:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-08 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:46:05 [end_date_ymd] => 2025-03-08 20:46:05 [RateCDR] => 1 ) [2025-03-08 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:46:05' and `end` < '2025-03-08 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:46:18] Production.INFO: count ==2232 [2025-03-08 20:46:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:46:05 - End Time 2025-03-08 20:46:05 [2025-03-08 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637684', 'tblTempUsageDetail_20' ) start [2025-03-08 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637684', 'tblTempUsageDetail_20' ) end [2025-03-08 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637684', 'tblTempVendorCDR_20' ) start [2025-03-08 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637684', 'tblTempVendorCDR_20' ) end [2025-03-08 20:46:19] Production.INFO: ProcessCDR(1,14637684,1,1,2) [2025-03-08 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637684', 'tblTempUsageDetail_20' ) start [2025-03-08 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637684', 'tblTempUsageDetail_20' ) end [2025-03-08 20:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:46:24] Production.INFO: ==9759== Releasing lock... [2025-03-08 20:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:46:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-08 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:47:05 [end_date_ymd] => 2025-03-08 20:47:05 [RateCDR] => 1 ) [2025-03-08 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:47:05' and `end` < '2025-03-08 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:47:18] Production.INFO: count ==2238 [2025-03-08 20:47:19] Production.ERROR: pbx CDR StartTime 2025-03-08 17:47:05 - End Time 2025-03-08 20:47:05 [2025-03-08 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637689', 'tblTempUsageDetail_20' ) start [2025-03-08 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637689', 'tblTempUsageDetail_20' ) end [2025-03-08 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637689', 'tblTempVendorCDR_20' ) start [2025-03-08 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637689', 'tblTempVendorCDR_20' ) end [2025-03-08 20:47:19] Production.INFO: ProcessCDR(1,14637689,1,1,2) [2025-03-08 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637689', 'tblTempUsageDetail_20' ) start [2025-03-08 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637689', 'tblTempUsageDetail_20' ) end [2025-03-08 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:47:22] Production.INFO: ==9835== Releasing lock... [2025-03-08 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:47:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-08 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:48:05 [end_date_ymd] => 2025-03-08 20:48:05 [RateCDR] => 1 ) [2025-03-08 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:48:05' and `end` < '2025-03-08 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:48:18] Production.INFO: count ==2236 [2025-03-08 20:48:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:48:05 - End Time 2025-03-08 20:48:05 [2025-03-08 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637694', 'tblTempUsageDetail_20' ) start [2025-03-08 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637694', 'tblTempUsageDetail_20' ) end [2025-03-08 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637694', 'tblTempVendorCDR_20' ) start [2025-03-08 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637694', 'tblTempVendorCDR_20' ) end [2025-03-08 20:48:18] Production.INFO: ProcessCDR(1,14637694,1,1,2) [2025-03-08 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637694', 'tblTempUsageDetail_20' ) start [2025-03-08 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637694', 'tblTempUsageDetail_20' ) end [2025-03-08 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:48:22] Production.INFO: ==9914== Releasing lock... [2025-03-08 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:48:22] Production.INFO: 45 MB #Memory Used# [2025-03-08 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:49:05 [end_date_ymd] => 2025-03-08 20:49:05 [RateCDR] => 1 ) [2025-03-08 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:49:05' and `end` < '2025-03-08 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:49:17] Production.INFO: count ==2229 [2025-03-08 20:49:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:49:05 - End Time 2025-03-08 20:49:05 [2025-03-08 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637699', 'tblTempUsageDetail_20' ) start [2025-03-08 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637699', 'tblTempUsageDetail_20' ) end [2025-03-08 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637699', 'tblTempVendorCDR_20' ) start [2025-03-08 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637699', 'tblTempVendorCDR_20' ) end [2025-03-08 20:49:18] Production.INFO: ProcessCDR(1,14637699,1,1,2) [2025-03-08 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637699', 'tblTempUsageDetail_20' ) start [2025-03-08 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637699', 'tblTempUsageDetail_20' ) end [2025-03-08 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:49:22] Production.INFO: ==9987== Releasing lock... [2025-03-08 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:49:22] Production.INFO: 45 MB #Memory Used# [2025-03-08 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:50:05 [end_date_ymd] => 2025-03-08 20:50:05 [RateCDR] => 1 ) [2025-03-08 20:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:50:05' and `end` < '2025-03-08 20:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:50:18] Production.INFO: count ==2232 [2025-03-08 20:50:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:50:05 - End Time 2025-03-08 20:50:05 [2025-03-08 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637705', 'tblTempUsageDetail_20' ) start [2025-03-08 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637705', 'tblTempUsageDetail_20' ) end [2025-03-08 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637705', 'tblTempVendorCDR_20' ) start [2025-03-08 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637705', 'tblTempVendorCDR_20' ) end [2025-03-08 20:50:19] Production.INFO: ProcessCDR(1,14637705,1,1,2) [2025-03-08 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637705', 'tblTempUsageDetail_20' ) start [2025-03-08 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637705', 'tblTempUsageDetail_20' ) end [2025-03-08 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:50:22] Production.INFO: ==10100== Releasing lock... [2025-03-08 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:50:22] Production.INFO: 45 MB #Memory Used# [2025-03-08 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:51:05 [end_date_ymd] => 2025-03-08 20:51:05 [RateCDR] => 1 ) [2025-03-08 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:51:05' and `end` < '2025-03-08 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:51:17] Production.INFO: count ==2191 [2025-03-08 20:51:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:51:05 - End Time 2025-03-08 20:51:05 [2025-03-08 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637710', 'tblTempUsageDetail_20' ) start [2025-03-08 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637710', 'tblTempUsageDetail_20' ) end [2025-03-08 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637710', 'tblTempVendorCDR_20' ) start [2025-03-08 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637710', 'tblTempVendorCDR_20' ) end [2025-03-08 20:51:18] Production.INFO: ProcessCDR(1,14637710,1,1,2) [2025-03-08 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637710', 'tblTempUsageDetail_20' ) start [2025-03-08 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637710', 'tblTempUsageDetail_20' ) end [2025-03-08 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:51:23] Production.INFO: ==10177== Releasing lock... [2025-03-08 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:51:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-08 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:52:06 [end_date_ymd] => 2025-03-08 20:52:06 [RateCDR] => 1 ) [2025-03-08 20:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:52:06' and `end` < '2025-03-08 20:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:52:18] Production.INFO: count ==2111 [2025-03-08 20:52:19] Production.ERROR: pbx CDR StartTime 2025-03-08 17:52:06 - End Time 2025-03-08 20:52:06 [2025-03-08 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637715', 'tblTempUsageDetail_20' ) start [2025-03-08 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637715', 'tblTempUsageDetail_20' ) end [2025-03-08 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637715', 'tblTempVendorCDR_20' ) start [2025-03-08 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637715', 'tblTempVendorCDR_20' ) end [2025-03-08 20:52:19] Production.INFO: ProcessCDR(1,14637715,1,1,2) [2025-03-08 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637715', 'tblTempUsageDetail_20' ) start [2025-03-08 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637715', 'tblTempUsageDetail_20' ) end [2025-03-08 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:52:22] Production.INFO: ==10249== Releasing lock... [2025-03-08 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:52:22] Production.INFO: 44 MB #Memory Used# [2025-03-08 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:53:05 [end_date_ymd] => 2025-03-08 20:53:05 [RateCDR] => 1 ) [2025-03-08 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:53:05' and `end` < '2025-03-08 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:53:18] Production.INFO: count ==2019 [2025-03-08 20:53:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:53:05 - End Time 2025-03-08 20:53:05 [2025-03-08 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637720', 'tblTempUsageDetail_20' ) start [2025-03-08 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637720', 'tblTempUsageDetail_20' ) end [2025-03-08 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637720', 'tblTempVendorCDR_20' ) start [2025-03-08 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637720', 'tblTempVendorCDR_20' ) end [2025-03-08 20:53:19] Production.INFO: ProcessCDR(1,14637720,1,1,2) [2025-03-08 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637720', 'tblTempUsageDetail_20' ) start [2025-03-08 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637720', 'tblTempUsageDetail_20' ) end [2025-03-08 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:53:22] Production.INFO: ==10320== Releasing lock... [2025-03-08 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:53:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-08 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:54:05 [end_date_ymd] => 2025-03-08 20:54:05 [RateCDR] => 1 ) [2025-03-08 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:54:05' and `end` < '2025-03-08 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:54:18] Production.INFO: count ==1867 [2025-03-08 20:54:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:54:05 - End Time 2025-03-08 20:54:05 [2025-03-08 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637725', 'tblTempUsageDetail_20' ) start [2025-03-08 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637725', 'tblTempUsageDetail_20' ) end [2025-03-08 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637725', 'tblTempVendorCDR_20' ) start [2025-03-08 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637725', 'tblTempVendorCDR_20' ) end [2025-03-08 20:54:18] Production.INFO: ProcessCDR(1,14637725,1,1,2) [2025-03-08 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637725', 'tblTempUsageDetail_20' ) start [2025-03-08 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637725', 'tblTempUsageDetail_20' ) end [2025-03-08 20:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:54:23] Production.INFO: ==10391== Releasing lock... [2025-03-08 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:54:23] Production.INFO: 42 MB #Memory Used# [2025-03-08 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:55:05 [end_date_ymd] => 2025-03-08 20:55:05 [RateCDR] => 1 ) [2025-03-08 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:55:05' and `end` < '2025-03-08 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:55:17] Production.INFO: count ==1714 [2025-03-08 20:55:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:55:05 - End Time 2025-03-08 20:55:05 [2025-03-08 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637730', 'tblTempUsageDetail_20' ) start [2025-03-08 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637730', 'tblTempUsageDetail_20' ) end [2025-03-08 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637730', 'tblTempVendorCDR_20' ) start [2025-03-08 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637730', 'tblTempVendorCDR_20' ) end [2025-03-08 20:55:18] Production.INFO: ProcessCDR(1,14637730,1,1,2) [2025-03-08 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637730', 'tblTempUsageDetail_20' ) start [2025-03-08 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637730', 'tblTempUsageDetail_20' ) end [2025-03-08 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:55:21] Production.INFO: ==10460== Releasing lock... [2025-03-08 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:55:21] Production.INFO: 41 MB #Memory Used# [2025-03-08 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:56:05 [end_date_ymd] => 2025-03-08 20:56:05 [RateCDR] => 1 ) [2025-03-08 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:56:05' and `end` < '2025-03-08 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:56:17] Production.INFO: count ==1610 [2025-03-08 20:56:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:56:05 - End Time 2025-03-08 20:56:05 [2025-03-08 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637735', 'tblTempUsageDetail_20' ) start [2025-03-08 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637735', 'tblTempUsageDetail_20' ) end [2025-03-08 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637735', 'tblTempVendorCDR_20' ) start [2025-03-08 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637735', 'tblTempVendorCDR_20' ) end [2025-03-08 20:56:18] Production.INFO: ProcessCDR(1,14637735,1,1,2) [2025-03-08 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637735', 'tblTempUsageDetail_20' ) start [2025-03-08 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637735', 'tblTempUsageDetail_20' ) end [2025-03-08 20:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:56:21] Production.INFO: ==10538== Releasing lock... [2025-03-08 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:56:21] Production.INFO: 40 MB #Memory Used# [2025-03-08 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:57:05 [end_date_ymd] => 2025-03-08 20:57:05 [RateCDR] => 1 ) [2025-03-08 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:57:05' and `end` < '2025-03-08 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:57:17] Production.INFO: count ==1449 [2025-03-08 20:57:18] Production.ERROR: pbx CDR StartTime 2025-03-08 17:57:05 - End Time 2025-03-08 20:57:05 [2025-03-08 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637740', 'tblTempUsageDetail_20' ) start [2025-03-08 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637740', 'tblTempUsageDetail_20' ) end [2025-03-08 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637740', 'tblTempVendorCDR_20' ) start [2025-03-08 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637740', 'tblTempVendorCDR_20' ) end [2025-03-08 20:57:18] Production.INFO: ProcessCDR(1,14637740,1,1,2) [2025-03-08 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637740', 'tblTempUsageDetail_20' ) start [2025-03-08 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637740', 'tblTempUsageDetail_20' ) end [2025-03-08 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:57:23] Production.INFO: ==10618== Releasing lock... [2025-03-08 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:57:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-08 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:58:05 [end_date_ymd] => 2025-03-08 20:58:05 [RateCDR] => 1 ) [2025-03-08 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:58:05' and `end` < '2025-03-08 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:58:17] Production.INFO: count ==1304 [2025-03-08 20:58:17] Production.ERROR: pbx CDR StartTime 2025-03-08 17:58:05 - End Time 2025-03-08 20:58:05 [2025-03-08 20:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637745', 'tblTempUsageDetail_20' ) start [2025-03-08 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637745', 'tblTempUsageDetail_20' ) end [2025-03-08 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637745', 'tblTempVendorCDR_20' ) start [2025-03-08 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637745', 'tblTempVendorCDR_20' ) end [2025-03-08 20:58:17] Production.INFO: ProcessCDR(1,14637745,1,1,2) [2025-03-08 20:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637745', 'tblTempUsageDetail_20' ) start [2025-03-08 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637745', 'tblTempUsageDetail_20' ) end [2025-03-08 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:58:21] Production.INFO: ==10696== Releasing lock... [2025-03-08 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:58:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 20:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 17:59:04 [end_date_ymd] => 2025-03-08 20:59:04 [RateCDR] => 1 ) [2025-03-08 20:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 17:59:04' and `end` < '2025-03-08 20:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 20:59:17] Production.INFO: count ==1258 [2025-03-08 20:59:17] Production.ERROR: pbx CDR StartTime 2025-03-08 17:59:04 - End Time 2025-03-08 20:59:04 [2025-03-08 20:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637750', 'tblTempUsageDetail_20' ) start [2025-03-08 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637750', 'tblTempUsageDetail_20' ) end [2025-03-08 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637750', 'tblTempVendorCDR_20' ) start [2025-03-08 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637750', 'tblTempVendorCDR_20' ) end [2025-03-08 20:59:17] Production.INFO: ProcessCDR(1,14637750,1,1,2) [2025-03-08 20:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 20:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637750', 'tblTempUsageDetail_20' ) start [2025-03-08 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637750', 'tblTempUsageDetail_20' ) end [2025-03-08 20:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 20:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 20:59:20] Production.INFO: ==10775== Releasing lock... [2025-03-08 20:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 20:59:20] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:00:06 [end_date_ymd] => 2025-03-08 21:00:06 [RateCDR] => 1 ) [2025-03-08 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:00:06' and `end` < '2025-03-08 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:00:18] Production.INFO: count ==1260 [2025-03-08 21:00:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:00:06 - End Time 2025-03-08 21:00:06 [2025-03-08 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637755', 'tblTempUsageDetail_20' ) start [2025-03-08 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637755', 'tblTempUsageDetail_20' ) end [2025-03-08 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637755', 'tblTempVendorCDR_20' ) start [2025-03-08 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637755', 'tblTempVendorCDR_20' ) end [2025-03-08 21:00:18] Production.INFO: ProcessCDR(1,14637755,1,1,2) [2025-03-08 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637755', 'tblTempUsageDetail_20' ) start [2025-03-08 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637755', 'tblTempUsageDetail_20' ) end [2025-03-08 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:00:23] Production.INFO: ==10859== Releasing lock... [2025-03-08 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:00:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:01:05 [end_date_ymd] => 2025-03-08 21:01:05 [RateCDR] => 1 ) [2025-03-08 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:01:05' and `end` < '2025-03-08 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:01:17] Production.INFO: count ==1218 [2025-03-08 21:01:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:01:05 - End Time 2025-03-08 21:01:05 [2025-03-08 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637761', 'tblTempUsageDetail_20' ) start [2025-03-08 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637761', 'tblTempUsageDetail_20' ) end [2025-03-08 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637761', 'tblTempVendorCDR_20' ) start [2025-03-08 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637761', 'tblTempVendorCDR_20' ) end [2025-03-08 21:01:18] Production.INFO: ProcessCDR(1,14637761,1,1,2) [2025-03-08 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637761', 'tblTempUsageDetail_20' ) start [2025-03-08 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637761', 'tblTempUsageDetail_20' ) end [2025-03-08 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:01:21] Production.INFO: ==10952== Releasing lock... [2025-03-08 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:01:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:02:05 [end_date_ymd] => 2025-03-08 21:02:05 [RateCDR] => 1 ) [2025-03-08 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:02:05' and `end` < '2025-03-08 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:02:17] Production.INFO: count ==1214 [2025-03-08 21:02:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:02:05 - End Time 2025-03-08 21:02:05 [2025-03-08 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637766', 'tblTempUsageDetail_20' ) start [2025-03-08 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637766', 'tblTempUsageDetail_20' ) end [2025-03-08 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637766', 'tblTempVendorCDR_20' ) start [2025-03-08 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637766', 'tblTempVendorCDR_20' ) end [2025-03-08 21:02:18] Production.INFO: ProcessCDR(1,14637766,1,1,2) [2025-03-08 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637766', 'tblTempUsageDetail_20' ) start [2025-03-08 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637766', 'tblTempUsageDetail_20' ) end [2025-03-08 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:02:22] Production.INFO: ==11032== Releasing lock... [2025-03-08 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:02:22] Production.INFO: 37 MB #Memory Used# [2025-03-08 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:03:05 [end_date_ymd] => 2025-03-08 21:03:05 [RateCDR] => 1 ) [2025-03-08 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:03:05' and `end` < '2025-03-08 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:03:17] Production.INFO: count ==1218 [2025-03-08 21:03:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:03:05 - End Time 2025-03-08 21:03:05 [2025-03-08 21:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637771', 'tblTempUsageDetail_20' ) start [2025-03-08 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637771', 'tblTempUsageDetail_20' ) end [2025-03-08 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637771', 'tblTempVendorCDR_20' ) start [2025-03-08 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637771', 'tblTempVendorCDR_20' ) end [2025-03-08 21:03:17] Production.INFO: ProcessCDR(1,14637771,1,1,2) [2025-03-08 21:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637771', 'tblTempUsageDetail_20' ) start [2025-03-08 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637771', 'tblTempUsageDetail_20' ) end [2025-03-08 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:03:22] Production.INFO: ==11107== Releasing lock... [2025-03-08 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:03:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:04:05 [end_date_ymd] => 2025-03-08 21:04:05 [RateCDR] => 1 ) [2025-03-08 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:04:05' and `end` < '2025-03-08 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:04:17] Production.INFO: count ==1218 [2025-03-08 21:04:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:04:05 - End Time 2025-03-08 21:04:05 [2025-03-08 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637776', 'tblTempUsageDetail_20' ) start [2025-03-08 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637776', 'tblTempUsageDetail_20' ) end [2025-03-08 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637776', 'tblTempVendorCDR_20' ) start [2025-03-08 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637776', 'tblTempVendorCDR_20' ) end [2025-03-08 21:04:18] Production.INFO: ProcessCDR(1,14637776,1,1,2) [2025-03-08 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637776', 'tblTempUsageDetail_20' ) start [2025-03-08 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637776', 'tblTempUsageDetail_20' ) end [2025-03-08 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:04:21] Production.INFO: ==11187== Releasing lock... [2025-03-08 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:04:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:05:05 [end_date_ymd] => 2025-03-08 21:05:05 [RateCDR] => 1 ) [2025-03-08 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:05:05' and `end` < '2025-03-08 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:05:17] Production.INFO: count ==1216 [2025-03-08 21:05:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:05:05 - End Time 2025-03-08 21:05:05 [2025-03-08 21:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637781', 'tblTempUsageDetail_20' ) start [2025-03-08 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637781', 'tblTempUsageDetail_20' ) end [2025-03-08 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637781', 'tblTempVendorCDR_20' ) start [2025-03-08 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637781', 'tblTempVendorCDR_20' ) end [2025-03-08 21:05:17] Production.INFO: ProcessCDR(1,14637781,1,1,2) [2025-03-08 21:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637781', 'tblTempUsageDetail_20' ) start [2025-03-08 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637781', 'tblTempUsageDetail_20' ) end [2025-03-08 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:05:21] Production.INFO: ==11306== Releasing lock... [2025-03-08 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:05:21] Production.INFO: 37 MB #Memory Used# [2025-03-08 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:06:05 [end_date_ymd] => 2025-03-08 21:06:05 [RateCDR] => 1 ) [2025-03-08 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:06:05' and `end` < '2025-03-08 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:06:17] Production.INFO: count ==1206 [2025-03-08 21:06:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:06:05 - End Time 2025-03-08 21:06:05 [2025-03-08 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637786', 'tblTempUsageDetail_20' ) start [2025-03-08 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637786', 'tblTempUsageDetail_20' ) end [2025-03-08 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637786', 'tblTempVendorCDR_20' ) start [2025-03-08 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637786', 'tblTempVendorCDR_20' ) end [2025-03-08 21:06:18] Production.INFO: ProcessCDR(1,14637786,1,1,2) [2025-03-08 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637786', 'tblTempUsageDetail_20' ) start [2025-03-08 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637786', 'tblTempUsageDetail_20' ) end [2025-03-08 21:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:06:21] Production.INFO: ==11382== Releasing lock... [2025-03-08 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:06:21] Production.INFO: 37 MB #Memory Used# [2025-03-08 21:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:07:06 [end_date_ymd] => 2025-03-08 21:07:06 [RateCDR] => 1 ) [2025-03-08 21:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:07:06' and `end` < '2025-03-08 21:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:07:18] Production.INFO: count ==1204 [2025-03-08 21:07:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:07:06 - End Time 2025-03-08 21:07:06 [2025-03-08 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637791', 'tblTempUsageDetail_20' ) start [2025-03-08 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637791', 'tblTempUsageDetail_20' ) end [2025-03-08 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637791', 'tblTempVendorCDR_20' ) start [2025-03-08 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637791', 'tblTempVendorCDR_20' ) end [2025-03-08 21:07:18] Production.INFO: ProcessCDR(1,14637791,1,1,2) [2025-03-08 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637791', 'tblTempUsageDetail_20' ) start [2025-03-08 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637791', 'tblTempUsageDetail_20' ) end [2025-03-08 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:07:23] Production.INFO: ==11461== Releasing lock... [2025-03-08 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:07:23] Production.INFO: 37 MB #Memory Used# [2025-03-08 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:08:05 [end_date_ymd] => 2025-03-08 21:08:05 [RateCDR] => 1 ) [2025-03-08 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:08:05' and `end` < '2025-03-08 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:08:17] Production.INFO: count ==1208 [2025-03-08 21:08:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:08:05 - End Time 2025-03-08 21:08:05 [2025-03-08 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637796', 'tblTempUsageDetail_20' ) start [2025-03-08 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637796', 'tblTempUsageDetail_20' ) end [2025-03-08 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637796', 'tblTempVendorCDR_20' ) start [2025-03-08 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637796', 'tblTempVendorCDR_20' ) end [2025-03-08 21:08:18] Production.INFO: ProcessCDR(1,14637796,1,1,2) [2025-03-08 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637796', 'tblTempUsageDetail_20' ) start [2025-03-08 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637796', 'tblTempUsageDetail_20' ) end [2025-03-08 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:08:23] Production.INFO: ==11550== Releasing lock... [2025-03-08 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:08:23] Production.INFO: 37 MB #Memory Used# [2025-03-08 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:09:05 [end_date_ymd] => 2025-03-08 21:09:05 [RateCDR] => 1 ) [2025-03-08 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:09:05' and `end` < '2025-03-08 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:09:17] Production.INFO: count ==1208 [2025-03-08 21:09:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:09:05 - End Time 2025-03-08 21:09:05 [2025-03-08 21:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637801', 'tblTempUsageDetail_20' ) start [2025-03-08 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637801', 'tblTempUsageDetail_20' ) end [2025-03-08 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637801', 'tblTempVendorCDR_20' ) start [2025-03-08 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637801', 'tblTempVendorCDR_20' ) end [2025-03-08 21:09:17] Production.INFO: ProcessCDR(1,14637801,1,1,2) [2025-03-08 21:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637801', 'tblTempUsageDetail_20' ) start [2025-03-08 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637801', 'tblTempUsageDetail_20' ) end [2025-03-08 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:09:22] Production.INFO: ==11631== Releasing lock... [2025-03-08 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:09:22] Production.INFO: 37 MB #Memory Used# [2025-03-08 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:10:06 [end_date_ymd] => 2025-03-08 21:10:06 [RateCDR] => 1 ) [2025-03-08 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:10:06' and `end` < '2025-03-08 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:10:18] Production.INFO: count ==1205 [2025-03-08 21:10:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:10:06 - End Time 2025-03-08 21:10:06 [2025-03-08 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637807', 'tblTempUsageDetail_20' ) start [2025-03-08 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637807', 'tblTempUsageDetail_20' ) end [2025-03-08 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637807', 'tblTempVendorCDR_20' ) start [2025-03-08 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637807', 'tblTempVendorCDR_20' ) end [2025-03-08 21:10:18] Production.INFO: ProcessCDR(1,14637807,1,1,2) [2025-03-08 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637807', 'tblTempUsageDetail_20' ) start [2025-03-08 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637807', 'tblTempUsageDetail_20' ) end [2025-03-08 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:10:23] Production.INFO: ==11713== Releasing lock... [2025-03-08 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:10:23] Production.INFO: 37 MB #Memory Used# [2025-03-08 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:11:05 [end_date_ymd] => 2025-03-08 21:11:05 [RateCDR] => 1 ) [2025-03-08 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:11:05' and `end` < '2025-03-08 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:11:17] Production.INFO: count ==1210 [2025-03-08 21:11:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:11:05 - End Time 2025-03-08 21:11:05 [2025-03-08 21:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637812', 'tblTempUsageDetail_20' ) start [2025-03-08 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637812', 'tblTempUsageDetail_20' ) end [2025-03-08 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637812', 'tblTempVendorCDR_20' ) start [2025-03-08 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637812', 'tblTempVendorCDR_20' ) end [2025-03-08 21:11:17] Production.INFO: ProcessCDR(1,14637812,1,1,2) [2025-03-08 21:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637812', 'tblTempUsageDetail_20' ) start [2025-03-08 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637812', 'tblTempUsageDetail_20' ) end [2025-03-08 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:11:21] Production.INFO: ==11799== Releasing lock... [2025-03-08 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:11:21] Production.INFO: 37 MB #Memory Used# [2025-03-08 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:12:05 [end_date_ymd] => 2025-03-08 21:12:05 [RateCDR] => 1 ) [2025-03-08 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:12:05' and `end` < '2025-03-08 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:12:17] Production.INFO: count ==1209 [2025-03-08 21:12:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:12:05 - End Time 2025-03-08 21:12:05 [2025-03-08 21:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637817', 'tblTempUsageDetail_20' ) start [2025-03-08 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637817', 'tblTempUsageDetail_20' ) end [2025-03-08 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637817', 'tblTempVendorCDR_20' ) start [2025-03-08 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637817', 'tblTempVendorCDR_20' ) end [2025-03-08 21:12:17] Production.INFO: ProcessCDR(1,14637817,1,1,2) [2025-03-08 21:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637817', 'tblTempUsageDetail_20' ) start [2025-03-08 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637817', 'tblTempUsageDetail_20' ) end [2025-03-08 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:12:21] Production.INFO: ==11880== Releasing lock... [2025-03-08 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:12:21] Production.INFO: 37 MB #Memory Used# [2025-03-08 21:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:13:04 [end_date_ymd] => 2025-03-08 21:13:04 [RateCDR] => 1 ) [2025-03-08 21:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:13:04' and `end` < '2025-03-08 21:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:13:17] Production.INFO: count ==1202 [2025-03-08 21:13:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:13:04 - End Time 2025-03-08 21:13:04 [2025-03-08 21:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637822', 'tblTempUsageDetail_20' ) start [2025-03-08 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637822', 'tblTempUsageDetail_20' ) end [2025-03-08 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637822', 'tblTempVendorCDR_20' ) start [2025-03-08 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637822', 'tblTempVendorCDR_20' ) end [2025-03-08 21:13:17] Production.INFO: ProcessCDR(1,14637822,1,1,2) [2025-03-08 21:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637822', 'tblTempUsageDetail_20' ) start [2025-03-08 21:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637822', 'tblTempUsageDetail_20' ) end [2025-03-08 21:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:13:20] Production.INFO: ==11958== Releasing lock... [2025-03-08 21:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:13:20] Production.INFO: 37 MB #Memory Used# [2025-03-08 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:14:05 [end_date_ymd] => 2025-03-08 21:14:05 [RateCDR] => 1 ) [2025-03-08 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:14:05' and `end` < '2025-03-08 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:14:18] Production.INFO: count ==1204 [2025-03-08 21:14:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:14:05 - End Time 2025-03-08 21:14:05 [2025-03-08 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637827', 'tblTempUsageDetail_20' ) start [2025-03-08 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637827', 'tblTempUsageDetail_20' ) end [2025-03-08 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637827', 'tblTempVendorCDR_20' ) start [2025-03-08 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637827', 'tblTempVendorCDR_20' ) end [2025-03-08 21:14:18] Production.INFO: ProcessCDR(1,14637827,1,1,2) [2025-03-08 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637827', 'tblTempUsageDetail_20' ) start [2025-03-08 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637827', 'tblTempUsageDetail_20' ) end [2025-03-08 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:14:21] Production.INFO: ==12038== Releasing lock... [2025-03-08 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:14:21] Production.INFO: 37 MB #Memory Used# [2025-03-08 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:15:05 [end_date_ymd] => 2025-03-08 21:15:05 [RateCDR] => 1 ) [2025-03-08 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:15:05' and `end` < '2025-03-08 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:15:17] Production.INFO: count ==1201 [2025-03-08 21:15:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:15:05 - End Time 2025-03-08 21:15:05 [2025-03-08 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637832', 'tblTempUsageDetail_20' ) start [2025-03-08 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637832', 'tblTempUsageDetail_20' ) end [2025-03-08 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637832', 'tblTempVendorCDR_20' ) start [2025-03-08 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637832', 'tblTempVendorCDR_20' ) end [2025-03-08 21:15:17] Production.INFO: ProcessCDR(1,14637832,1,1,2) [2025-03-08 21:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637832', 'tblTempUsageDetail_20' ) start [2025-03-08 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637832', 'tblTempUsageDetail_20' ) end [2025-03-08 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:15:21] Production.INFO: ==12115== Releasing lock... [2025-03-08 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:15:21] Production.INFO: 37 MB #Memory Used# [2025-03-08 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:16:05 [end_date_ymd] => 2025-03-08 21:16:05 [RateCDR] => 1 ) [2025-03-08 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:16:05' and `end` < '2025-03-08 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:16:17] Production.INFO: count ==1198 [2025-03-08 21:16:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:16:05 - End Time 2025-03-08 21:16:05 [2025-03-08 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637837', 'tblTempUsageDetail_20' ) start [2025-03-08 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637837', 'tblTempUsageDetail_20' ) end [2025-03-08 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637837', 'tblTempVendorCDR_20' ) start [2025-03-08 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637837', 'tblTempVendorCDR_20' ) end [2025-03-08 21:16:18] Production.INFO: ProcessCDR(1,14637837,1,1,2) [2025-03-08 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637837', 'tblTempUsageDetail_20' ) start [2025-03-08 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637837', 'tblTempUsageDetail_20' ) end [2025-03-08 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:16:23] Production.INFO: ==12196== Releasing lock... [2025-03-08 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:16:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 21:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:17:06 [end_date_ymd] => 2025-03-08 21:17:06 [RateCDR] => 1 ) [2025-03-08 21:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:17:06' and `end` < '2025-03-08 21:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:17:18] Production.INFO: count ==1193 [2025-03-08 21:17:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:17:06 - End Time 2025-03-08 21:17:06 [2025-03-08 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637842', 'tblTempUsageDetail_20' ) start [2025-03-08 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637842', 'tblTempUsageDetail_20' ) end [2025-03-08 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637842', 'tblTempVendorCDR_20' ) start [2025-03-08 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637842', 'tblTempVendorCDR_20' ) end [2025-03-08 21:17:18] Production.INFO: ProcessCDR(1,14637842,1,1,2) [2025-03-08 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637842', 'tblTempUsageDetail_20' ) start [2025-03-08 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637842', 'tblTempUsageDetail_20' ) end [2025-03-08 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:17:21] Production.INFO: ==12275== Releasing lock... [2025-03-08 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:17:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:18:05 [end_date_ymd] => 2025-03-08 21:18:05 [RateCDR] => 1 ) [2025-03-08 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:18:05' and `end` < '2025-03-08 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:18:17] Production.INFO: count ==1192 [2025-03-08 21:18:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:18:05 - End Time 2025-03-08 21:18:05 [2025-03-08 21:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637847', 'tblTempUsageDetail_20' ) start [2025-03-08 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637847', 'tblTempUsageDetail_20' ) end [2025-03-08 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637847', 'tblTempVendorCDR_20' ) start [2025-03-08 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637847', 'tblTempVendorCDR_20' ) end [2025-03-08 21:18:17] Production.INFO: ProcessCDR(1,14637847,1,1,2) [2025-03-08 21:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637847', 'tblTempUsageDetail_20' ) start [2025-03-08 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637847', 'tblTempUsageDetail_20' ) end [2025-03-08 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:18:21] Production.INFO: ==12355== Releasing lock... [2025-03-08 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:18:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:19:05 [end_date_ymd] => 2025-03-08 21:19:05 [RateCDR] => 1 ) [2025-03-08 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:19:05' and `end` < '2025-03-08 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:19:17] Production.INFO: count ==1185 [2025-03-08 21:19:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:19:05 - End Time 2025-03-08 21:19:05 [2025-03-08 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637852', 'tblTempUsageDetail_20' ) start [2025-03-08 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637852', 'tblTempUsageDetail_20' ) end [2025-03-08 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637852', 'tblTempVendorCDR_20' ) start [2025-03-08 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637852', 'tblTempVendorCDR_20' ) end [2025-03-08 21:19:18] Production.INFO: ProcessCDR(1,14637852,1,1,2) [2025-03-08 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637852', 'tblTempUsageDetail_20' ) start [2025-03-08 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637852', 'tblTempUsageDetail_20' ) end [2025-03-08 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:19:22] Production.INFO: ==12430== Releasing lock... [2025-03-08 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:19:22] Production.INFO: 37 MB #Memory Used# [2025-03-08 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:20:05 [end_date_ymd] => 2025-03-08 21:20:05 [RateCDR] => 1 ) [2025-03-08 21:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:20:05' and `end` < '2025-03-08 21:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:20:17] Production.INFO: count ==1181 [2025-03-08 21:20:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:20:05 - End Time 2025-03-08 21:20:05 [2025-03-08 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637858', 'tblTempUsageDetail_20' ) start [2025-03-08 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637858', 'tblTempUsageDetail_20' ) end [2025-03-08 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637858', 'tblTempVendorCDR_20' ) start [2025-03-08 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637858', 'tblTempVendorCDR_20' ) end [2025-03-08 21:20:18] Production.INFO: ProcessCDR(1,14637858,1,1,2) [2025-03-08 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637858', 'tblTempUsageDetail_20' ) start [2025-03-08 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637858', 'tblTempUsageDetail_20' ) end [2025-03-08 21:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:20:21] Production.INFO: ==12515== Releasing lock... [2025-03-08 21:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:20:21] Production.INFO: 37 MB #Memory Used# [2025-03-08 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:21:05 [end_date_ymd] => 2025-03-08 21:21:05 [RateCDR] => 1 ) [2025-03-08 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:21:05' and `end` < '2025-03-08 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:21:18] Production.INFO: count ==1151 [2025-03-08 21:21:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:21:05 - End Time 2025-03-08 21:21:05 [2025-03-08 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637863', 'tblTempUsageDetail_20' ) start [2025-03-08 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637863', 'tblTempUsageDetail_20' ) end [2025-03-08 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637863', 'tblTempVendorCDR_20' ) start [2025-03-08 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637863', 'tblTempVendorCDR_20' ) end [2025-03-08 21:21:18] Production.INFO: ProcessCDR(1,14637863,1,1,2) [2025-03-08 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637863', 'tblTempUsageDetail_20' ) start [2025-03-08 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637863', 'tblTempUsageDetail_20' ) end [2025-03-08 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:21:21] Production.INFO: ==12636== Releasing lock... [2025-03-08 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:21:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:22:05 [end_date_ymd] => 2025-03-08 21:22:05 [RateCDR] => 1 ) [2025-03-08 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:22:05' and `end` < '2025-03-08 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:22:17] Production.INFO: count ==1149 [2025-03-08 21:22:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:22:05 - End Time 2025-03-08 21:22:05 [2025-03-08 21:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637868', 'tblTempUsageDetail_20' ) start [2025-03-08 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637868', 'tblTempUsageDetail_20' ) end [2025-03-08 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637868', 'tblTempVendorCDR_20' ) start [2025-03-08 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637868', 'tblTempVendorCDR_20' ) end [2025-03-08 21:22:17] Production.INFO: ProcessCDR(1,14637868,1,1,2) [2025-03-08 21:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637868', 'tblTempUsageDetail_20' ) start [2025-03-08 21:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637868', 'tblTempUsageDetail_20' ) end [2025-03-08 21:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:22:20] Production.INFO: ==12715== Releasing lock... [2025-03-08 21:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:22:20] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:23:05 [end_date_ymd] => 2025-03-08 21:23:05 [RateCDR] => 1 ) [2025-03-08 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:23:05' and `end` < '2025-03-08 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:23:17] Production.INFO: count ==1150 [2025-03-08 21:23:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:23:05 - End Time 2025-03-08 21:23:05 [2025-03-08 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637873', 'tblTempUsageDetail_20' ) start [2025-03-08 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637873', 'tblTempUsageDetail_20' ) end [2025-03-08 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637873', 'tblTempVendorCDR_20' ) start [2025-03-08 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637873', 'tblTempVendorCDR_20' ) end [2025-03-08 21:23:17] Production.INFO: ProcessCDR(1,14637873,1,1,2) [2025-03-08 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637873', 'tblTempUsageDetail_20' ) start [2025-03-08 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637873', 'tblTempUsageDetail_20' ) end [2025-03-08 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:23:21] Production.INFO: ==12795== Releasing lock... [2025-03-08 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:23:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:24:05 [end_date_ymd] => 2025-03-08 21:24:05 [RateCDR] => 1 ) [2025-03-08 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:24:05' and `end` < '2025-03-08 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:24:17] Production.INFO: count ==1150 [2025-03-08 21:24:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:24:05 - End Time 2025-03-08 21:24:05 [2025-03-08 21:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637878', 'tblTempUsageDetail_20' ) start [2025-03-08 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637878', 'tblTempUsageDetail_20' ) end [2025-03-08 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637878', 'tblTempVendorCDR_20' ) start [2025-03-08 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637878', 'tblTempVendorCDR_20' ) end [2025-03-08 21:24:17] Production.INFO: ProcessCDR(1,14637878,1,1,2) [2025-03-08 21:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637878', 'tblTempUsageDetail_20' ) start [2025-03-08 21:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637878', 'tblTempUsageDetail_20' ) end [2025-03-08 21:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:24:20] Production.INFO: ==12872== Releasing lock... [2025-03-08 21:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:24:20] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:25:05 [end_date_ymd] => 2025-03-08 21:25:05 [RateCDR] => 1 ) [2025-03-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-03-08 18:25:05' and `end` < '2025-03-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-03-08 21:25:17] Production.INFO: count ==1147 [2025-03-08 21:25:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:25:05 - End Time 2025-03-08 21:25:05 [2025-03-08 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637883', 'tblTempUsageDetail_20' ) start [2025-03-08 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637883', 'tblTempUsageDetail_20' ) end [2025-03-08 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637883', 'tblTempVendorCDR_20' ) start [2025-03-08 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637883', 'tblTempVendorCDR_20' ) end [2025-03-08 21:25:17] Production.INFO: ProcessCDR(1,14637883,1,1,2) [2025-03-08 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637883', 'tblTempUsageDetail_20' ) start [2025-03-08 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637883', 'tblTempUsageDetail_20' ) end [2025-03-08 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:25:21] Production.INFO: ==12954== Releasing lock... [2025-03-08 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:25:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 21:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:26:06 [end_date_ymd] => 2025-03-08 21:26:06 [RateCDR] => 1 ) [2025-03-08 21:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:26:06' and `end` < '2025-03-08 21:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:26:18] Production.INFO: count ==1146 [2025-03-08 21:26:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:26:06 - End Time 2025-03-08 21:26:06 [2025-03-08 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637888', 'tblTempUsageDetail_20' ) start [2025-03-08 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637888', 'tblTempUsageDetail_20' ) end [2025-03-08 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637888', 'tblTempVendorCDR_20' ) start [2025-03-08 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637888', 'tblTempVendorCDR_20' ) end [2025-03-08 21:26:19] Production.INFO: ProcessCDR(1,14637888,1,1,2) [2025-03-08 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637888', 'tblTempUsageDetail_20' ) start [2025-03-08 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637888', 'tblTempUsageDetail_20' ) end [2025-03-08 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:26:22] Production.INFO: ==13033== Releasing lock... [2025-03-08 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:26:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:27:04 [end_date_ymd] => 2025-03-08 21:27:04 [RateCDR] => 1 ) [2025-03-08 21:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:27:04' and `end` < '2025-03-08 21:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:27:16] Production.INFO: count ==1153 [2025-03-08 21:27:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:27:04 - End Time 2025-03-08 21:27:04 [2025-03-08 21:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637893', 'tblTempUsageDetail_20' ) start [2025-03-08 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637893', 'tblTempUsageDetail_20' ) end [2025-03-08 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637893', 'tblTempVendorCDR_20' ) start [2025-03-08 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637893', 'tblTempVendorCDR_20' ) end [2025-03-08 21:27:17] Production.INFO: ProcessCDR(1,14637893,1,1,2) [2025-03-08 21:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637893', 'tblTempUsageDetail_20' ) start [2025-03-08 21:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637893', 'tblTempUsageDetail_20' ) end [2025-03-08 21:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:27:20] Production.INFO: ==13112== Releasing lock... [2025-03-08 21:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:27:20] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:28:05 [end_date_ymd] => 2025-03-08 21:28:05 [RateCDR] => 1 ) [2025-03-08 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:28:05' and `end` < '2025-03-08 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:28:18] Production.INFO: count ==1153 [2025-03-08 21:28:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:28:05 - End Time 2025-03-08 21:28:05 [2025-03-08 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637898', 'tblTempUsageDetail_20' ) start [2025-03-08 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637898', 'tblTempUsageDetail_20' ) end [2025-03-08 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637898', 'tblTempVendorCDR_20' ) start [2025-03-08 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637898', 'tblTempVendorCDR_20' ) end [2025-03-08 21:28:18] Production.INFO: ProcessCDR(1,14637898,1,1,2) [2025-03-08 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637898', 'tblTempUsageDetail_20' ) start [2025-03-08 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637898', 'tblTempUsageDetail_20' ) end [2025-03-08 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:28:23] Production.INFO: ==13185== Releasing lock... [2025-03-08 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:28:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:29:05 [end_date_ymd] => 2025-03-08 21:29:05 [RateCDR] => 1 ) [2025-03-08 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:29:05' and `end` < '2025-03-08 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:29:17] Production.INFO: count ==1151 [2025-03-08 21:29:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:29:05 - End Time 2025-03-08 21:29:05 [2025-03-08 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637903', 'tblTempUsageDetail_20' ) start [2025-03-08 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637903', 'tblTempUsageDetail_20' ) end [2025-03-08 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637903', 'tblTempVendorCDR_20' ) start [2025-03-08 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637903', 'tblTempVendorCDR_20' ) end [2025-03-08 21:29:17] Production.INFO: ProcessCDR(1,14637903,1,1,2) [2025-03-08 21:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637903', 'tblTempUsageDetail_20' ) start [2025-03-08 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637903', 'tblTempUsageDetail_20' ) end [2025-03-08 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:29:21] Production.INFO: ==13257== Releasing lock... [2025-03-08 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:29:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:30:06 [end_date_ymd] => 2025-03-08 21:30:06 [RateCDR] => 1 ) [2025-03-08 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:30:06' and `end` < '2025-03-08 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:30:18] Production.INFO: count ==1152 [2025-03-08 21:30:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:30:06 - End Time 2025-03-08 21:30:06 [2025-03-08 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637908', 'tblTempUsageDetail_20' ) start [2025-03-08 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637908', 'tblTempUsageDetail_20' ) end [2025-03-08 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637908', 'tblTempVendorCDR_20' ) start [2025-03-08 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637908', 'tblTempVendorCDR_20' ) end [2025-03-08 21:30:18] Production.INFO: ProcessCDR(1,14637908,1,1,2) [2025-03-08 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637908', 'tblTempUsageDetail_20' ) start [2025-03-08 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637908', 'tblTempUsageDetail_20' ) end [2025-03-08 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:30:22] Production.INFO: ==13337== Releasing lock... [2025-03-08 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:30:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:31:05 [end_date_ymd] => 2025-03-08 21:31:05 [RateCDR] => 1 ) [2025-03-08 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:31:05' and `end` < '2025-03-08 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:31:17] Production.INFO: count ==1156 [2025-03-08 21:31:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:31:05 - End Time 2025-03-08 21:31:05 [2025-03-08 21:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637914', 'tblTempUsageDetail_20' ) start [2025-03-08 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637914', 'tblTempUsageDetail_20' ) end [2025-03-08 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637914', 'tblTempVendorCDR_20' ) start [2025-03-08 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637914', 'tblTempVendorCDR_20' ) end [2025-03-08 21:31:17] Production.INFO: ProcessCDR(1,14637914,1,1,2) [2025-03-08 21:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637914', 'tblTempUsageDetail_20' ) start [2025-03-08 21:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637914', 'tblTempUsageDetail_20' ) end [2025-03-08 21:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:31:20] Production.INFO: ==13420== Releasing lock... [2025-03-08 21:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:31:20] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:32:05 [end_date_ymd] => 2025-03-08 21:32:05 [RateCDR] => 1 ) [2025-03-08 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:32:05' and `end` < '2025-03-08 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:32:17] Production.INFO: count ==1159 [2025-03-08 21:32:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:32:05 - End Time 2025-03-08 21:32:05 [2025-03-08 21:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637919', 'tblTempUsageDetail_20' ) start [2025-03-08 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637919', 'tblTempUsageDetail_20' ) end [2025-03-08 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637919', 'tblTempVendorCDR_20' ) start [2025-03-08 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637919', 'tblTempVendorCDR_20' ) end [2025-03-08 21:32:17] Production.INFO: ProcessCDR(1,14637919,1,1,2) [2025-03-08 21:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637919', 'tblTempUsageDetail_20' ) start [2025-03-08 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637919', 'tblTempUsageDetail_20' ) end [2025-03-08 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:32:21] Production.INFO: ==13495== Releasing lock... [2025-03-08 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:32:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:33:05 [end_date_ymd] => 2025-03-08 21:33:05 [RateCDR] => 1 ) [2025-03-08 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:33:05' and `end` < '2025-03-08 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:33:17] Production.INFO: count ==1154 [2025-03-08 21:33:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:33:05 - End Time 2025-03-08 21:33:05 [2025-03-08 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637924', 'tblTempUsageDetail_20' ) start [2025-03-08 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637924', 'tblTempUsageDetail_20' ) end [2025-03-08 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637924', 'tblTempVendorCDR_20' ) start [2025-03-08 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637924', 'tblTempVendorCDR_20' ) end [2025-03-08 21:33:17] Production.INFO: ProcessCDR(1,14637924,1,1,2) [2025-03-08 21:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637924', 'tblTempUsageDetail_20' ) start [2025-03-08 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637924', 'tblTempUsageDetail_20' ) end [2025-03-08 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:33:22] Production.INFO: ==13572== Releasing lock... [2025-03-08 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:33:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:34:06 [end_date_ymd] => 2025-03-08 21:34:06 [RateCDR] => 1 ) [2025-03-08 21:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:34:06' and `end` < '2025-03-08 21:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:34:18] Production.INFO: count ==1156 [2025-03-08 21:34:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:34:06 - End Time 2025-03-08 21:34:06 [2025-03-08 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637929', 'tblTempUsageDetail_20' ) start [2025-03-08 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637929', 'tblTempUsageDetail_20' ) end [2025-03-08 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637929', 'tblTempVendorCDR_20' ) start [2025-03-08 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637929', 'tblTempVendorCDR_20' ) end [2025-03-08 21:34:18] Production.INFO: ProcessCDR(1,14637929,1,1,2) [2025-03-08 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637929', 'tblTempUsageDetail_20' ) start [2025-03-08 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637929', 'tblTempUsageDetail_20' ) end [2025-03-08 21:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:34:24] Production.INFO: ==13645== Releasing lock... [2025-03-08 21:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:34:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:35:05 [end_date_ymd] => 2025-03-08 21:35:05 [RateCDR] => 1 ) [2025-03-08 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:35:05' and `end` < '2025-03-08 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:35:17] Production.INFO: count ==1155 [2025-03-08 21:35:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:35:05 - End Time 2025-03-08 21:35:05 [2025-03-08 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637934', 'tblTempUsageDetail_20' ) start [2025-03-08 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637934', 'tblTempUsageDetail_20' ) end [2025-03-08 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637934', 'tblTempVendorCDR_20' ) start [2025-03-08 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637934', 'tblTempVendorCDR_20' ) end [2025-03-08 21:35:18] Production.INFO: ProcessCDR(1,14637934,1,1,2) [2025-03-08 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637934', 'tblTempUsageDetail_20' ) start [2025-03-08 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637934', 'tblTempUsageDetail_20' ) end [2025-03-08 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:35:21] Production.INFO: ==13716== Releasing lock... [2025-03-08 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:35:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:36:05 [end_date_ymd] => 2025-03-08 21:36:05 [RateCDR] => 1 ) [2025-03-08 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:36:05' and `end` < '2025-03-08 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:36:17] Production.INFO: count ==1155 [2025-03-08 21:36:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:36:05 - End Time 2025-03-08 21:36:05 [2025-03-08 21:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637939', 'tblTempUsageDetail_20' ) start [2025-03-08 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637939', 'tblTempUsageDetail_20' ) end [2025-03-08 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637939', 'tblTempVendorCDR_20' ) start [2025-03-08 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637939', 'tblTempVendorCDR_20' ) end [2025-03-08 21:36:17] Production.INFO: ProcessCDR(1,14637939,1,1,2) [2025-03-08 21:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637939', 'tblTempUsageDetail_20' ) start [2025-03-08 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637939', 'tblTempUsageDetail_20' ) end [2025-03-08 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:36:21] Production.INFO: ==13826== Releasing lock... [2025-03-08 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:36:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:37:05 [end_date_ymd] => 2025-03-08 21:37:05 [RateCDR] => 1 ) [2025-03-08 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:37:05' and `end` < '2025-03-08 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:37:17] Production.INFO: count ==1154 [2025-03-08 21:37:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:37:05 - End Time 2025-03-08 21:37:05 [2025-03-08 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637944', 'tblTempUsageDetail_20' ) start [2025-03-08 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637944', 'tblTempUsageDetail_20' ) end [2025-03-08 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637944', 'tblTempVendorCDR_20' ) start [2025-03-08 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637944', 'tblTempVendorCDR_20' ) end [2025-03-08 21:37:17] Production.INFO: ProcessCDR(1,14637944,1,1,2) [2025-03-08 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637944', 'tblTempUsageDetail_20' ) start [2025-03-08 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637944', 'tblTempUsageDetail_20' ) end [2025-03-08 21:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:37:20] Production.INFO: ==13895== Releasing lock... [2025-03-08 21:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:37:20] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:38:05 [end_date_ymd] => 2025-03-08 21:38:05 [RateCDR] => 1 ) [2025-03-08 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:38:05' and `end` < '2025-03-08 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:38:17] Production.INFO: count ==1156 [2025-03-08 21:38:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:38:05 - End Time 2025-03-08 21:38:05 [2025-03-08 21:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637949', 'tblTempUsageDetail_20' ) start [2025-03-08 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637949', 'tblTempUsageDetail_20' ) end [2025-03-08 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637949', 'tblTempVendorCDR_20' ) start [2025-03-08 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637949', 'tblTempVendorCDR_20' ) end [2025-03-08 21:38:17] Production.INFO: ProcessCDR(1,14637949,1,1,2) [2025-03-08 21:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637949', 'tblTempUsageDetail_20' ) start [2025-03-08 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637949', 'tblTempUsageDetail_20' ) end [2025-03-08 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:38:22] Production.INFO: ==13970== Releasing lock... [2025-03-08 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:38:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:39:05 [end_date_ymd] => 2025-03-08 21:39:05 [RateCDR] => 1 ) [2025-03-08 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:39:05' and `end` < '2025-03-08 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:39:18] Production.INFO: count ==1153 [2025-03-08 21:39:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:39:05 - End Time 2025-03-08 21:39:05 [2025-03-08 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637954', 'tblTempUsageDetail_20' ) start [2025-03-08 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637954', 'tblTempUsageDetail_20' ) end [2025-03-08 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637954', 'tblTempVendorCDR_20' ) start [2025-03-08 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637954', 'tblTempVendorCDR_20' ) end [2025-03-08 21:39:18] Production.INFO: ProcessCDR(1,14637954,1,1,2) [2025-03-08 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637954', 'tblTempUsageDetail_20' ) start [2025-03-08 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637954', 'tblTempUsageDetail_20' ) end [2025-03-08 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:39:21] Production.INFO: ==14041== Releasing lock... [2025-03-08 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:39:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:40:06 [end_date_ymd] => 2025-03-08 21:40:06 [RateCDR] => 1 ) [2025-03-08 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:40:06' and `end` < '2025-03-08 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:40:18] Production.INFO: count ==1147 [2025-03-08 21:40:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:40:06 - End Time 2025-03-08 21:40:06 [2025-03-08 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637960', 'tblTempUsageDetail_20' ) start [2025-03-08 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637960', 'tblTempUsageDetail_20' ) end [2025-03-08 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637960', 'tblTempVendorCDR_20' ) start [2025-03-08 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637960', 'tblTempVendorCDR_20' ) end [2025-03-08 21:40:18] Production.INFO: ProcessCDR(1,14637960,1,1,2) [2025-03-08 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637960', 'tblTempUsageDetail_20' ) start [2025-03-08 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637960', 'tblTempUsageDetail_20' ) end [2025-03-08 21:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:40:21] Production.INFO: ==14115== Releasing lock... [2025-03-08 21:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:40:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-08 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:41:05 [end_date_ymd] => 2025-03-08 21:41:05 [RateCDR] => 1 ) [2025-03-08 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:41:05' and `end` < '2025-03-08 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:41:17] Production.INFO: count ==1131 [2025-03-08 21:41:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:41:05 - End Time 2025-03-08 21:41:05 [2025-03-08 21:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637965', 'tblTempUsageDetail_20' ) start [2025-03-08 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637965', 'tblTempUsageDetail_20' ) end [2025-03-08 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637965', 'tblTempVendorCDR_20' ) start [2025-03-08 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637965', 'tblTempVendorCDR_20' ) end [2025-03-08 21:41:17] Production.INFO: ProcessCDR(1,14637965,1,1,2) [2025-03-08 21:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637965', 'tblTempUsageDetail_20' ) start [2025-03-08 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637965', 'tblTempUsageDetail_20' ) end [2025-03-08 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:41:21] Production.INFO: ==14193== Releasing lock... [2025-03-08 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:41:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:42:05 [end_date_ymd] => 2025-03-08 21:42:05 [RateCDR] => 1 ) [2025-03-08 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:42:05' and `end` < '2025-03-08 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:42:17] Production.INFO: count ==1121 [2025-03-08 21:42:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:42:05 - End Time 2025-03-08 21:42:05 [2025-03-08 21:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637970', 'tblTempUsageDetail_20' ) start [2025-03-08 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637970', 'tblTempUsageDetail_20' ) end [2025-03-08 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637970', 'tblTempVendorCDR_20' ) start [2025-03-08 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637970', 'tblTempVendorCDR_20' ) end [2025-03-08 21:42:17] Production.INFO: ProcessCDR(1,14637970,1,1,2) [2025-03-08 21:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637970', 'tblTempUsageDetail_20' ) start [2025-03-08 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637970', 'tblTempUsageDetail_20' ) end [2025-03-08 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:42:22] Production.INFO: ==14266== Releasing lock... [2025-03-08 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:42:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:43:05 [end_date_ymd] => 2025-03-08 21:43:05 [RateCDR] => 1 ) [2025-03-08 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:43:05' and `end` < '2025-03-08 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:43:18] Production.INFO: count ==1120 [2025-03-08 21:43:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:43:05 - End Time 2025-03-08 21:43:05 [2025-03-08 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637975', 'tblTempUsageDetail_20' ) start [2025-03-08 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637975', 'tblTempUsageDetail_20' ) end [2025-03-08 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637975', 'tblTempVendorCDR_20' ) start [2025-03-08 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637975', 'tblTempVendorCDR_20' ) end [2025-03-08 21:43:18] Production.INFO: ProcessCDR(1,14637975,1,1,2) [2025-03-08 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637975', 'tblTempUsageDetail_20' ) start [2025-03-08 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637975', 'tblTempUsageDetail_20' ) end [2025-03-08 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:43:21] Production.INFO: ==14337== Releasing lock... [2025-03-08 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:43:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:44:05 [end_date_ymd] => 2025-03-08 21:44:05 [RateCDR] => 1 ) [2025-03-08 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:44:05' and `end` < '2025-03-08 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:44:17] Production.INFO: count ==1123 [2025-03-08 21:44:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:44:05 - End Time 2025-03-08 21:44:05 [2025-03-08 21:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637980', 'tblTempUsageDetail_20' ) start [2025-03-08 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637980', 'tblTempUsageDetail_20' ) end [2025-03-08 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637980', 'tblTempVendorCDR_20' ) start [2025-03-08 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637980', 'tblTempVendorCDR_20' ) end [2025-03-08 21:44:17] Production.INFO: ProcessCDR(1,14637980,1,1,2) [2025-03-08 21:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637980', 'tblTempUsageDetail_20' ) start [2025-03-08 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637980', 'tblTempUsageDetail_20' ) end [2025-03-08 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:44:21] Production.INFO: ==14407== Releasing lock... [2025-03-08 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:44:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:45:05 [end_date_ymd] => 2025-03-08 21:45:05 [RateCDR] => 1 ) [2025-03-08 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:45:05' and `end` < '2025-03-08 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:45:17] Production.INFO: count ==1122 [2025-03-08 21:45:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:45:05 - End Time 2025-03-08 21:45:05 [2025-03-08 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637985', 'tblTempUsageDetail_20' ) start [2025-03-08 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637985', 'tblTempUsageDetail_20' ) end [2025-03-08 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637985', 'tblTempVendorCDR_20' ) start [2025-03-08 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637985', 'tblTempVendorCDR_20' ) end [2025-03-08 21:45:18] Production.INFO: ProcessCDR(1,14637985,1,1,2) [2025-03-08 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637985', 'tblTempUsageDetail_20' ) start [2025-03-08 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637985', 'tblTempUsageDetail_20' ) end [2025-03-08 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:45:21] Production.INFO: ==14479== Releasing lock... [2025-03-08 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:45:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:46:06 [end_date_ymd] => 2025-03-08 21:46:06 [RateCDR] => 1 ) [2025-03-08 21:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:46:06' and `end` < '2025-03-08 21:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:46:18] Production.INFO: count ==1126 [2025-03-08 21:46:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:46:06 - End Time 2025-03-08 21:46:06 [2025-03-08 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637990', 'tblTempUsageDetail_20' ) start [2025-03-08 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637990', 'tblTempUsageDetail_20' ) end [2025-03-08 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637990', 'tblTempVendorCDR_20' ) start [2025-03-08 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637990', 'tblTempVendorCDR_20' ) end [2025-03-08 21:46:18] Production.INFO: ProcessCDR(1,14637990,1,1,2) [2025-03-08 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637990', 'tblTempUsageDetail_20' ) start [2025-03-08 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637990', 'tblTempUsageDetail_20' ) end [2025-03-08 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:46:23] Production.INFO: ==14549== Releasing lock... [2025-03-08 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:46:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:47:05 [end_date_ymd] => 2025-03-08 21:47:05 [RateCDR] => 1 ) [2025-03-08 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:47:05' and `end` < '2025-03-08 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:47:17] Production.INFO: count ==1127 [2025-03-08 21:47:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:47:05 - End Time 2025-03-08 21:47:05 [2025-03-08 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637995', 'tblTempUsageDetail_20' ) start [2025-03-08 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14637995', 'tblTempUsageDetail_20' ) end [2025-03-08 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637995', 'tblTempVendorCDR_20' ) start [2025-03-08 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14637995', 'tblTempVendorCDR_20' ) end [2025-03-08 21:47:17] Production.INFO: ProcessCDR(1,14637995,1,1,2) [2025-03-08 21:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14637995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14637995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14637995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14637995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637995', 'tblTempUsageDetail_20' ) start [2025-03-08 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14637995', 'tblTempUsageDetail_20' ) end [2025-03-08 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:47:22] Production.INFO: ==14624== Releasing lock... [2025-03-08 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:47:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:48:06 [end_date_ymd] => 2025-03-08 21:48:06 [RateCDR] => 1 ) [2025-03-08 21:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:48:06' and `end` < '2025-03-08 21:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:48:18] Production.INFO: count ==1130 [2025-03-08 21:48:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:48:06 - End Time 2025-03-08 21:48:06 [2025-03-08 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638000', 'tblTempUsageDetail_20' ) start [2025-03-08 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638000', 'tblTempUsageDetail_20' ) end [2025-03-08 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638000', 'tblTempVendorCDR_20' ) start [2025-03-08 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638000', 'tblTempVendorCDR_20' ) end [2025-03-08 21:48:18] Production.INFO: ProcessCDR(1,14638000,1,1,2) [2025-03-08 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638000', 'tblTempUsageDetail_20' ) start [2025-03-08 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638000', 'tblTempUsageDetail_20' ) end [2025-03-08 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:48:23] Production.INFO: ==14698== Releasing lock... [2025-03-08 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:48:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:49:05 [end_date_ymd] => 2025-03-08 21:49:05 [RateCDR] => 1 ) [2025-03-08 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:49:05' and `end` < '2025-03-08 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:49:17] Production.INFO: count ==1133 [2025-03-08 21:49:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:49:05 - End Time 2025-03-08 21:49:05 [2025-03-08 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638005', 'tblTempUsageDetail_20' ) start [2025-03-08 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638005', 'tblTempUsageDetail_20' ) end [2025-03-08 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638005', 'tblTempVendorCDR_20' ) start [2025-03-08 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638005', 'tblTempVendorCDR_20' ) end [2025-03-08 21:49:17] Production.INFO: ProcessCDR(1,14638005,1,1,2) [2025-03-08 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638005', 'tblTempUsageDetail_20' ) start [2025-03-08 21:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638005', 'tblTempUsageDetail_20' ) end [2025-03-08 21:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:49:20] Production.INFO: ==14771== Releasing lock... [2025-03-08 21:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:49:20] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:50:06 [end_date_ymd] => 2025-03-08 21:50:06 [RateCDR] => 1 ) [2025-03-08 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:50:06' and `end` < '2025-03-08 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:50:19] Production.INFO: count ==1134 [2025-03-08 21:50:19] Production.ERROR: pbx CDR StartTime 2025-03-08 18:50:06 - End Time 2025-03-08 21:50:06 [2025-03-08 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638011', 'tblTempUsageDetail_20' ) start [2025-03-08 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638011', 'tblTempUsageDetail_20' ) end [2025-03-08 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638011', 'tblTempVendorCDR_20' ) start [2025-03-08 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638011', 'tblTempVendorCDR_20' ) end [2025-03-08 21:50:19] Production.INFO: ProcessCDR(1,14638011,1,1,2) [2025-03-08 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638011', 'tblTempUsageDetail_20' ) start [2025-03-08 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638011', 'tblTempUsageDetail_20' ) end [2025-03-08 21:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:50:24] Production.INFO: ==14843== Releasing lock... [2025-03-08 21:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:50:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:51:05 [end_date_ymd] => 2025-03-08 21:51:05 [RateCDR] => 1 ) [2025-03-08 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:51:05' and `end` < '2025-03-08 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:51:17] Production.INFO: count ==1138 [2025-03-08 21:51:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:51:05 - End Time 2025-03-08 21:51:05 [2025-03-08 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638016', 'tblTempUsageDetail_20' ) start [2025-03-08 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638016', 'tblTempUsageDetail_20' ) end [2025-03-08 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638016', 'tblTempVendorCDR_20' ) start [2025-03-08 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638016', 'tblTempVendorCDR_20' ) end [2025-03-08 21:51:17] Production.INFO: ProcessCDR(1,14638016,1,1,2) [2025-03-08 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638016', 'tblTempUsageDetail_20' ) start [2025-03-08 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638016', 'tblTempUsageDetail_20' ) end [2025-03-08 21:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:51:21] Production.INFO: ==14917== Releasing lock... [2025-03-08 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:51:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:52:05 [end_date_ymd] => 2025-03-08 21:52:05 [RateCDR] => 1 ) [2025-03-08 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:52:05' and `end` < '2025-03-08 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:52:17] Production.INFO: count ==1136 [2025-03-08 21:52:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:52:05 - End Time 2025-03-08 21:52:05 [2025-03-08 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638021', 'tblTempUsageDetail_20' ) start [2025-03-08 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638021', 'tblTempUsageDetail_20' ) end [2025-03-08 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638021', 'tblTempVendorCDR_20' ) start [2025-03-08 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638021', 'tblTempVendorCDR_20' ) end [2025-03-08 21:52:17] Production.INFO: ProcessCDR(1,14638021,1,1,2) [2025-03-08 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638021', 'tblTempUsageDetail_20' ) start [2025-03-08 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638021', 'tblTempUsageDetail_20' ) end [2025-03-08 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:52:22] Production.INFO: ==15035== Releasing lock... [2025-03-08 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:52:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:53:05 [end_date_ymd] => 2025-03-08 21:53:05 [RateCDR] => 1 ) [2025-03-08 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:53:05' and `end` < '2025-03-08 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:53:18] Production.INFO: count ==1134 [2025-03-08 21:53:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:53:05 - End Time 2025-03-08 21:53:05 [2025-03-08 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638026', 'tblTempUsageDetail_20' ) start [2025-03-08 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638026', 'tblTempUsageDetail_20' ) end [2025-03-08 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638026', 'tblTempVendorCDR_20' ) start [2025-03-08 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638026', 'tblTempVendorCDR_20' ) end [2025-03-08 21:53:18] Production.INFO: ProcessCDR(1,14638026,1,1,2) [2025-03-08 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638026', 'tblTempUsageDetail_20' ) start [2025-03-08 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638026', 'tblTempUsageDetail_20' ) end [2025-03-08 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:53:21] Production.INFO: ==15109== Releasing lock... [2025-03-08 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:53:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:54:05 [end_date_ymd] => 2025-03-08 21:54:05 [RateCDR] => 1 ) [2025-03-08 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:54:05' and `end` < '2025-03-08 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:54:17] Production.INFO: count ==1134 [2025-03-08 21:54:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:54:05 - End Time 2025-03-08 21:54:05 [2025-03-08 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638031', 'tblTempUsageDetail_20' ) start [2025-03-08 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638031', 'tblTempUsageDetail_20' ) end [2025-03-08 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638031', 'tblTempVendorCDR_20' ) start [2025-03-08 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638031', 'tblTempVendorCDR_20' ) end [2025-03-08 21:54:18] Production.INFO: ProcessCDR(1,14638031,1,1,2) [2025-03-08 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638031', 'tblTempUsageDetail_20' ) start [2025-03-08 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638031', 'tblTempUsageDetail_20' ) end [2025-03-08 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:54:22] Production.INFO: ==15178== Releasing lock... [2025-03-08 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:54:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:55:06 [end_date_ymd] => 2025-03-08 21:55:06 [RateCDR] => 1 ) [2025-03-08 21:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:55:06' and `end` < '2025-03-08 21:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:55:18] Production.INFO: count ==1131 [2025-03-08 21:55:18] Production.ERROR: pbx CDR StartTime 2025-03-08 18:55:06 - End Time 2025-03-08 21:55:06 [2025-03-08 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638036', 'tblTempUsageDetail_20' ) start [2025-03-08 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638036', 'tblTempUsageDetail_20' ) end [2025-03-08 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638036', 'tblTempVendorCDR_20' ) start [2025-03-08 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638036', 'tblTempVendorCDR_20' ) end [2025-03-08 21:55:18] Production.INFO: ProcessCDR(1,14638036,1,1,2) [2025-03-08 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638036', 'tblTempUsageDetail_20' ) start [2025-03-08 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638036', 'tblTempUsageDetail_20' ) end [2025-03-08 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:55:21] Production.INFO: ==15248== Releasing lock... [2025-03-08 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:55:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:56:05 [end_date_ymd] => 2025-03-08 21:56:05 [RateCDR] => 1 ) [2025-03-08 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:56:05' and `end` < '2025-03-08 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:56:17] Production.INFO: count ==1130 [2025-03-08 21:56:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:56:05 - End Time 2025-03-08 21:56:05 [2025-03-08 21:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638041', 'tblTempUsageDetail_20' ) start [2025-03-08 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638041', 'tblTempUsageDetail_20' ) end [2025-03-08 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638041', 'tblTempVendorCDR_20' ) start [2025-03-08 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638041', 'tblTempVendorCDR_20' ) end [2025-03-08 21:56:17] Production.INFO: ProcessCDR(1,14638041,1,1,2) [2025-03-08 21:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638041', 'tblTempUsageDetail_20' ) start [2025-03-08 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638041', 'tblTempUsageDetail_20' ) end [2025-03-08 21:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:56:20] Production.INFO: ==15318== Releasing lock... [2025-03-08 21:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:56:20] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:57:05 [end_date_ymd] => 2025-03-08 21:57:05 [RateCDR] => 1 ) [2025-03-08 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:57:05' and `end` < '2025-03-08 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:57:17] Production.INFO: count ==1131 [2025-03-08 21:57:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:57:05 - End Time 2025-03-08 21:57:05 [2025-03-08 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638046', 'tblTempUsageDetail_20' ) start [2025-03-08 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638046', 'tblTempUsageDetail_20' ) end [2025-03-08 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638046', 'tblTempVendorCDR_20' ) start [2025-03-08 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638046', 'tblTempVendorCDR_20' ) end [2025-03-08 21:57:17] Production.INFO: ProcessCDR(1,14638046,1,1,2) [2025-03-08 21:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638046', 'tblTempUsageDetail_20' ) start [2025-03-08 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638046', 'tblTempUsageDetail_20' ) end [2025-03-08 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:57:22] Production.INFO: ==15389== Releasing lock... [2025-03-08 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:57:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:58:05 [end_date_ymd] => 2025-03-08 21:58:05 [RateCDR] => 1 ) [2025-03-08 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:58:05' and `end` < '2025-03-08 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:58:17] Production.INFO: count ==1126 [2025-03-08 21:58:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:58:05 - End Time 2025-03-08 21:58:05 [2025-03-08 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638051', 'tblTempUsageDetail_20' ) start [2025-03-08 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638051', 'tblTempUsageDetail_20' ) end [2025-03-08 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638051', 'tblTempVendorCDR_20' ) start [2025-03-08 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638051', 'tblTempVendorCDR_20' ) end [2025-03-08 21:58:17] Production.INFO: ProcessCDR(1,14638051,1,1,2) [2025-03-08 21:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638051', 'tblTempUsageDetail_20' ) start [2025-03-08 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638051', 'tblTempUsageDetail_20' ) end [2025-03-08 21:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:58:20] Production.INFO: ==15461== Releasing lock... [2025-03-08 21:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:58:20] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 18:59:05 [end_date_ymd] => 2025-03-08 21:59:05 [RateCDR] => 1 ) [2025-03-08 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 18:59:05' and `end` < '2025-03-08 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 21:59:17] Production.INFO: count ==1126 [2025-03-08 21:59:17] Production.ERROR: pbx CDR StartTime 2025-03-08 18:59:05 - End Time 2025-03-08 21:59:05 [2025-03-08 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638056', 'tblTempUsageDetail_20' ) start [2025-03-08 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638056', 'tblTempUsageDetail_20' ) end [2025-03-08 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638056', 'tblTempVendorCDR_20' ) start [2025-03-08 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638056', 'tblTempVendorCDR_20' ) end [2025-03-08 21:59:17] Production.INFO: ProcessCDR(1,14638056,1,1,2) [2025-03-08 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638056', 'tblTempUsageDetail_20' ) start [2025-03-08 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638056', 'tblTempUsageDetail_20' ) end [2025-03-08 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 21:59:22] Production.INFO: ==15531== Releasing lock... [2025-03-08 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 21:59:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:00:06 [end_date_ymd] => 2025-03-08 22:00:06 [RateCDR] => 1 ) [2025-03-08 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:00:06' and `end` < '2025-03-08 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:00:18] Production.INFO: count ==1122 [2025-03-08 22:00:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:00:06 - End Time 2025-03-08 22:00:06 [2025-03-08 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638062', 'tblTempUsageDetail_20' ) start [2025-03-08 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638062', 'tblTempUsageDetail_20' ) end [2025-03-08 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638062', 'tblTempVendorCDR_20' ) start [2025-03-08 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638062', 'tblTempVendorCDR_20' ) end [2025-03-08 22:00:18] Production.INFO: ProcessCDR(1,14638062,1,1,2) [2025-03-08 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638062', 'tblTempUsageDetail_20' ) start [2025-03-08 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638062', 'tblTempUsageDetail_20' ) end [2025-03-08 22:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:00:21] Production.INFO: ==15605== Releasing lock... [2025-03-08 22:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:00:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:01:05 [end_date_ymd] => 2025-03-08 22:01:05 [RateCDR] => 1 ) [2025-03-08 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:01:05' and `end` < '2025-03-08 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:01:17] Production.INFO: count ==1109 [2025-03-08 22:01:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:01:05 - End Time 2025-03-08 22:01:05 [2025-03-08 22:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638067', 'tblTempUsageDetail_20' ) start [2025-03-08 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638067', 'tblTempUsageDetail_20' ) end [2025-03-08 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638067', 'tblTempVendorCDR_20' ) start [2025-03-08 22:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638067', 'tblTempVendorCDR_20' ) end [2025-03-08 22:01:17] Production.INFO: ProcessCDR(1,14638067,1,1,2) [2025-03-08 22:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638067', 'tblTempUsageDetail_20' ) start [2025-03-08 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638067', 'tblTempUsageDetail_20' ) end [2025-03-08 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:01:22] Production.INFO: ==15692== Releasing lock... [2025-03-08 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:01:22] Production.INFO: 36 MB #Memory Used# [2025-03-08 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:02:05 [end_date_ymd] => 2025-03-08 22:02:05 [RateCDR] => 1 ) [2025-03-08 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:02:05' and `end` < '2025-03-08 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:02:17] Production.INFO: count ==1109 [2025-03-08 22:02:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:02:05 - End Time 2025-03-08 22:02:05 [2025-03-08 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638072', 'tblTempUsageDetail_20' ) start [2025-03-08 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638072', 'tblTempUsageDetail_20' ) end [2025-03-08 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638072', 'tblTempVendorCDR_20' ) start [2025-03-08 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638072', 'tblTempVendorCDR_20' ) end [2025-03-08 22:02:17] Production.INFO: ProcessCDR(1,14638072,1,1,2) [2025-03-08 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638072', 'tblTempUsageDetail_20' ) start [2025-03-08 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638072', 'tblTempUsageDetail_20' ) end [2025-03-08 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:02:21] Production.INFO: ==15762== Releasing lock... [2025-03-08 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:02:21] Production.INFO: 36 MB #Memory Used# [2025-03-08 22:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:03:06 [end_date_ymd] => 2025-03-08 22:03:06 [RateCDR] => 1 ) [2025-03-08 22:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:03:06' and `end` < '2025-03-08 22:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:03:18] Production.INFO: count ==1110 [2025-03-08 22:03:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:03:06 - End Time 2025-03-08 22:03:06 [2025-03-08 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638077', 'tblTempUsageDetail_20' ) start [2025-03-08 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638077', 'tblTempUsageDetail_20' ) end [2025-03-08 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638077', 'tblTempVendorCDR_20' ) start [2025-03-08 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638077', 'tblTempVendorCDR_20' ) end [2025-03-08 22:03:18] Production.INFO: ProcessCDR(1,14638077,1,1,2) [2025-03-08 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638077', 'tblTempUsageDetail_20' ) start [2025-03-08 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638077', 'tblTempUsageDetail_20' ) end [2025-03-08 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:03:22] Production.INFO: ==15839== Releasing lock... [2025-03-08 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:03:22] Production.INFO: 36 MB #Memory Used# [2025-03-08 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:04:04 [end_date_ymd] => 2025-03-08 22:04:04 [RateCDR] => 1 ) [2025-03-08 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:04:04' and `end` < '2025-03-08 22:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:04:17] Production.INFO: count ==1110 [2025-03-08 22:04:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:04:04 - End Time 2025-03-08 22:04:04 [2025-03-08 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638082', 'tblTempUsageDetail_20' ) start [2025-03-08 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638082', 'tblTempUsageDetail_20' ) end [2025-03-08 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638082', 'tblTempVendorCDR_20' ) start [2025-03-08 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638082', 'tblTempVendorCDR_20' ) end [2025-03-08 22:04:17] Production.INFO: ProcessCDR(1,14638082,1,1,2) [2025-03-08 22:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638082', 'tblTempUsageDetail_20' ) start [2025-03-08 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638082', 'tblTempUsageDetail_20' ) end [2025-03-08 22:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:04:20] Production.INFO: ==15911== Releasing lock... [2025-03-08 22:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:04:20] Production.INFO: 36 MB #Memory Used# [2025-03-08 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:05:05 [end_date_ymd] => 2025-03-08 22:05:05 [RateCDR] => 1 ) [2025-03-08 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:05:05' and `end` < '2025-03-08 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:05:17] Production.INFO: count ==1108 [2025-03-08 22:05:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:05:05 - End Time 2025-03-08 22:05:05 [2025-03-08 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638087', 'tblTempUsageDetail_20' ) start [2025-03-08 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638087', 'tblTempUsageDetail_20' ) end [2025-03-08 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638087', 'tblTempVendorCDR_20' ) start [2025-03-08 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638087', 'tblTempVendorCDR_20' ) end [2025-03-08 22:05:17] Production.INFO: ProcessCDR(1,14638087,1,1,2) [2025-03-08 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638087', 'tblTempUsageDetail_20' ) start [2025-03-08 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638087', 'tblTempUsageDetail_20' ) end [2025-03-08 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:05:22] Production.INFO: ==15981== Releasing lock... [2025-03-08 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:05:22] Production.INFO: 36 MB #Memory Used# [2025-03-08 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:06:05 [end_date_ymd] => 2025-03-08 22:06:05 [RateCDR] => 1 ) [2025-03-08 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:06:05' and `end` < '2025-03-08 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:06:17] Production.INFO: count ==1108 [2025-03-08 22:06:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:06:05 - End Time 2025-03-08 22:06:05 [2025-03-08 22:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638092', 'tblTempUsageDetail_20' ) start [2025-03-08 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638092', 'tblTempUsageDetail_20' ) end [2025-03-08 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638092', 'tblTempVendorCDR_20' ) start [2025-03-08 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638092', 'tblTempVendorCDR_20' ) end [2025-03-08 22:06:17] Production.INFO: ProcessCDR(1,14638092,1,1,2) [2025-03-08 22:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638092', 'tblTempUsageDetail_20' ) start [2025-03-08 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638092', 'tblTempUsageDetail_20' ) end [2025-03-08 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:06:22] Production.INFO: ==16062== Releasing lock... [2025-03-08 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:06:22] Production.INFO: 36 MB #Memory Used# [2025-03-08 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:07:05 [end_date_ymd] => 2025-03-08 22:07:05 [RateCDR] => 1 ) [2025-03-08 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:07:05' and `end` < '2025-03-08 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:07:17] Production.INFO: count ==1106 [2025-03-08 22:07:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:07:05 - End Time 2025-03-08 22:07:05 [2025-03-08 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638097', 'tblTempUsageDetail_20' ) start [2025-03-08 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638097', 'tblTempUsageDetail_20' ) end [2025-03-08 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638097', 'tblTempVendorCDR_20' ) start [2025-03-08 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638097', 'tblTempVendorCDR_20' ) end [2025-03-08 22:07:17] Production.INFO: ProcessCDR(1,14638097,1,1,2) [2025-03-08 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638097', 'tblTempUsageDetail_20' ) start [2025-03-08 22:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638097', 'tblTempUsageDetail_20' ) end [2025-03-08 22:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:07:20] Production.INFO: ==16173== Releasing lock... [2025-03-08 22:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:07:20] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:08:05 [end_date_ymd] => 2025-03-08 22:08:05 [RateCDR] => 1 ) [2025-03-08 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:08:05' and `end` < '2025-03-08 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:08:17] Production.INFO: count ==1108 [2025-03-08 22:08:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:08:05 - End Time 2025-03-08 22:08:05 [2025-03-08 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638102', 'tblTempUsageDetail_20' ) start [2025-03-08 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638102', 'tblTempUsageDetail_20' ) end [2025-03-08 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638102', 'tblTempVendorCDR_20' ) start [2025-03-08 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638102', 'tblTempVendorCDR_20' ) end [2025-03-08 22:08:17] Production.INFO: ProcessCDR(1,14638102,1,1,2) [2025-03-08 22:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638102', 'tblTempUsageDetail_20' ) start [2025-03-08 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638102', 'tblTempUsageDetail_20' ) end [2025-03-08 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:08:21] Production.INFO: ==16245== Releasing lock... [2025-03-08 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:08:21] Production.INFO: 36 MB #Memory Used# [2025-03-08 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:09:05 [end_date_ymd] => 2025-03-08 22:09:05 [RateCDR] => 1 ) [2025-03-08 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:09:05' and `end` < '2025-03-08 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:09:17] Production.INFO: count ==1112 [2025-03-08 22:09:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:09:05 - End Time 2025-03-08 22:09:05 [2025-03-08 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638107', 'tblTempUsageDetail_20' ) start [2025-03-08 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638107', 'tblTempUsageDetail_20' ) end [2025-03-08 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638107', 'tblTempVendorCDR_20' ) start [2025-03-08 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638107', 'tblTempVendorCDR_20' ) end [2025-03-08 22:09:17] Production.INFO: ProcessCDR(1,14638107,1,1,2) [2025-03-08 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638107', 'tblTempUsageDetail_20' ) start [2025-03-08 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638107', 'tblTempUsageDetail_20' ) end [2025-03-08 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:09:22] Production.INFO: ==16316== Releasing lock... [2025-03-08 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:09:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:10:06 [end_date_ymd] => 2025-03-08 22:10:06 [RateCDR] => 1 ) [2025-03-08 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:10:06' and `end` < '2025-03-08 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:10:19] Production.INFO: count ==1117 [2025-03-08 22:10:19] Production.ERROR: pbx CDR StartTime 2025-03-08 19:10:06 - End Time 2025-03-08 22:10:06 [2025-03-08 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638113', 'tblTempUsageDetail_20' ) start [2025-03-08 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638113', 'tblTempUsageDetail_20' ) end [2025-03-08 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638113', 'tblTempVendorCDR_20' ) start [2025-03-08 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638113', 'tblTempVendorCDR_20' ) end [2025-03-08 22:10:19] Production.INFO: ProcessCDR(1,14638113,1,1,2) [2025-03-08 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638113', 'tblTempUsageDetail_20' ) start [2025-03-08 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638113', 'tblTempUsageDetail_20' ) end [2025-03-08 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:10:22] Production.INFO: ==16388== Releasing lock... [2025-03-08 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:10:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 22:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:11:04 [end_date_ymd] => 2025-03-08 22:11:04 [RateCDR] => 1 ) [2025-03-08 22:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:11:04' and `end` < '2025-03-08 22:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:11:16] Production.INFO: count ==1089 [2025-03-08 22:11:16] Production.ERROR: pbx CDR StartTime 2025-03-08 19:11:04 - End Time 2025-03-08 22:11:04 [2025-03-08 22:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638118', 'tblTempUsageDetail_20' ) start [2025-03-08 22:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638118', 'tblTempUsageDetail_20' ) end [2025-03-08 22:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638118', 'tblTempVendorCDR_20' ) start [2025-03-08 22:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638118', 'tblTempVendorCDR_20' ) end [2025-03-08 22:11:16] Production.INFO: ProcessCDR(1,14638118,1,1,2) [2025-03-08 22:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638118', 'tblTempUsageDetail_20' ) start [2025-03-08 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638118', 'tblTempUsageDetail_20' ) end [2025-03-08 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:11:21] Production.INFO: ==16462== Releasing lock... [2025-03-08 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:11:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:12:05 [end_date_ymd] => 2025-03-08 22:12:05 [RateCDR] => 1 ) [2025-03-08 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:12:05' and `end` < '2025-03-08 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:12:17] Production.INFO: count ==1088 [2025-03-08 22:12:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:12:05 - End Time 2025-03-08 22:12:05 [2025-03-08 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638123', 'tblTempUsageDetail_20' ) start [2025-03-08 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638123', 'tblTempUsageDetail_20' ) end [2025-03-08 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638123', 'tblTempVendorCDR_20' ) start [2025-03-08 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638123', 'tblTempVendorCDR_20' ) end [2025-03-08 22:12:18] Production.INFO: ProcessCDR(1,14638123,1,1,2) [2025-03-08 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638123', 'tblTempUsageDetail_20' ) start [2025-03-08 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638123', 'tblTempUsageDetail_20' ) end [2025-03-08 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:12:21] Production.INFO: ==16534== Releasing lock... [2025-03-08 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:12:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 22:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:13:04 [end_date_ymd] => 2025-03-08 22:13:04 [RateCDR] => 1 ) [2025-03-08 22:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:13:04' and `end` < '2025-03-08 22:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:13:16] Production.INFO: count ==1083 [2025-03-08 22:13:16] Production.ERROR: pbx CDR StartTime 2025-03-08 19:13:04 - End Time 2025-03-08 22:13:04 [2025-03-08 22:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638128', 'tblTempUsageDetail_20' ) start [2025-03-08 22:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638128', 'tblTempUsageDetail_20' ) end [2025-03-08 22:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638128', 'tblTempVendorCDR_20' ) start [2025-03-08 22:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638128', 'tblTempVendorCDR_20' ) end [2025-03-08 22:13:16] Production.INFO: ProcessCDR(1,14638128,1,1,2) [2025-03-08 22:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638128', 'tblTempUsageDetail_20' ) start [2025-03-08 22:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638128', 'tblTempUsageDetail_20' ) end [2025-03-08 22:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:13:20] Production.INFO: ==16606== Releasing lock... [2025-03-08 22:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:13:20] Production.INFO: 36 MB #Memory Used# [2025-03-08 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:14:05 [end_date_ymd] => 2025-03-08 22:14:05 [RateCDR] => 1 ) [2025-03-08 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:14:05' and `end` < '2025-03-08 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:14:17] Production.INFO: count ==1084 [2025-03-08 22:14:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:14:05 - End Time 2025-03-08 22:14:05 [2025-03-08 22:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638133', 'tblTempUsageDetail_20' ) start [2025-03-08 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638133', 'tblTempUsageDetail_20' ) end [2025-03-08 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638133', 'tblTempVendorCDR_20' ) start [2025-03-08 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638133', 'tblTempVendorCDR_20' ) end [2025-03-08 22:14:18] Production.INFO: ProcessCDR(1,14638133,1,1,2) [2025-03-08 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638133', 'tblTempUsageDetail_20' ) start [2025-03-08 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638133', 'tblTempUsageDetail_20' ) end [2025-03-08 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:14:22] Production.INFO: ==16680== Releasing lock... [2025-03-08 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:14:22] Production.INFO: 36 MB #Memory Used# [2025-03-08 22:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:15:06 [end_date_ymd] => 2025-03-08 22:15:06 [RateCDR] => 1 ) [2025-03-08 22:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:15:06' and `end` < '2025-03-08 22:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:15:18] Production.INFO: count ==1085 [2025-03-08 22:15:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:15:06 - End Time 2025-03-08 22:15:06 [2025-03-08 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638138', 'tblTempUsageDetail_20' ) start [2025-03-08 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638138', 'tblTempUsageDetail_20' ) end [2025-03-08 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638138', 'tblTempVendorCDR_20' ) start [2025-03-08 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638138', 'tblTempVendorCDR_20' ) end [2025-03-08 22:15:18] Production.INFO: ProcessCDR(1,14638138,1,1,2) [2025-03-08 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638138', 'tblTempUsageDetail_20' ) start [2025-03-08 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638138', 'tblTempUsageDetail_20' ) end [2025-03-08 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:15:21] Production.INFO: ==16755== Releasing lock... [2025-03-08 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:15:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-08 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:16:05 [end_date_ymd] => 2025-03-08 22:16:05 [RateCDR] => 1 ) [2025-03-08 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:16:05' and `end` < '2025-03-08 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:16:17] Production.INFO: count ==1124 [2025-03-08 22:16:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:16:05 - End Time 2025-03-08 22:16:05 [2025-03-08 22:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638143', 'tblTempUsageDetail_20' ) start [2025-03-08 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638143', 'tblTempUsageDetail_20' ) end [2025-03-08 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638143', 'tblTempVendorCDR_20' ) start [2025-03-08 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638143', 'tblTempVendorCDR_20' ) end [2025-03-08 22:16:17] Production.INFO: ProcessCDR(1,14638143,1,1,2) [2025-03-08 22:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638143', 'tblTempUsageDetail_20' ) start [2025-03-08 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638143', 'tblTempUsageDetail_20' ) end [2025-03-08 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:16:22] Production.INFO: ==16826== Releasing lock... [2025-03-08 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:16:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-08 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:17:05 [end_date_ymd] => 2025-03-08 22:17:05 [RateCDR] => 1 ) [2025-03-08 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:17:05' and `end` < '2025-03-08 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:17:17] Production.INFO: count ==1164 [2025-03-08 22:17:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:17:05 - End Time 2025-03-08 22:17:05 [2025-03-08 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638148', 'tblTempUsageDetail_20' ) start [2025-03-08 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638148', 'tblTempUsageDetail_20' ) end [2025-03-08 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638148', 'tblTempVendorCDR_20' ) start [2025-03-08 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638148', 'tblTempVendorCDR_20' ) end [2025-03-08 22:17:18] Production.INFO: ProcessCDR(1,14638148,1,1,2) [2025-03-08 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638148', 'tblTempUsageDetail_20' ) start [2025-03-08 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638148', 'tblTempUsageDetail_20' ) end [2025-03-08 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:17:22] Production.INFO: ==16913== Releasing lock... [2025-03-08 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:17:22] Production.INFO: 37 MB #Memory Used# [2025-03-08 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:18:05 [end_date_ymd] => 2025-03-08 22:18:05 [RateCDR] => 1 ) [2025-03-08 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:18:05' and `end` < '2025-03-08 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:18:17] Production.INFO: count ==1195 [2025-03-08 22:18:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:18:05 - End Time 2025-03-08 22:18:05 [2025-03-08 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638153', 'tblTempUsageDetail_20' ) start [2025-03-08 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638153', 'tblTempUsageDetail_20' ) end [2025-03-08 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638153', 'tblTempVendorCDR_20' ) start [2025-03-08 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638153', 'tblTempVendorCDR_20' ) end [2025-03-08 22:18:17] Production.INFO: ProcessCDR(1,14638153,1,1,2) [2025-03-08 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638153', 'tblTempUsageDetail_20' ) start [2025-03-08 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638153', 'tblTempUsageDetail_20' ) end [2025-03-08 22:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:18:20] Production.INFO: ==16983== Releasing lock... [2025-03-08 22:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:18:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 22:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:19:06 [end_date_ymd] => 2025-03-08 22:19:06 [RateCDR] => 1 ) [2025-03-08 22:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:19:06' and `end` < '2025-03-08 22:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:19:18] Production.INFO: count ==1339 [2025-03-08 22:19:19] Production.ERROR: pbx CDR StartTime 2025-03-08 19:19:06 - End Time 2025-03-08 22:19:06 [2025-03-08 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638158', 'tblTempUsageDetail_20' ) start [2025-03-08 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638158', 'tblTempUsageDetail_20' ) end [2025-03-08 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638158', 'tblTempVendorCDR_20' ) start [2025-03-08 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638158', 'tblTempVendorCDR_20' ) end [2025-03-08 22:19:19] Production.INFO: ProcessCDR(1,14638158,1,1,2) [2025-03-08 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638158', 'tblTempUsageDetail_20' ) start [2025-03-08 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638158', 'tblTempUsageDetail_20' ) end [2025-03-08 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:19:24] Production.INFO: ==17055== Releasing lock... [2025-03-08 22:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:19:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:20:05 [end_date_ymd] => 2025-03-08 22:20:05 [RateCDR] => 1 ) [2025-03-08 22:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:20:05' and `end` < '2025-03-08 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:20:18] Production.INFO: count ==1341 [2025-03-08 22:20:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:20:05 - End Time 2025-03-08 22:20:05 [2025-03-08 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638164', 'tblTempUsageDetail_20' ) start [2025-03-08 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638164', 'tblTempUsageDetail_20' ) end [2025-03-08 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638164', 'tblTempVendorCDR_20' ) start [2025-03-08 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638164', 'tblTempVendorCDR_20' ) end [2025-03-08 22:20:18] Production.INFO: ProcessCDR(1,14638164,1,1,2) [2025-03-08 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638164', 'tblTempUsageDetail_20' ) start [2025-03-08 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638164', 'tblTempUsageDetail_20' ) end [2025-03-08 22:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:20:21] Production.INFO: ==17132== Releasing lock... [2025-03-08 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:20:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:21:05 [end_date_ymd] => 2025-03-08 22:21:05 [RateCDR] => 1 ) [2025-03-08 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:21:05' and `end` < '2025-03-08 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:21:17] Production.INFO: count ==1334 [2025-03-08 22:21:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:21:05 - End Time 2025-03-08 22:21:05 [2025-03-08 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638169', 'tblTempUsageDetail_20' ) start [2025-03-08 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638169', 'tblTempUsageDetail_20' ) end [2025-03-08 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638169', 'tblTempVendorCDR_20' ) start [2025-03-08 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638169', 'tblTempVendorCDR_20' ) end [2025-03-08 22:21:18] Production.INFO: ProcessCDR(1,14638169,1,1,2) [2025-03-08 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638169', 'tblTempUsageDetail_20' ) start [2025-03-08 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638169', 'tblTempUsageDetail_20' ) end [2025-03-08 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:21:21] Production.INFO: ==17207== Releasing lock... [2025-03-08 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:21:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:22:05 [end_date_ymd] => 2025-03-08 22:22:05 [RateCDR] => 1 ) [2025-03-08 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:22:05' and `end` < '2025-03-08 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:22:17] Production.INFO: count ==1336 [2025-03-08 22:22:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:22:05 - End Time 2025-03-08 22:22:05 [2025-03-08 22:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638174', 'tblTempUsageDetail_20' ) start [2025-03-08 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638174', 'tblTempUsageDetail_20' ) end [2025-03-08 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638174', 'tblTempVendorCDR_20' ) start [2025-03-08 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638174', 'tblTempVendorCDR_20' ) end [2025-03-08 22:22:17] Production.INFO: ProcessCDR(1,14638174,1,1,2) [2025-03-08 22:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638174', 'tblTempUsageDetail_20' ) start [2025-03-08 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638174', 'tblTempUsageDetail_20' ) end [2025-03-08 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:22:22] Production.INFO: ==17278== Releasing lock... [2025-03-08 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:22:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:23:05 [end_date_ymd] => 2025-03-08 22:23:05 [RateCDR] => 1 ) [2025-03-08 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:23:05' and `end` < '2025-03-08 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:23:17] Production.INFO: count ==1340 [2025-03-08 22:23:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:23:05 - End Time 2025-03-08 22:23:05 [2025-03-08 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638179', 'tblTempUsageDetail_20' ) start [2025-03-08 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638179', 'tblTempUsageDetail_20' ) end [2025-03-08 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638179', 'tblTempVendorCDR_20' ) start [2025-03-08 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638179', 'tblTempVendorCDR_20' ) end [2025-03-08 22:23:17] Production.INFO: ProcessCDR(1,14638179,1,1,2) [2025-03-08 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638179', 'tblTempUsageDetail_20' ) start [2025-03-08 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638179', 'tblTempUsageDetail_20' ) end [2025-03-08 22:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:23:20] Production.INFO: ==17391== Releasing lock... [2025-03-08 22:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:23:20] Production.INFO: 38 MB #Memory Used# [2025-03-08 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:24:06 [end_date_ymd] => 2025-03-08 22:24:06 [RateCDR] => 1 ) [2025-03-08 22:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:24:06' and `end` < '2025-03-08 22:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:24:18] Production.INFO: count ==1340 [2025-03-08 22:24:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:24:06 - End Time 2025-03-08 22:24:06 [2025-03-08 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638184', 'tblTempUsageDetail_20' ) start [2025-03-08 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638184', 'tblTempUsageDetail_20' ) end [2025-03-08 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638184', 'tblTempVendorCDR_20' ) start [2025-03-08 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638184', 'tblTempVendorCDR_20' ) end [2025-03-08 22:24:18] Production.INFO: ProcessCDR(1,14638184,1,1,2) [2025-03-08 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638184', 'tblTempUsageDetail_20' ) start [2025-03-08 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638184', 'tblTempUsageDetail_20' ) end [2025-03-08 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:24:22] Production.INFO: ==17467== Releasing lock... [2025-03-08 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:24:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:25:05 [end_date_ymd] => 2025-03-08 22:25:05 [RateCDR] => 1 ) [2025-03-08 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:25:05' and `end` < '2025-03-08 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:25:17] Production.INFO: count ==1338 [2025-03-08 22:25:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:25:05 - End Time 2025-03-08 22:25:05 [2025-03-08 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638189', 'tblTempUsageDetail_20' ) start [2025-03-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638189', 'tblTempUsageDetail_20' ) end [2025-03-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638189', 'tblTempVendorCDR_20' ) start [2025-03-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638189', 'tblTempVendorCDR_20' ) end [2025-03-08 22:25:18] Production.INFO: ProcessCDR(1,14638189,1,1,2) [2025-03-08 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638189', 'tblTempUsageDetail_20' ) start [2025-03-08 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638189', 'tblTempUsageDetail_20' ) end [2025-03-08 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:25:21] Production.INFO: ==17542== Releasing lock... [2025-03-08 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:25:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:26:04 [end_date_ymd] => 2025-03-08 22:26:04 [RateCDR] => 1 ) [2025-03-08 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:26:04' and `end` < '2025-03-08 22:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:26:17] Production.INFO: count ==1343 [2025-03-08 22:26:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:26:04 - End Time 2025-03-08 22:26:04 [2025-03-08 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638194', 'tblTempUsageDetail_20' ) start [2025-03-08 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638194', 'tblTempUsageDetail_20' ) end [2025-03-08 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638194', 'tblTempVendorCDR_20' ) start [2025-03-08 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638194', 'tblTempVendorCDR_20' ) end [2025-03-08 22:26:17] Production.INFO: ProcessCDR(1,14638194,1,1,2) [2025-03-08 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638194', 'tblTempUsageDetail_20' ) start [2025-03-08 22:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638194', 'tblTempUsageDetail_20' ) end [2025-03-08 22:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:26:20] Production.INFO: ==17613== Releasing lock... [2025-03-08 22:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:26:20] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:27:05 [end_date_ymd] => 2025-03-08 22:27:05 [RateCDR] => 1 ) [2025-03-08 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:27:05' and `end` < '2025-03-08 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:27:17] Production.INFO: count ==1344 [2025-03-08 22:27:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:27:05 - End Time 2025-03-08 22:27:05 [2025-03-08 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638199', 'tblTempUsageDetail_20' ) start [2025-03-08 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638199', 'tblTempUsageDetail_20' ) end [2025-03-08 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638199', 'tblTempVendorCDR_20' ) start [2025-03-08 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638199', 'tblTempVendorCDR_20' ) end [2025-03-08 22:27:18] Production.INFO: ProcessCDR(1,14638199,1,1,2) [2025-03-08 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638199', 'tblTempUsageDetail_20' ) start [2025-03-08 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638199', 'tblTempUsageDetail_20' ) end [2025-03-08 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:27:22] Production.INFO: ==17686== Releasing lock... [2025-03-08 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:27:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 22:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:28:04 [end_date_ymd] => 2025-03-08 22:28:04 [RateCDR] => 1 ) [2025-03-08 22:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:28:04' and `end` < '2025-03-08 22:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:28:17] Production.INFO: count ==1346 [2025-03-08 22:28:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:28:04 - End Time 2025-03-08 22:28:04 [2025-03-08 22:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638204', 'tblTempUsageDetail_20' ) start [2025-03-08 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638204', 'tblTempUsageDetail_20' ) end [2025-03-08 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638204', 'tblTempVendorCDR_20' ) start [2025-03-08 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638204', 'tblTempVendorCDR_20' ) end [2025-03-08 22:28:17] Production.INFO: ProcessCDR(1,14638204,1,1,2) [2025-03-08 22:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638204', 'tblTempUsageDetail_20' ) start [2025-03-08 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638204', 'tblTempUsageDetail_20' ) end [2025-03-08 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:28:22] Production.INFO: ==17758== Releasing lock... [2025-03-08 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:28:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:29:05 [end_date_ymd] => 2025-03-08 22:29:05 [RateCDR] => 1 ) [2025-03-08 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:29:05' and `end` < '2025-03-08 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:29:17] Production.INFO: count ==1348 [2025-03-08 22:29:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:29:05 - End Time 2025-03-08 22:29:05 [2025-03-08 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638209', 'tblTempUsageDetail_20' ) start [2025-03-08 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638209', 'tblTempUsageDetail_20' ) end [2025-03-08 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638209', 'tblTempVendorCDR_20' ) start [2025-03-08 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638209', 'tblTempVendorCDR_20' ) end [2025-03-08 22:29:17] Production.INFO: ProcessCDR(1,14638209,1,1,2) [2025-03-08 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638209', 'tblTempUsageDetail_20' ) start [2025-03-08 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638209', 'tblTempUsageDetail_20' ) end [2025-03-08 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:29:21] Production.INFO: ==17828== Releasing lock... [2025-03-08 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:29:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:30:06 [end_date_ymd] => 2025-03-08 22:30:06 [RateCDR] => 1 ) [2025-03-08 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:30:06' and `end` < '2025-03-08 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:30:18] Production.INFO: count ==1347 [2025-03-08 22:30:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:30:06 - End Time 2025-03-08 22:30:06 [2025-03-08 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638214', 'tblTempUsageDetail_20' ) start [2025-03-08 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638214', 'tblTempUsageDetail_20' ) end [2025-03-08 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638214', 'tblTempVendorCDR_20' ) start [2025-03-08 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638214', 'tblTempVendorCDR_20' ) end [2025-03-08 22:30:18] Production.INFO: ProcessCDR(1,14638214,1,1,2) [2025-03-08 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638214', 'tblTempUsageDetail_20' ) start [2025-03-08 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638214', 'tblTempUsageDetail_20' ) end [2025-03-08 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:30:22] Production.INFO: ==17914== Releasing lock... [2025-03-08 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:30:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:31:05 [end_date_ymd] => 2025-03-08 22:31:05 [RateCDR] => 1 ) [2025-03-08 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:31:05' and `end` < '2025-03-08 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:31:17] Production.INFO: count ==1334 [2025-03-08 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:31:05 - End Time 2025-03-08 22:31:05 [2025-03-08 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638220', 'tblTempUsageDetail_20' ) start [2025-03-08 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638220', 'tblTempUsageDetail_20' ) end [2025-03-08 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638220', 'tblTempVendorCDR_20' ) start [2025-03-08 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638220', 'tblTempVendorCDR_20' ) end [2025-03-08 22:31:18] Production.INFO: ProcessCDR(1,14638220,1,1,2) [2025-03-08 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638220', 'tblTempUsageDetail_20' ) start [2025-03-08 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638220', 'tblTempUsageDetail_20' ) end [2025-03-08 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:31:21] Production.INFO: ==17998== Releasing lock... [2025-03-08 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:31:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:32:06 [end_date_ymd] => 2025-03-08 22:32:06 [RateCDR] => 1 ) [2025-03-08 22:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:32:06' and `end` < '2025-03-08 22:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:32:18] Production.INFO: count ==1334 [2025-03-08 22:32:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:32:06 - End Time 2025-03-08 22:32:06 [2025-03-08 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638225', 'tblTempUsageDetail_20' ) start [2025-03-08 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638225', 'tblTempUsageDetail_20' ) end [2025-03-08 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638225', 'tblTempVendorCDR_20' ) start [2025-03-08 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638225', 'tblTempVendorCDR_20' ) end [2025-03-08 22:32:18] Production.INFO: ProcessCDR(1,14638225,1,1,2) [2025-03-08 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638225', 'tblTempUsageDetail_20' ) start [2025-03-08 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638225', 'tblTempUsageDetail_20' ) end [2025-03-08 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:32:23] Production.INFO: ==18069== Releasing lock... [2025-03-08 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:32:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 22:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:33:04 [end_date_ymd] => 2025-03-08 22:33:04 [RateCDR] => 1 ) [2025-03-08 22:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:33:04' and `end` < '2025-03-08 22:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:33:17] Production.INFO: count ==1327 [2025-03-08 22:33:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:33:04 - End Time 2025-03-08 22:33:04 [2025-03-08 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638230', 'tblTempUsageDetail_20' ) start [2025-03-08 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638230', 'tblTempUsageDetail_20' ) end [2025-03-08 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638230', 'tblTempVendorCDR_20' ) start [2025-03-08 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638230', 'tblTempVendorCDR_20' ) end [2025-03-08 22:33:17] Production.INFO: ProcessCDR(1,14638230,1,1,2) [2025-03-08 22:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638230', 'tblTempUsageDetail_20' ) start [2025-03-08 22:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638230', 'tblTempUsageDetail_20' ) end [2025-03-08 22:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:33:20] Production.INFO: ==18139== Releasing lock... [2025-03-08 22:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:33:20] Production.INFO: 38 MB #Memory Used# [2025-03-08 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:34:05 [end_date_ymd] => 2025-03-08 22:34:05 [RateCDR] => 1 ) [2025-03-08 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:34:05' and `end` < '2025-03-08 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:34:17] Production.INFO: count ==1327 [2025-03-08 22:34:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:34:05 - End Time 2025-03-08 22:34:05 [2025-03-08 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638235', 'tblTempUsageDetail_20' ) start [2025-03-08 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638235', 'tblTempUsageDetail_20' ) end [2025-03-08 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638235', 'tblTempVendorCDR_20' ) start [2025-03-08 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638235', 'tblTempVendorCDR_20' ) end [2025-03-08 22:34:17] Production.INFO: ProcessCDR(1,14638235,1,1,2) [2025-03-08 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638235', 'tblTempUsageDetail_20' ) start [2025-03-08 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638235', 'tblTempUsageDetail_20' ) end [2025-03-08 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:34:21] Production.INFO: ==18224== Releasing lock... [2025-03-08 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:34:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 22:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:35:04 [end_date_ymd] => 2025-03-08 22:35:04 [RateCDR] => 1 ) [2025-03-08 22:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:35:04' and `end` < '2025-03-08 22:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:35:16] Production.INFO: count ==1323 [2025-03-08 22:35:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:35:04 - End Time 2025-03-08 22:35:04 [2025-03-08 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638240', 'tblTempUsageDetail_20' ) start [2025-03-08 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638240', 'tblTempUsageDetail_20' ) end [2025-03-08 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638240', 'tblTempVendorCDR_20' ) start [2025-03-08 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638240', 'tblTempVendorCDR_20' ) end [2025-03-08 22:35:17] Production.INFO: ProcessCDR(1,14638240,1,1,2) [2025-03-08 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638240', 'tblTempUsageDetail_20' ) start [2025-03-08 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638240', 'tblTempUsageDetail_20' ) end [2025-03-08 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:35:21] Production.INFO: ==18295== Releasing lock... [2025-03-08 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:35:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:36:05 [end_date_ymd] => 2025-03-08 22:36:05 [RateCDR] => 1 ) [2025-03-08 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:36:05' and `end` < '2025-03-08 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:36:17] Production.INFO: count ==1323 [2025-03-08 22:36:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:36:05 - End Time 2025-03-08 22:36:05 [2025-03-08 22:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638245', 'tblTempUsageDetail_20' ) start [2025-03-08 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638245', 'tblTempUsageDetail_20' ) end [2025-03-08 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638245', 'tblTempVendorCDR_20' ) start [2025-03-08 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638245', 'tblTempVendorCDR_20' ) end [2025-03-08 22:36:17] Production.INFO: ProcessCDR(1,14638245,1,1,2) [2025-03-08 22:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638245', 'tblTempUsageDetail_20' ) start [2025-03-08 22:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638245', 'tblTempUsageDetail_20' ) end [2025-03-08 22:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:36:20] Production.INFO: ==18370== Releasing lock... [2025-03-08 22:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:36:20] Production.INFO: 38 MB #Memory Used# [2025-03-08 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:37:05 [end_date_ymd] => 2025-03-08 22:37:05 [RateCDR] => 1 ) [2025-03-08 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:37:05' and `end` < '2025-03-08 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:37:17] Production.INFO: count ==1315 [2025-03-08 22:37:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:37:05 - End Time 2025-03-08 22:37:05 [2025-03-08 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638250', 'tblTempUsageDetail_20' ) start [2025-03-08 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638250', 'tblTempUsageDetail_20' ) end [2025-03-08 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638250', 'tblTempVendorCDR_20' ) start [2025-03-08 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638250', 'tblTempVendorCDR_20' ) end [2025-03-08 22:37:17] Production.INFO: ProcessCDR(1,14638250,1,1,2) [2025-03-08 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638250', 'tblTempUsageDetail_20' ) start [2025-03-08 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638250', 'tblTempUsageDetail_20' ) end [2025-03-08 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:37:21] Production.INFO: ==18441== Releasing lock... [2025-03-08 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:37:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:38:05 [end_date_ymd] => 2025-03-08 22:38:05 [RateCDR] => 1 ) [2025-03-08 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:38:05' and `end` < '2025-03-08 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:38:17] Production.INFO: count ==1311 [2025-03-08 22:38:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:38:05 - End Time 2025-03-08 22:38:05 [2025-03-08 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638255', 'tblTempUsageDetail_20' ) start [2025-03-08 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638255', 'tblTempUsageDetail_20' ) end [2025-03-08 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638255', 'tblTempVendorCDR_20' ) start [2025-03-08 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638255', 'tblTempVendorCDR_20' ) end [2025-03-08 22:38:18] Production.INFO: ProcessCDR(1,14638255,1,1,2) [2025-03-08 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638255', 'tblTempUsageDetail_20' ) start [2025-03-08 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638255', 'tblTempUsageDetail_20' ) end [2025-03-08 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:38:21] Production.INFO: ==18552== Releasing lock... [2025-03-08 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:38:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:39:05 [end_date_ymd] => 2025-03-08 22:39:05 [RateCDR] => 1 ) [2025-03-08 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:39:05' and `end` < '2025-03-08 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:39:17] Production.INFO: count ==1313 [2025-03-08 22:39:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:39:05 - End Time 2025-03-08 22:39:05 [2025-03-08 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638260', 'tblTempUsageDetail_20' ) start [2025-03-08 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638260', 'tblTempUsageDetail_20' ) end [2025-03-08 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638260', 'tblTempVendorCDR_20' ) start [2025-03-08 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638260', 'tblTempVendorCDR_20' ) end [2025-03-08 22:39:17] Production.INFO: ProcessCDR(1,14638260,1,1,2) [2025-03-08 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638260', 'tblTempUsageDetail_20' ) start [2025-03-08 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638260', 'tblTempUsageDetail_20' ) end [2025-03-08 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:39:21] Production.INFO: ==18623== Releasing lock... [2025-03-08 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:39:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:40:05 [end_date_ymd] => 2025-03-08 22:40:05 [RateCDR] => 1 ) [2025-03-08 22:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:40:05' and `end` < '2025-03-08 22:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:40:18] Production.INFO: count ==1315 [2025-03-08 22:40:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:40:05 - End Time 2025-03-08 22:40:05 [2025-03-08 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638266', 'tblTempUsageDetail_20' ) start [2025-03-08 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638266', 'tblTempUsageDetail_20' ) end [2025-03-08 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638266', 'tblTempVendorCDR_20' ) start [2025-03-08 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638266', 'tblTempVendorCDR_20' ) end [2025-03-08 22:40:18] Production.INFO: ProcessCDR(1,14638266,1,1,2) [2025-03-08 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638266', 'tblTempUsageDetail_20' ) start [2025-03-08 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638266', 'tblTempUsageDetail_20' ) end [2025-03-08 22:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:40:21] Production.INFO: ==18699== Releasing lock... [2025-03-08 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:40:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:41:05 [end_date_ymd] => 2025-03-08 22:41:05 [RateCDR] => 1 ) [2025-03-08 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:41:05' and `end` < '2025-03-08 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:41:17] Production.INFO: count ==1334 [2025-03-08 22:41:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:41:05 - End Time 2025-03-08 22:41:05 [2025-03-08 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638271', 'tblTempUsageDetail_20' ) start [2025-03-08 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638271', 'tblTempUsageDetail_20' ) end [2025-03-08 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638271', 'tblTempVendorCDR_20' ) start [2025-03-08 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638271', 'tblTempVendorCDR_20' ) end [2025-03-08 22:41:17] Production.INFO: ProcessCDR(1,14638271,1,1,2) [2025-03-08 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638271', 'tblTempUsageDetail_20' ) start [2025-03-08 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638271', 'tblTempUsageDetail_20' ) end [2025-03-08 22:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:41:21] Production.INFO: ==18775== Releasing lock... [2025-03-08 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:41:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:42:05 [end_date_ymd] => 2025-03-08 22:42:05 [RateCDR] => 1 ) [2025-03-08 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:42:05' and `end` < '2025-03-08 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:42:17] Production.INFO: count ==1334 [2025-03-08 22:42:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:42:05 - End Time 2025-03-08 22:42:05 [2025-03-08 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638276', 'tblTempUsageDetail_20' ) start [2025-03-08 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638276', 'tblTempUsageDetail_20' ) end [2025-03-08 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638276', 'tblTempVendorCDR_20' ) start [2025-03-08 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638276', 'tblTempVendorCDR_20' ) end [2025-03-08 22:42:17] Production.INFO: ProcessCDR(1,14638276,1,1,2) [2025-03-08 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638276', 'tblTempUsageDetail_20' ) start [2025-03-08 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638276', 'tblTempUsageDetail_20' ) end [2025-03-08 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:42:22] Production.INFO: ==18848== Releasing lock... [2025-03-08 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:42:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 22:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:43:04 [end_date_ymd] => 2025-03-08 22:43:04 [RateCDR] => 1 ) [2025-03-08 22:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:43:04' and `end` < '2025-03-08 22:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:43:17] Production.INFO: count ==1334 [2025-03-08 22:43:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:43:04 - End Time 2025-03-08 22:43:04 [2025-03-08 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638281', 'tblTempUsageDetail_20' ) start [2025-03-08 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638281', 'tblTempUsageDetail_20' ) end [2025-03-08 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638281', 'tblTempVendorCDR_20' ) start [2025-03-08 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638281', 'tblTempVendorCDR_20' ) end [2025-03-08 22:43:17] Production.INFO: ProcessCDR(1,14638281,1,1,2) [2025-03-08 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638281', 'tblTempUsageDetail_20' ) start [2025-03-08 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638281', 'tblTempUsageDetail_20' ) end [2025-03-08 22:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:43:20] Production.INFO: ==18918== Releasing lock... [2025-03-08 22:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:43:20] Production.INFO: 38 MB #Memory Used# [2025-03-08 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:44:05 [end_date_ymd] => 2025-03-08 22:44:05 [RateCDR] => 1 ) [2025-03-08 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:44:05' and `end` < '2025-03-08 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:44:18] Production.INFO: count ==1333 [2025-03-08 22:44:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:44:05 - End Time 2025-03-08 22:44:05 [2025-03-08 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638286', 'tblTempUsageDetail_20' ) start [2025-03-08 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638286', 'tblTempUsageDetail_20' ) end [2025-03-08 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638286', 'tblTempVendorCDR_20' ) start [2025-03-08 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638286', 'tblTempVendorCDR_20' ) end [2025-03-08 22:44:18] Production.INFO: ProcessCDR(1,14638286,1,1,2) [2025-03-08 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638286', 'tblTempUsageDetail_20' ) start [2025-03-08 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638286', 'tblTempUsageDetail_20' ) end [2025-03-08 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:44:22] Production.INFO: ==18991== Releasing lock... [2025-03-08 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:44:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 22:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:45:06 [end_date_ymd] => 2025-03-08 22:45:06 [RateCDR] => 1 ) [2025-03-08 22:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:45:06' and `end` < '2025-03-08 22:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:45:18] Production.INFO: count ==1334 [2025-03-08 22:45:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:45:06 - End Time 2025-03-08 22:45:06 [2025-03-08 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638291', 'tblTempUsageDetail_20' ) start [2025-03-08 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638291', 'tblTempUsageDetail_20' ) end [2025-03-08 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638291', 'tblTempVendorCDR_20' ) start [2025-03-08 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638291', 'tblTempVendorCDR_20' ) end [2025-03-08 22:45:18] Production.INFO: ProcessCDR(1,14638291,1,1,2) [2025-03-08 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638291', 'tblTempUsageDetail_20' ) start [2025-03-08 22:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638291', 'tblTempUsageDetail_20' ) end [2025-03-08 22:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:45:23] Production.INFO: ==19070== Releasing lock... [2025-03-08 22:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:45:23] Production.INFO: 38 MB #Memory Used# [2025-03-08 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:46:05 [end_date_ymd] => 2025-03-08 22:46:05 [RateCDR] => 1 ) [2025-03-08 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:46:05' and `end` < '2025-03-08 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:46:17] Production.INFO: count ==1333 [2025-03-08 22:46:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:46:05 - End Time 2025-03-08 22:46:05 [2025-03-08 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638296', 'tblTempUsageDetail_20' ) start [2025-03-08 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638296', 'tblTempUsageDetail_20' ) end [2025-03-08 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638296', 'tblTempVendorCDR_20' ) start [2025-03-08 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638296', 'tblTempVendorCDR_20' ) end [2025-03-08 22:46:18] Production.INFO: ProcessCDR(1,14638296,1,1,2) [2025-03-08 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638296', 'tblTempUsageDetail_20' ) start [2025-03-08 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638296', 'tblTempUsageDetail_20' ) end [2025-03-08 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:46:21] Production.INFO: ==19147== Releasing lock... [2025-03-08 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:46:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 22:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:47:06 [end_date_ymd] => 2025-03-08 22:47:06 [RateCDR] => 1 ) [2025-03-08 22:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:47:06' and `end` < '2025-03-08 22:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:47:18] Production.INFO: count ==1330 [2025-03-08 22:47:19] Production.ERROR: pbx CDR StartTime 2025-03-08 19:47:06 - End Time 2025-03-08 22:47:06 [2025-03-08 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638301', 'tblTempUsageDetail_20' ) start [2025-03-08 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638301', 'tblTempUsageDetail_20' ) end [2025-03-08 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638301', 'tblTempVendorCDR_20' ) start [2025-03-08 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638301', 'tblTempVendorCDR_20' ) end [2025-03-08 22:47:19] Production.INFO: ProcessCDR(1,14638301,1,1,2) [2025-03-08 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638301', 'tblTempUsageDetail_20' ) start [2025-03-08 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638301', 'tblTempUsageDetail_20' ) end [2025-03-08 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:47:22] Production.INFO: ==19225== Releasing lock... [2025-03-08 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:47:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:48:05 [end_date_ymd] => 2025-03-08 22:48:05 [RateCDR] => 1 ) [2025-03-08 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:48:05' and `end` < '2025-03-08 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:48:17] Production.INFO: count ==1331 [2025-03-08 22:48:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:48:05 - End Time 2025-03-08 22:48:05 [2025-03-08 22:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638306', 'tblTempUsageDetail_20' ) start [2025-03-08 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638306', 'tblTempUsageDetail_20' ) end [2025-03-08 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638306', 'tblTempVendorCDR_20' ) start [2025-03-08 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638306', 'tblTempVendorCDR_20' ) end [2025-03-08 22:48:17] Production.INFO: ProcessCDR(1,14638306,1,1,2) [2025-03-08 22:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638306', 'tblTempUsageDetail_20' ) start [2025-03-08 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638306', 'tblTempUsageDetail_20' ) end [2025-03-08 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:48:22] Production.INFO: ==19300== Releasing lock... [2025-03-08 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:48:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:49:05 [end_date_ymd] => 2025-03-08 22:49:05 [RateCDR] => 1 ) [2025-03-08 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:49:05' and `end` < '2025-03-08 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:49:17] Production.INFO: count ==1331 [2025-03-08 22:49:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:49:05 - End Time 2025-03-08 22:49:05 [2025-03-08 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638311', 'tblTempUsageDetail_20' ) start [2025-03-08 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638311', 'tblTempUsageDetail_20' ) end [2025-03-08 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638311', 'tblTempVendorCDR_20' ) start [2025-03-08 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638311', 'tblTempVendorCDR_20' ) end [2025-03-08 22:49:18] Production.INFO: ProcessCDR(1,14638311,1,1,2) [2025-03-08 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638311', 'tblTempUsageDetail_20' ) start [2025-03-08 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638311', 'tblTempUsageDetail_20' ) end [2025-03-08 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:49:21] Production.INFO: ==19371== Releasing lock... [2025-03-08 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:49:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:50:05 [end_date_ymd] => 2025-03-08 22:50:05 [RateCDR] => 1 ) [2025-03-08 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:50:05' and `end` < '2025-03-08 22:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:50:18] Production.INFO: count ==1327 [2025-03-08 22:50:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:50:05 - End Time 2025-03-08 22:50:05 [2025-03-08 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638317', 'tblTempUsageDetail_20' ) start [2025-03-08 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638317', 'tblTempUsageDetail_20' ) end [2025-03-08 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638317', 'tblTempVendorCDR_20' ) start [2025-03-08 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638317', 'tblTempVendorCDR_20' ) end [2025-03-08 22:50:18] Production.INFO: ProcessCDR(1,14638317,1,1,2) [2025-03-08 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638317', 'tblTempUsageDetail_20' ) start [2025-03-08 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638317', 'tblTempUsageDetail_20' ) end [2025-03-08 22:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:50:21] Production.INFO: ==19444== Releasing lock... [2025-03-08 22:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:50:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:51:05 [end_date_ymd] => 2025-03-08 22:51:05 [RateCDR] => 1 ) [2025-03-08 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:51:05' and `end` < '2025-03-08 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:51:17] Production.INFO: count ==1334 [2025-03-08 22:51:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:51:05 - End Time 2025-03-08 22:51:05 [2025-03-08 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638322', 'tblTempUsageDetail_20' ) start [2025-03-08 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638322', 'tblTempUsageDetail_20' ) end [2025-03-08 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638322', 'tblTempVendorCDR_20' ) start [2025-03-08 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638322', 'tblTempVendorCDR_20' ) end [2025-03-08 22:51:18] Production.INFO: ProcessCDR(1,14638322,1,1,2) [2025-03-08 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638322', 'tblTempUsageDetail_20' ) start [2025-03-08 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638322', 'tblTempUsageDetail_20' ) end [2025-03-08 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:51:21] Production.INFO: ==19517== Releasing lock... [2025-03-08 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:51:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 22:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:52:04 [end_date_ymd] => 2025-03-08 22:52:04 [RateCDR] => 1 ) [2025-03-08 22:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:52:04' and `end` < '2025-03-08 22:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:52:17] Production.INFO: count ==1340 [2025-03-08 22:52:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:52:04 - End Time 2025-03-08 22:52:04 [2025-03-08 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638327', 'tblTempUsageDetail_20' ) start [2025-03-08 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638327', 'tblTempUsageDetail_20' ) end [2025-03-08 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638327', 'tblTempVendorCDR_20' ) start [2025-03-08 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638327', 'tblTempVendorCDR_20' ) end [2025-03-08 22:52:17] Production.INFO: ProcessCDR(1,14638327,1,1,2) [2025-03-08 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638327', 'tblTempUsageDetail_20' ) start [2025-03-08 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638327', 'tblTempUsageDetail_20' ) end [2025-03-08 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:52:21] Production.INFO: ==19585== Releasing lock... [2025-03-08 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:52:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:53:05 [end_date_ymd] => 2025-03-08 22:53:05 [RateCDR] => 1 ) [2025-03-08 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:53:05' and `end` < '2025-03-08 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:53:17] Production.INFO: count ==1341 [2025-03-08 22:53:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:53:05 - End Time 2025-03-08 22:53:05 [2025-03-08 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638332', 'tblTempUsageDetail_20' ) start [2025-03-08 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638332', 'tblTempUsageDetail_20' ) end [2025-03-08 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638332', 'tblTempVendorCDR_20' ) start [2025-03-08 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638332', 'tblTempVendorCDR_20' ) end [2025-03-08 22:53:17] Production.INFO: ProcessCDR(1,14638332,1,1,2) [2025-03-08 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638332', 'tblTempUsageDetail_20' ) start [2025-03-08 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638332', 'tblTempUsageDetail_20' ) end [2025-03-08 22:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:53:20] Production.INFO: ==19703== Releasing lock... [2025-03-08 22:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:53:20] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:54:05 [end_date_ymd] => 2025-03-08 22:54:05 [RateCDR] => 1 ) [2025-03-08 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:54:05' and `end` < '2025-03-08 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:54:17] Production.INFO: count ==1333 [2025-03-08 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:54:05 - End Time 2025-03-08 22:54:05 [2025-03-08 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638337', 'tblTempUsageDetail_20' ) start [2025-03-08 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638337', 'tblTempUsageDetail_20' ) end [2025-03-08 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638337', 'tblTempVendorCDR_20' ) start [2025-03-08 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638337', 'tblTempVendorCDR_20' ) end [2025-03-08 22:54:18] Production.INFO: ProcessCDR(1,14638337,1,1,2) [2025-03-08 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638337', 'tblTempUsageDetail_20' ) start [2025-03-08 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638337', 'tblTempUsageDetail_20' ) end [2025-03-08 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:54:21] Production.INFO: ==19776== Releasing lock... [2025-03-08 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:54:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:55:05 [end_date_ymd] => 2025-03-08 22:55:05 [RateCDR] => 1 ) [2025-03-08 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:55:05' and `end` < '2025-03-08 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:55:17] Production.INFO: count ==1328 [2025-03-08 22:55:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:55:05 - End Time 2025-03-08 22:55:05 [2025-03-08 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638342', 'tblTempUsageDetail_20' ) start [2025-03-08 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638342', 'tblTempUsageDetail_20' ) end [2025-03-08 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638342', 'tblTempVendorCDR_20' ) start [2025-03-08 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638342', 'tblTempVendorCDR_20' ) end [2025-03-08 22:55:17] Production.INFO: ProcessCDR(1,14638342,1,1,2) [2025-03-08 22:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638342', 'tblTempUsageDetail_20' ) start [2025-03-08 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638342', 'tblTempUsageDetail_20' ) end [2025-03-08 22:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:55:20] Production.INFO: ==19846== Releasing lock... [2025-03-08 22:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:55:20] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:56:05 [end_date_ymd] => 2025-03-08 22:56:05 [RateCDR] => 1 ) [2025-03-08 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:56:05' and `end` < '2025-03-08 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:56:18] Production.INFO: count ==1329 [2025-03-08 22:56:18] Production.ERROR: pbx CDR StartTime 2025-03-08 19:56:05 - End Time 2025-03-08 22:56:05 [2025-03-08 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638347', 'tblTempUsageDetail_20' ) start [2025-03-08 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638347', 'tblTempUsageDetail_20' ) end [2025-03-08 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638347', 'tblTempVendorCDR_20' ) start [2025-03-08 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638347', 'tblTempVendorCDR_20' ) end [2025-03-08 22:56:18] Production.INFO: ProcessCDR(1,14638347,1,1,2) [2025-03-08 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638347', 'tblTempUsageDetail_20' ) start [2025-03-08 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638347', 'tblTempUsageDetail_20' ) end [2025-03-08 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:56:21] Production.INFO: ==19925== Releasing lock... [2025-03-08 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:56:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-08 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:57:05 [end_date_ymd] => 2025-03-08 22:57:05 [RateCDR] => 1 ) [2025-03-08 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:57:05' and `end` < '2025-03-08 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:57:17] Production.INFO: count ==1325 [2025-03-08 22:57:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:57:05 - End Time 2025-03-08 22:57:05 [2025-03-08 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638352', 'tblTempUsageDetail_20' ) start [2025-03-08 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638352', 'tblTempUsageDetail_20' ) end [2025-03-08 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638352', 'tblTempVendorCDR_20' ) start [2025-03-08 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638352', 'tblTempVendorCDR_20' ) end [2025-03-08 22:57:17] Production.INFO: ProcessCDR(1,14638352,1,1,2) [2025-03-08 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638352', 'tblTempUsageDetail_20' ) start [2025-03-08 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638352', 'tblTempUsageDetail_20' ) end [2025-03-08 22:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:57:20] Production.INFO: ==19997== Releasing lock... [2025-03-08 22:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:57:20] Production.INFO: 38 MB #Memory Used# [2025-03-08 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:58:05 [end_date_ymd] => 2025-03-08 22:58:05 [RateCDR] => 1 ) [2025-03-08 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:58:05' and `end` < '2025-03-08 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:58:17] Production.INFO: count ==1317 [2025-03-08 22:58:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:58:05 - End Time 2025-03-08 22:58:05 [2025-03-08 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638357', 'tblTempUsageDetail_20' ) start [2025-03-08 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638357', 'tblTempUsageDetail_20' ) end [2025-03-08 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638357', 'tblTempVendorCDR_20' ) start [2025-03-08 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638357', 'tblTempVendorCDR_20' ) end [2025-03-08 22:58:17] Production.INFO: ProcessCDR(1,14638357,1,1,2) [2025-03-08 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638357', 'tblTempUsageDetail_20' ) start [2025-03-08 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638357', 'tblTempUsageDetail_20' ) end [2025-03-08 22:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:58:20] Production.INFO: ==20067== Releasing lock... [2025-03-08 22:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:58:20] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 19:59:05 [end_date_ymd] => 2025-03-08 22:59:05 [RateCDR] => 1 ) [2025-03-08 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 19:59:05' and `end` < '2025-03-08 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 22:59:17] Production.INFO: count ==1318 [2025-03-08 22:59:17] Production.ERROR: pbx CDR StartTime 2025-03-08 19:59:05 - End Time 2025-03-08 22:59:05 [2025-03-08 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638362', 'tblTempUsageDetail_20' ) start [2025-03-08 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638362', 'tblTempUsageDetail_20' ) end [2025-03-08 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638362', 'tblTempVendorCDR_20' ) start [2025-03-08 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638362', 'tblTempVendorCDR_20' ) end [2025-03-08 22:59:17] Production.INFO: ProcessCDR(1,14638362,1,1,2) [2025-03-08 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 22:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638362', 'tblTempUsageDetail_20' ) start [2025-03-08 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638362', 'tblTempUsageDetail_20' ) end [2025-03-08 22:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 22:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 22:59:20] Production.INFO: ==20141== Releasing lock... [2025-03-08 22:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 22:59:20] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:00:06 [end_date_ymd] => 2025-03-08 23:00:06 [RateCDR] => 1 ) [2025-03-08 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:00:06' and `end` < '2025-03-08 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:00:18] Production.INFO: count ==1316 [2025-03-08 23:00:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:00:06 - End Time 2025-03-08 23:00:06 [2025-03-08 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638368', 'tblTempUsageDetail_20' ) start [2025-03-08 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638368', 'tblTempUsageDetail_20' ) end [2025-03-08 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638368', 'tblTempVendorCDR_20' ) start [2025-03-08 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638368', 'tblTempVendorCDR_20' ) end [2025-03-08 23:00:18] Production.INFO: ProcessCDR(1,14638368,1,1,2) [2025-03-08 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638368', 'tblTempUsageDetail_20' ) start [2025-03-08 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638368', 'tblTempUsageDetail_20' ) end [2025-03-08 23:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:00:21] Production.INFO: ==20216== Releasing lock... [2025-03-08 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:00:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:01:05 [end_date_ymd] => 2025-03-08 23:01:05 [RateCDR] => 1 ) [2025-03-08 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:01:05' and `end` < '2025-03-08 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:01:18] Production.INFO: count ==1288 [2025-03-08 23:01:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:01:05 - End Time 2025-03-08 23:01:05 [2025-03-08 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638373', 'tblTempUsageDetail_20' ) start [2025-03-08 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638373', 'tblTempUsageDetail_20' ) end [2025-03-08 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638373', 'tblTempVendorCDR_20' ) start [2025-03-08 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638373', 'tblTempVendorCDR_20' ) end [2025-03-08 23:01:18] Production.INFO: ProcessCDR(1,14638373,1,1,2) [2025-03-08 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638373', 'tblTempUsageDetail_20' ) start [2025-03-08 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638373', 'tblTempUsageDetail_20' ) end [2025-03-08 23:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:01:23] Production.INFO: ==20380== Releasing lock... [2025-03-08 23:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:01:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:02:05 [end_date_ymd] => 2025-03-08 23:02:05 [RateCDR] => 1 ) [2025-03-08 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:02:05' and `end` < '2025-03-08 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:02:17] Production.INFO: count ==1289 [2025-03-08 23:02:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:02:05 - End Time 2025-03-08 23:02:05 [2025-03-08 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638378', 'tblTempUsageDetail_20' ) start [2025-03-08 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638378', 'tblTempUsageDetail_20' ) end [2025-03-08 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638378', 'tblTempVendorCDR_20' ) start [2025-03-08 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638378', 'tblTempVendorCDR_20' ) end [2025-03-08 23:02:17] Production.INFO: ProcessCDR(1,14638378,1,1,2) [2025-03-08 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638378', 'tblTempUsageDetail_20' ) start [2025-03-08 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638378', 'tblTempUsageDetail_20' ) end [2025-03-08 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:02:21] Production.INFO: ==20455== Releasing lock... [2025-03-08 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:02:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:03:05 [end_date_ymd] => 2025-03-08 23:03:05 [RateCDR] => 1 ) [2025-03-08 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:03:05' and `end` < '2025-03-08 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:03:17] Production.INFO: count ==1289 [2025-03-08 23:03:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:03:05 - End Time 2025-03-08 23:03:05 [2025-03-08 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638383', 'tblTempUsageDetail_20' ) start [2025-03-08 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638383', 'tblTempUsageDetail_20' ) end [2025-03-08 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638383', 'tblTempVendorCDR_20' ) start [2025-03-08 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638383', 'tblTempVendorCDR_20' ) end [2025-03-08 23:03:18] Production.INFO: ProcessCDR(1,14638383,1,1,2) [2025-03-08 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638383', 'tblTempUsageDetail_20' ) start [2025-03-08 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638383', 'tblTempUsageDetail_20' ) end [2025-03-08 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:03:22] Production.INFO: ==20530== Releasing lock... [2025-03-08 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:03:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:04:05 [end_date_ymd] => 2025-03-08 23:04:05 [RateCDR] => 1 ) [2025-03-08 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:04:05' and `end` < '2025-03-08 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:04:17] Production.INFO: count ==1292 [2025-03-08 23:04:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:04:05 - End Time 2025-03-08 23:04:05 [2025-03-08 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638388', 'tblTempUsageDetail_20' ) start [2025-03-08 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638388', 'tblTempUsageDetail_20' ) end [2025-03-08 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638388', 'tblTempVendorCDR_20' ) start [2025-03-08 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638388', 'tblTempVendorCDR_20' ) end [2025-03-08 23:04:17] Production.INFO: ProcessCDR(1,14638388,1,1,2) [2025-03-08 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638388', 'tblTempUsageDetail_20' ) start [2025-03-08 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638388', 'tblTempUsageDetail_20' ) end [2025-03-08 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:04:22] Production.INFO: ==20610== Releasing lock... [2025-03-08 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:04:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:05:06 [end_date_ymd] => 2025-03-08 23:05:06 [RateCDR] => 1 ) [2025-03-08 23:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:05:06' and `end` < '2025-03-08 23:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:05:18] Production.INFO: count ==1289 [2025-03-08 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:05:06 - End Time 2025-03-08 23:05:06 [2025-03-08 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638393', 'tblTempUsageDetail_20' ) start [2025-03-08 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638393', 'tblTempUsageDetail_20' ) end [2025-03-08 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638393', 'tblTempVendorCDR_20' ) start [2025-03-08 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638393', 'tblTempVendorCDR_20' ) end [2025-03-08 23:05:18] Production.INFO: ProcessCDR(1,14638393,1,1,2) [2025-03-08 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638393', 'tblTempUsageDetail_20' ) start [2025-03-08 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638393', 'tblTempUsageDetail_20' ) end [2025-03-08 23:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:05:23] Production.INFO: ==20761== Releasing lock... [2025-03-08 23:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:05:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 23:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:06:04 [end_date_ymd] => 2025-03-08 23:06:04 [RateCDR] => 1 ) [2025-03-08 23:06: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-03-08 20:06:04' and `end` < '2025-03-08 23:06: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-03-08 23:06:17] Production.INFO: count ==1297 [2025-03-08 23:06:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:06:04 - End Time 2025-03-08 23:06:04 [2025-03-08 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638398', 'tblTempUsageDetail_20' ) start [2025-03-08 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638398', 'tblTempUsageDetail_20' ) end [2025-03-08 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638398', 'tblTempVendorCDR_20' ) start [2025-03-08 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638398', 'tblTempVendorCDR_20' ) end [2025-03-08 23:06:17] Production.INFO: ProcessCDR(1,14638398,1,1,2) [2025-03-08 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638398', 'tblTempUsageDetail_20' ) start [2025-03-08 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638398', 'tblTempUsageDetail_20' ) end [2025-03-08 23:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:06:20] Production.INFO: ==20835== Releasing lock... [2025-03-08 23:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:06:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:07:04 [end_date_ymd] => 2025-03-08 23:07:04 [RateCDR] => 1 ) [2025-03-08 23:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:07:04' and `end` < '2025-03-08 23:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:07:16] Production.INFO: count ==1297 [2025-03-08 23:07:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:07:04 - End Time 2025-03-08 23:07:04 [2025-03-08 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638402', 'tblTempUsageDetail_20' ) start [2025-03-08 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638402', 'tblTempUsageDetail_20' ) end [2025-03-08 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638402', 'tblTempVendorCDR_20' ) start [2025-03-08 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638402', 'tblTempVendorCDR_20' ) end [2025-03-08 23:07:17] Production.INFO: ProcessCDR(1,14638402,1,1,2) [2025-03-08 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638402', 'tblTempUsageDetail_20' ) start [2025-03-08 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638402', 'tblTempUsageDetail_20' ) end [2025-03-08 23:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:07:20] Production.INFO: ==20908== Releasing lock... [2025-03-08 23:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:07:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:08:05 [end_date_ymd] => 2025-03-08 23:08:05 [RateCDR] => 1 ) [2025-03-08 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:08:05' and `end` < '2025-03-08 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:08:17] Production.INFO: count ==1296 [2025-03-08 23:08:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:08:05 - End Time 2025-03-08 23:08:05 [2025-03-08 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638408', 'tblTempUsageDetail_20' ) start [2025-03-08 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638408', 'tblTempUsageDetail_20' ) end [2025-03-08 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638408', 'tblTempVendorCDR_20' ) start [2025-03-08 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638408', 'tblTempVendorCDR_20' ) end [2025-03-08 23:08:17] Production.INFO: ProcessCDR(1,14638408,1,1,2) [2025-03-08 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638408', 'tblTempUsageDetail_20' ) start [2025-03-08 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638408', 'tblTempUsageDetail_20' ) end [2025-03-08 23:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:08:20] Production.INFO: ==21063== Releasing lock... [2025-03-08 23:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:08:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:09:05 [end_date_ymd] => 2025-03-08 23:09:05 [RateCDR] => 1 ) [2025-03-08 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:09:05' and `end` < '2025-03-08 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:09:17] Production.INFO: count ==1297 [2025-03-08 23:09:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:09:05 - End Time 2025-03-08 23:09:05 [2025-03-08 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638413', 'tblTempUsageDetail_20' ) start [2025-03-08 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638413', 'tblTempUsageDetail_20' ) end [2025-03-08 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638413', 'tblTempVendorCDR_20' ) start [2025-03-08 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638413', 'tblTempVendorCDR_20' ) end [2025-03-08 23:09:17] Production.INFO: ProcessCDR(1,14638413,1,1,2) [2025-03-08 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638413', 'tblTempUsageDetail_20' ) start [2025-03-08 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638413', 'tblTempUsageDetail_20' ) end [2025-03-08 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:09:22] Production.INFO: ==21171== Releasing lock... [2025-03-08 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:09:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:10:06 [end_date_ymd] => 2025-03-08 23:10:06 [RateCDR] => 1 ) [2025-03-08 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:10:06' and `end` < '2025-03-08 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:10:18] Production.INFO: count ==1294 [2025-03-08 23:10:19] Production.ERROR: pbx CDR StartTime 2025-03-08 20:10:06 - End Time 2025-03-08 23:10:06 [2025-03-08 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638419', 'tblTempUsageDetail_20' ) start [2025-03-08 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638419', 'tblTempUsageDetail_20' ) end [2025-03-08 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638419', 'tblTempVendorCDR_20' ) start [2025-03-08 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638419', 'tblTempVendorCDR_20' ) end [2025-03-08 23:10:19] Production.INFO: ProcessCDR(1,14638419,1,1,2) [2025-03-08 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638419', 'tblTempUsageDetail_20' ) start [2025-03-08 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638419', 'tblTempUsageDetail_20' ) end [2025-03-08 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:10:22] Production.INFO: ==21246== Releasing lock... [2025-03-08 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:10:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:11:05 [end_date_ymd] => 2025-03-08 23:11:05 [RateCDR] => 1 ) [2025-03-08 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:11:05' and `end` < '2025-03-08 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:11:17] Production.INFO: count ==1285 [2025-03-08 23:11:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:11:05 - End Time 2025-03-08 23:11:05 [2025-03-08 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638424', 'tblTempUsageDetail_20' ) start [2025-03-08 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638424', 'tblTempUsageDetail_20' ) end [2025-03-08 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638424', 'tblTempVendorCDR_20' ) start [2025-03-08 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638424', 'tblTempVendorCDR_20' ) end [2025-03-08 23:11:17] Production.INFO: ProcessCDR(1,14638424,1,1,2) [2025-03-08 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638424', 'tblTempUsageDetail_20' ) start [2025-03-08 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638424', 'tblTempUsageDetail_20' ) end [2025-03-08 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:11:22] Production.INFO: ==21321== Releasing lock... [2025-03-08 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:11:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:12:05 [end_date_ymd] => 2025-03-08 23:12:05 [RateCDR] => 1 ) [2025-03-08 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:12:05' and `end` < '2025-03-08 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:12:17] Production.INFO: count ==1282 [2025-03-08 23:12:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:12:05 - End Time 2025-03-08 23:12:05 [2025-03-08 23:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638429', 'tblTempUsageDetail_20' ) start [2025-03-08 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638429', 'tblTempUsageDetail_20' ) end [2025-03-08 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638429', 'tblTempVendorCDR_20' ) start [2025-03-08 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638429', 'tblTempVendorCDR_20' ) end [2025-03-08 23:12:17] Production.INFO: ProcessCDR(1,14638429,1,1,2) [2025-03-08 23:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638429', 'tblTempUsageDetail_20' ) start [2025-03-08 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638429', 'tblTempUsageDetail_20' ) end [2025-03-08 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:12:21] Production.INFO: ==21476== Releasing lock... [2025-03-08 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:12:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:13:05 [end_date_ymd] => 2025-03-08 23:13:05 [RateCDR] => 1 ) [2025-03-08 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:13:05' and `end` < '2025-03-08 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:13:17] Production.INFO: count ==1281 [2025-03-08 23:13:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:13:05 - End Time 2025-03-08 23:13:05 [2025-03-08 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638434', 'tblTempUsageDetail_20' ) start [2025-03-08 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638434', 'tblTempUsageDetail_20' ) end [2025-03-08 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638434', 'tblTempVendorCDR_20' ) start [2025-03-08 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638434', 'tblTempVendorCDR_20' ) end [2025-03-08 23:13:18] Production.INFO: ProcessCDR(1,14638434,1,1,2) [2025-03-08 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638434', 'tblTempUsageDetail_20' ) start [2025-03-08 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638434', 'tblTempUsageDetail_20' ) end [2025-03-08 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:13:21] Production.INFO: ==21555== Releasing lock... [2025-03-08 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:13:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:14:05 [end_date_ymd] => 2025-03-08 23:14:05 [RateCDR] => 1 ) [2025-03-08 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:14:05' and `end` < '2025-03-08 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:14:17] Production.INFO: count ==1281 [2025-03-08 23:14:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:14:05 - End Time 2025-03-08 23:14:05 [2025-03-08 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638439', 'tblTempUsageDetail_20' ) start [2025-03-08 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638439', 'tblTempUsageDetail_20' ) end [2025-03-08 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638439', 'tblTempVendorCDR_20' ) start [2025-03-08 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638439', 'tblTempVendorCDR_20' ) end [2025-03-08 23:14:18] Production.INFO: ProcessCDR(1,14638439,1,1,2) [2025-03-08 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638439', 'tblTempUsageDetail_20' ) start [2025-03-08 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638439', 'tblTempUsageDetail_20' ) end [2025-03-08 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:14:21] Production.INFO: ==21627== Releasing lock... [2025-03-08 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:14:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:15:04 [end_date_ymd] => 2025-03-08 23:15:04 [RateCDR] => 1 ) [2025-03-08 23:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:15:04' and `end` < '2025-03-08 23:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:15:17] Production.INFO: count ==1284 [2025-03-08 23:15:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:15:04 - End Time 2025-03-08 23:15:04 [2025-03-08 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638444', 'tblTempUsageDetail_20' ) start [2025-03-08 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638444', 'tblTempUsageDetail_20' ) end [2025-03-08 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638444', 'tblTempVendorCDR_20' ) start [2025-03-08 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638444', 'tblTempVendorCDR_20' ) end [2025-03-08 23:15:17] Production.INFO: ProcessCDR(1,14638444,1,1,2) [2025-03-08 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638444', 'tblTempUsageDetail_20' ) start [2025-03-08 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638444', 'tblTempUsageDetail_20' ) end [2025-03-08 23:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:15:20] Production.INFO: ==21781== Releasing lock... [2025-03-08 23:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:15:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:16:05 [end_date_ymd] => 2025-03-08 23:16:05 [RateCDR] => 1 ) [2025-03-08 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:16:05' and `end` < '2025-03-08 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:16:17] Production.INFO: count ==1280 [2025-03-08 23:16:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:16:05 - End Time 2025-03-08 23:16:05 [2025-03-08 23:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638449', 'tblTempUsageDetail_20' ) start [2025-03-08 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638449', 'tblTempUsageDetail_20' ) end [2025-03-08 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638449', 'tblTempVendorCDR_20' ) start [2025-03-08 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638449', 'tblTempVendorCDR_20' ) end [2025-03-08 23:16:17] Production.INFO: ProcessCDR(1,14638449,1,1,2) [2025-03-08 23:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638449', 'tblTempUsageDetail_20' ) start [2025-03-08 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638449', 'tblTempUsageDetail_20' ) end [2025-03-08 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:16:21] Production.INFO: ==21854== Releasing lock... [2025-03-08 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:16:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:17:05 [end_date_ymd] => 2025-03-08 23:17:05 [RateCDR] => 1 ) [2025-03-08 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:17:05' and `end` < '2025-03-08 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:17:18] Production.INFO: count ==1283 [2025-03-08 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:17:05 - End Time 2025-03-08 23:17:05 [2025-03-08 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638454', 'tblTempUsageDetail_20' ) start [2025-03-08 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638454', 'tblTempUsageDetail_20' ) end [2025-03-08 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638454', 'tblTempVendorCDR_20' ) start [2025-03-08 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638454', 'tblTempVendorCDR_20' ) end [2025-03-08 23:17:18] Production.INFO: ProcessCDR(1,14638454,1,1,2) [2025-03-08 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638454', 'tblTempUsageDetail_20' ) start [2025-03-08 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638454', 'tblTempUsageDetail_20' ) end [2025-03-08 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:17:21] Production.INFO: ==21926== Releasing lock... [2025-03-08 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:17:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:18:05 [end_date_ymd] => 2025-03-08 23:18:05 [RateCDR] => 1 ) [2025-03-08 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:18:05' and `end` < '2025-03-08 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:18:17] Production.INFO: count ==1281 [2025-03-08 23:18:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:18:05 - End Time 2025-03-08 23:18:05 [2025-03-08 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638459', 'tblTempUsageDetail_20' ) start [2025-03-08 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638459', 'tblTempUsageDetail_20' ) end [2025-03-08 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638459', 'tblTempVendorCDR_20' ) start [2025-03-08 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638459', 'tblTempVendorCDR_20' ) end [2025-03-08 23:18:17] Production.INFO: ProcessCDR(1,14638459,1,1,2) [2025-03-08 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638459', 'tblTempUsageDetail_20' ) start [2025-03-08 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638459', 'tblTempUsageDetail_20' ) end [2025-03-08 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:18:21] Production.INFO: ==22001== Releasing lock... [2025-03-08 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:18:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:19:06 [end_date_ymd] => 2025-03-08 23:19:06 [RateCDR] => 1 ) [2025-03-08 23:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:19:06' and `end` < '2025-03-08 23:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:19:18] Production.INFO: count ==1280 [2025-03-08 23:19:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:19:06 - End Time 2025-03-08 23:19:06 [2025-03-08 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638464', 'tblTempUsageDetail_20' ) start [2025-03-08 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638464', 'tblTempUsageDetail_20' ) end [2025-03-08 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638464', 'tblTempVendorCDR_20' ) start [2025-03-08 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638464', 'tblTempVendorCDR_20' ) end [2025-03-08 23:19:18] Production.INFO: ProcessCDR(1,14638464,1,1,2) [2025-03-08 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638464', 'tblTempUsageDetail_20' ) start [2025-03-08 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638464', 'tblTempUsageDetail_20' ) end [2025-03-08 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:19:22] Production.INFO: ==22075== Releasing lock... [2025-03-08 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:19:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:20:06 [end_date_ymd] => 2025-03-08 23:20:06 [RateCDR] => 1 ) [2025-03-08 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:20:06' and `end` < '2025-03-08 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:20:19] Production.INFO: count ==1280 [2025-03-08 23:20:19] Production.ERROR: pbx CDR StartTime 2025-03-08 20:20:06 - End Time 2025-03-08 23:20:06 [2025-03-08 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638470', 'tblTempUsageDetail_20' ) start [2025-03-08 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638470', 'tblTempUsageDetail_20' ) end [2025-03-08 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638470', 'tblTempVendorCDR_20' ) start [2025-03-08 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638470', 'tblTempVendorCDR_20' ) end [2025-03-08 23:20:19] Production.INFO: ProcessCDR(1,14638470,1,1,2) [2025-03-08 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638470', 'tblTempUsageDetail_20' ) start [2025-03-08 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638470', 'tblTempUsageDetail_20' ) end [2025-03-08 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:20:22] Production.INFO: ==22151== Releasing lock... [2025-03-08 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:20:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:21:05 [end_date_ymd] => 2025-03-08 23:21:05 [RateCDR] => 1 ) [2025-03-08 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:21:05' and `end` < '2025-03-08 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:21:17] Production.INFO: count ==1257 [2025-03-08 23:21:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:21:05 - End Time 2025-03-08 23:21:05 [2025-03-08 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638475', 'tblTempUsageDetail_20' ) start [2025-03-08 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638475', 'tblTempUsageDetail_20' ) end [2025-03-08 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638475', 'tblTempVendorCDR_20' ) start [2025-03-08 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638475', 'tblTempVendorCDR_20' ) end [2025-03-08 23:21:17] Production.INFO: ProcessCDR(1,14638475,1,1,2) [2025-03-08 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638475', 'tblTempUsageDetail_20' ) start [2025-03-08 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638475', 'tblTempUsageDetail_20' ) end [2025-03-08 23:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:21:21] Production.INFO: ==22224== Releasing lock... [2025-03-08 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:21:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:22:05 [end_date_ymd] => 2025-03-08 23:22:05 [RateCDR] => 1 ) [2025-03-08 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:22:05' and `end` < '2025-03-08 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:22:17] Production.INFO: count ==1254 [2025-03-08 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:22:05 - End Time 2025-03-08 23:22:05 [2025-03-08 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638480', 'tblTempUsageDetail_20' ) start [2025-03-08 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638480', 'tblTempUsageDetail_20' ) end [2025-03-08 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638480', 'tblTempVendorCDR_20' ) start [2025-03-08 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638480', 'tblTempVendorCDR_20' ) end [2025-03-08 23:22:18] Production.INFO: ProcessCDR(1,14638480,1,1,2) [2025-03-08 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638480', 'tblTempUsageDetail_20' ) start [2025-03-08 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638480', 'tblTempUsageDetail_20' ) end [2025-03-08 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:22:21] Production.INFO: ==22296== Releasing lock... [2025-03-08 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:22:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:23:04 [end_date_ymd] => 2025-03-08 23:23:04 [RateCDR] => 1 ) [2025-03-08 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:23:04' and `end` < '2025-03-08 23:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:23:17] Production.INFO: count ==1244 [2025-03-08 23:23:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:23:04 - End Time 2025-03-08 23:23:04 [2025-03-08 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638485', 'tblTempUsageDetail_20' ) start [2025-03-08 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638485', 'tblTempUsageDetail_20' ) end [2025-03-08 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638485', 'tblTempVendorCDR_20' ) start [2025-03-08 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638485', 'tblTempVendorCDR_20' ) end [2025-03-08 23:23:17] Production.INFO: ProcessCDR(1,14638485,1,1,2) [2025-03-08 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638485', 'tblTempUsageDetail_20' ) start [2025-03-08 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638485', 'tblTempUsageDetail_20' ) end [2025-03-08 23:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:23:20] Production.INFO: ==22374== Releasing lock... [2025-03-08 23:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:23:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:24:05 [end_date_ymd] => 2025-03-08 23:24:05 [RateCDR] => 1 ) [2025-03-08 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:24:05' and `end` < '2025-03-08 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:24:17] Production.INFO: count ==1245 [2025-03-08 23:24:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:24:05 - End Time 2025-03-08 23:24:05 [2025-03-08 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638490', 'tblTempUsageDetail_20' ) start [2025-03-08 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638490', 'tblTempUsageDetail_20' ) end [2025-03-08 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638490', 'tblTempVendorCDR_20' ) start [2025-03-08 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638490', 'tblTempVendorCDR_20' ) end [2025-03-08 23:24:17] Production.INFO: ProcessCDR(1,14638490,1,1,2) [2025-03-08 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638490', 'tblTempUsageDetail_20' ) start [2025-03-08 23:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638490', 'tblTempUsageDetail_20' ) end [2025-03-08 23:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:24:21] Production.INFO: ==22487== Releasing lock... [2025-03-08 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:24:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:25:05 [end_date_ymd] => 2025-03-08 23:25:05 [RateCDR] => 1 ) [2025-03-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-03-08 20:25:05' and `end` < '2025-03-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-03-08 23:25:17] Production.INFO: count ==1247 [2025-03-08 23:25:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:25:05 - End Time 2025-03-08 23:25:05 [2025-03-08 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638495', 'tblTempUsageDetail_20' ) start [2025-03-08 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638495', 'tblTempUsageDetail_20' ) end [2025-03-08 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638495', 'tblTempVendorCDR_20' ) start [2025-03-08 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638495', 'tblTempVendorCDR_20' ) end [2025-03-08 23:25:17] Production.INFO: ProcessCDR(1,14638495,1,1,2) [2025-03-08 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638495', 'tblTempUsageDetail_20' ) start [2025-03-08 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638495', 'tblTempUsageDetail_20' ) end [2025-03-08 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:25:21] Production.INFO: ==22559== Releasing lock... [2025-03-08 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:25:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:26:05 [end_date_ymd] => 2025-03-08 23:26:05 [RateCDR] => 1 ) [2025-03-08 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:26:05' and `end` < '2025-03-08 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:26:17] Production.INFO: count ==1255 [2025-03-08 23:26:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:26:05 - End Time 2025-03-08 23:26:05 [2025-03-08 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638500', 'tblTempUsageDetail_20' ) start [2025-03-08 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638500', 'tblTempUsageDetail_20' ) end [2025-03-08 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638500', 'tblTempVendorCDR_20' ) start [2025-03-08 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638500', 'tblTempVendorCDR_20' ) end [2025-03-08 23:26:17] Production.INFO: ProcessCDR(1,14638500,1,1,2) [2025-03-08 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638500', 'tblTempUsageDetail_20' ) start [2025-03-08 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638500', 'tblTempUsageDetail_20' ) end [2025-03-08 23:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:26:20] Production.INFO: ==22634== Releasing lock... [2025-03-08 23:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:26:20] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:27:05 [end_date_ymd] => 2025-03-08 23:27:05 [RateCDR] => 1 ) [2025-03-08 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:27:05' and `end` < '2025-03-08 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:27:17] Production.INFO: count ==1254 [2025-03-08 23:27:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:27:05 - End Time 2025-03-08 23:27:05 [2025-03-08 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638505', 'tblTempUsageDetail_20' ) start [2025-03-08 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638505', 'tblTempUsageDetail_20' ) end [2025-03-08 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638505', 'tblTempVendorCDR_20' ) start [2025-03-08 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638505', 'tblTempVendorCDR_20' ) end [2025-03-08 23:27:18] Production.INFO: ProcessCDR(1,14638505,1,1,2) [2025-03-08 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638505', 'tblTempUsageDetail_20' ) start [2025-03-08 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638505', 'tblTempUsageDetail_20' ) end [2025-03-08 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:27:22] Production.INFO: ==22709== Releasing lock... [2025-03-08 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:27:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:28:05 [end_date_ymd] => 2025-03-08 23:28:05 [RateCDR] => 1 ) [2025-03-08 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:28:05' and `end` < '2025-03-08 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:28:17] Production.INFO: count ==1254 [2025-03-08 23:28:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:28:05 - End Time 2025-03-08 23:28:05 [2025-03-08 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638510', 'tblTempUsageDetail_20' ) start [2025-03-08 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638510', 'tblTempUsageDetail_20' ) end [2025-03-08 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638510', 'tblTempVendorCDR_20' ) start [2025-03-08 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638510', 'tblTempVendorCDR_20' ) end [2025-03-08 23:28:17] Production.INFO: ProcessCDR(1,14638510,1,1,2) [2025-03-08 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638510', 'tblTempUsageDetail_20' ) start [2025-03-08 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638510', 'tblTempUsageDetail_20' ) end [2025-03-08 23:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:28:20] Production.INFO: ==22783== Releasing lock... [2025-03-08 23:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:28:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:29:05 [end_date_ymd] => 2025-03-08 23:29:05 [RateCDR] => 1 ) [2025-03-08 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:29:05' and `end` < '2025-03-08 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:29:17] Production.INFO: count ==1256 [2025-03-08 23:29:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:29:05 - End Time 2025-03-08 23:29:05 [2025-03-08 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638515', 'tblTempUsageDetail_20' ) start [2025-03-08 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638515', 'tblTempUsageDetail_20' ) end [2025-03-08 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638515', 'tblTempVendorCDR_20' ) start [2025-03-08 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638515', 'tblTempVendorCDR_20' ) end [2025-03-08 23:29:17] Production.INFO: ProcessCDR(1,14638515,1,1,2) [2025-03-08 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638515', 'tblTempUsageDetail_20' ) start [2025-03-08 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638515', 'tblTempUsageDetail_20' ) end [2025-03-08 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:29:22] Production.INFO: ==22864== Releasing lock... [2025-03-08 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:29:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:30:06 [end_date_ymd] => 2025-03-08 23:30:06 [RateCDR] => 1 ) [2025-03-08 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:30:06' and `end` < '2025-03-08 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:30:18] Production.INFO: count ==1247 [2025-03-08 23:30:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:30:06 - End Time 2025-03-08 23:30:06 [2025-03-08 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638521', 'tblTempUsageDetail_20' ) start [2025-03-08 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638521', 'tblTempUsageDetail_20' ) end [2025-03-08 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638521', 'tblTempVendorCDR_20' ) start [2025-03-08 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638521', 'tblTempVendorCDR_20' ) end [2025-03-08 23:30:18] Production.INFO: ProcessCDR(1,14638521,1,1,2) [2025-03-08 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638521', 'tblTempUsageDetail_20' ) start [2025-03-08 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638521', 'tblTempUsageDetail_20' ) end [2025-03-08 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:30:23] Production.INFO: ==22943== Releasing lock... [2025-03-08 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:30:23] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:31:05 [end_date_ymd] => 2025-03-08 23:31:05 [RateCDR] => 1 ) [2025-03-08 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:31:05' and `end` < '2025-03-08 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:31:17] Production.INFO: count ==1227 [2025-03-08 23:31:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:31:05 - End Time 2025-03-08 23:31:05 [2025-03-08 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638526', 'tblTempUsageDetail_20' ) start [2025-03-08 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638526', 'tblTempUsageDetail_20' ) end [2025-03-08 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638526', 'tblTempVendorCDR_20' ) start [2025-03-08 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638526', 'tblTempVendorCDR_20' ) end [2025-03-08 23:31:17] Production.INFO: ProcessCDR(1,14638526,1,1,2) [2025-03-08 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638526', 'tblTempUsageDetail_20' ) start [2025-03-08 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638526', 'tblTempUsageDetail_20' ) end [2025-03-08 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:31:21] Production.INFO: ==23019== Releasing lock... [2025-03-08 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:31:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:32:05 [end_date_ymd] => 2025-03-08 23:32:05 [RateCDR] => 1 ) [2025-03-08 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:32:05' and `end` < '2025-03-08 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:32:17] Production.INFO: count ==1220 [2025-03-08 23:32:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:32:05 - End Time 2025-03-08 23:32:05 [2025-03-08 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638531', 'tblTempUsageDetail_20' ) start [2025-03-08 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638531', 'tblTempUsageDetail_20' ) end [2025-03-08 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638531', 'tblTempVendorCDR_20' ) start [2025-03-08 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638531', 'tblTempVendorCDR_20' ) end [2025-03-08 23:32:18] Production.INFO: ProcessCDR(1,14638531,1,1,2) [2025-03-08 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638531', 'tblTempUsageDetail_20' ) start [2025-03-08 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638531', 'tblTempUsageDetail_20' ) end [2025-03-08 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:32:21] Production.INFO: ==23091== Releasing lock... [2025-03-08 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:32:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:33:05 [end_date_ymd] => 2025-03-08 23:33:05 [RateCDR] => 1 ) [2025-03-08 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:33:05' and `end` < '2025-03-08 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:33:17] Production.INFO: count ==1219 [2025-03-08 23:33:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:33:05 - End Time 2025-03-08 23:33:05 [2025-03-08 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638536', 'tblTempUsageDetail_20' ) start [2025-03-08 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638536', 'tblTempUsageDetail_20' ) end [2025-03-08 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638536', 'tblTempVendorCDR_20' ) start [2025-03-08 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638536', 'tblTempVendorCDR_20' ) end [2025-03-08 23:33:17] Production.INFO: ProcessCDR(1,14638536,1,1,2) [2025-03-08 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638536', 'tblTempUsageDetail_20' ) start [2025-03-08 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638536', 'tblTempUsageDetail_20' ) end [2025-03-08 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:33:21] Production.INFO: ==23167== Releasing lock... [2025-03-08 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:33:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:34:05 [end_date_ymd] => 2025-03-08 23:34:05 [RateCDR] => 1 ) [2025-03-08 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:34:05' and `end` < '2025-03-08 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:34:18] Production.INFO: count ==1218 [2025-03-08 23:34:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:34:05 - End Time 2025-03-08 23:34:05 [2025-03-08 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638541', 'tblTempUsageDetail_20' ) start [2025-03-08 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638541', 'tblTempUsageDetail_20' ) end [2025-03-08 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638541', 'tblTempVendorCDR_20' ) start [2025-03-08 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638541', 'tblTempVendorCDR_20' ) end [2025-03-08 23:34:18] Production.INFO: ProcessCDR(1,14638541,1,1,2) [2025-03-08 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638541', 'tblTempUsageDetail_20' ) start [2025-03-08 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638541', 'tblTempUsageDetail_20' ) end [2025-03-08 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:34:22] Production.INFO: ==23243== Releasing lock... [2025-03-08 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:34:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:35:05 [end_date_ymd] => 2025-03-08 23:35:05 [RateCDR] => 1 ) [2025-03-08 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:35:05' and `end` < '2025-03-08 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:35:17] Production.INFO: count ==1258 [2025-03-08 23:35:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:35:05 - End Time 2025-03-08 23:35:05 [2025-03-08 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638546', 'tblTempUsageDetail_20' ) start [2025-03-08 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638546', 'tblTempUsageDetail_20' ) end [2025-03-08 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638546', 'tblTempVendorCDR_20' ) start [2025-03-08 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638546', 'tblTempVendorCDR_20' ) end [2025-03-08 23:35:17] Production.INFO: ProcessCDR(1,14638546,1,1,2) [2025-03-08 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638546', 'tblTempUsageDetail_20' ) start [2025-03-08 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638546', 'tblTempUsageDetail_20' ) end [2025-03-08 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:35:21] Production.INFO: ==23317== Releasing lock... [2025-03-08 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:35:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:36:05 [end_date_ymd] => 2025-03-08 23:36:05 [RateCDR] => 1 ) [2025-03-08 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:36:05' and `end` < '2025-03-08 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:36:18] Production.INFO: count ==1342 [2025-03-08 23:36:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:36:05 - End Time 2025-03-08 23:36:05 [2025-03-08 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638551', 'tblTempUsageDetail_20' ) start [2025-03-08 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638551', 'tblTempUsageDetail_20' ) end [2025-03-08 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638551', 'tblTempVendorCDR_20' ) start [2025-03-08 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638551', 'tblTempVendorCDR_20' ) end [2025-03-08 23:36:18] Production.INFO: ProcessCDR(1,14638551,1,1,2) [2025-03-08 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638551', 'tblTempUsageDetail_20' ) start [2025-03-08 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638551', 'tblTempUsageDetail_20' ) end [2025-03-08 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:36:21] Production.INFO: ==23413== Releasing lock... [2025-03-08 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:36:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:37:04 [end_date_ymd] => 2025-03-08 23:37:04 [RateCDR] => 1 ) [2025-03-08 23:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:37:04' and `end` < '2025-03-08 23:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:37:16] Production.INFO: count ==1339 [2025-03-08 23:37:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:37:04 - End Time 2025-03-08 23:37:04 [2025-03-08 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638555', 'tblTempUsageDetail_20' ) start [2025-03-08 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638555', 'tblTempUsageDetail_20' ) end [2025-03-08 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638555', 'tblTempVendorCDR_20' ) start [2025-03-08 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638555', 'tblTempVendorCDR_20' ) end [2025-03-08 23:37:17] Production.INFO: ProcessCDR(1,14638555,1,1,2) [2025-03-08 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638555', 'tblTempUsageDetail_20' ) start [2025-03-08 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638555', 'tblTempUsageDetail_20' ) end [2025-03-08 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:37:21] Production.INFO: ==23490== Releasing lock... [2025-03-08 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:37:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:38:05 [end_date_ymd] => 2025-03-08 23:38:05 [RateCDR] => 1 ) [2025-03-08 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:38:05' and `end` < '2025-03-08 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:38:17] Production.INFO: count ==1338 [2025-03-08 23:38:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:38:05 - End Time 2025-03-08 23:38:05 [2025-03-08 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638561', 'tblTempUsageDetail_20' ) start [2025-03-08 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638561', 'tblTempUsageDetail_20' ) end [2025-03-08 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638561', 'tblTempVendorCDR_20' ) start [2025-03-08 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638561', 'tblTempVendorCDR_20' ) end [2025-03-08 23:38:17] Production.INFO: ProcessCDR(1,14638561,1,1,2) [2025-03-08 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638561', 'tblTempUsageDetail_20' ) start [2025-03-08 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638561', 'tblTempUsageDetail_20' ) end [2025-03-08 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:38:21] Production.INFO: ==23565== Releasing lock... [2025-03-08 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:38:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:39:05 [end_date_ymd] => 2025-03-08 23:39:05 [RateCDR] => 1 ) [2025-03-08 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:39:05' and `end` < '2025-03-08 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:39:17] Production.INFO: count ==1334 [2025-03-08 23:39:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:39:05 - End Time 2025-03-08 23:39:05 [2025-03-08 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638566', 'tblTempUsageDetail_20' ) start [2025-03-08 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638566', 'tblTempUsageDetail_20' ) end [2025-03-08 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638566', 'tblTempVendorCDR_20' ) start [2025-03-08 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638566', 'tblTempVendorCDR_20' ) end [2025-03-08 23:39:17] Production.INFO: ProcessCDR(1,14638566,1,1,2) [2025-03-08 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638566', 'tblTempUsageDetail_20' ) start [2025-03-08 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638566', 'tblTempUsageDetail_20' ) end [2025-03-08 23:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:39:20] Production.INFO: ==23639== Releasing lock... [2025-03-08 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:39:20] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:40:06 [end_date_ymd] => 2025-03-08 23:40:06 [RateCDR] => 1 ) [2025-03-08 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:40:06' and `end` < '2025-03-08 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:40:18] Production.INFO: count ==1330 [2025-03-08 23:40:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:40:06 - End Time 2025-03-08 23:40:06 [2025-03-08 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638571', 'tblTempUsageDetail_20' ) start [2025-03-08 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638571', 'tblTempUsageDetail_20' ) end [2025-03-08 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638571', 'tblTempVendorCDR_20' ) start [2025-03-08 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638571', 'tblTempVendorCDR_20' ) end [2025-03-08 23:40:18] Production.INFO: ProcessCDR(1,14638571,1,1,2) [2025-03-08 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638571', 'tblTempUsageDetail_20' ) start [2025-03-08 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638571', 'tblTempUsageDetail_20' ) end [2025-03-08 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:40:22] Production.INFO: ==23758== Releasing lock... [2025-03-08 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:40:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:41:05 [end_date_ymd] => 2025-03-08 23:41:05 [RateCDR] => 1 ) [2025-03-08 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:41:05' and `end` < '2025-03-08 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:41:17] Production.INFO: count ==1312 [2025-03-08 23:41:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:41:05 - End Time 2025-03-08 23:41:05 [2025-03-08 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638577', 'tblTempUsageDetail_20' ) start [2025-03-08 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638577', 'tblTempUsageDetail_20' ) end [2025-03-08 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638577', 'tblTempVendorCDR_20' ) start [2025-03-08 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638577', 'tblTempVendorCDR_20' ) end [2025-03-08 23:41:18] Production.INFO: ProcessCDR(1,14638577,1,1,2) [2025-03-08 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638577', 'tblTempUsageDetail_20' ) start [2025-03-08 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638577', 'tblTempUsageDetail_20' ) end [2025-03-08 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:41:22] Production.INFO: ==23832== Releasing lock... [2025-03-08 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:41:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:42:05 [end_date_ymd] => 2025-03-08 23:42:05 [RateCDR] => 1 ) [2025-03-08 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:42:05' and `end` < '2025-03-08 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:42:17] Production.INFO: count ==1312 [2025-03-08 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:42:05 - End Time 2025-03-08 23:42:05 [2025-03-08 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638582', 'tblTempUsageDetail_20' ) start [2025-03-08 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638582', 'tblTempUsageDetail_20' ) end [2025-03-08 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638582', 'tblTempVendorCDR_20' ) start [2025-03-08 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638582', 'tblTempVendorCDR_20' ) end [2025-03-08 23:42:18] Production.INFO: ProcessCDR(1,14638582,1,1,2) [2025-03-08 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638582', 'tblTempUsageDetail_20' ) start [2025-03-08 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638582', 'tblTempUsageDetail_20' ) end [2025-03-08 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:42:22] Production.INFO: ==23905== Releasing lock... [2025-03-08 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:42:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:43:05 [end_date_ymd] => 2025-03-08 23:43:05 [RateCDR] => 1 ) [2025-03-08 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:43:05' and `end` < '2025-03-08 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:43:18] Production.INFO: count ==1312 [2025-03-08 23:43:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:43:05 - End Time 2025-03-08 23:43:05 [2025-03-08 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638587', 'tblTempUsageDetail_20' ) start [2025-03-08 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638587', 'tblTempUsageDetail_20' ) end [2025-03-08 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638587', 'tblTempVendorCDR_20' ) start [2025-03-08 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638587', 'tblTempVendorCDR_20' ) end [2025-03-08 23:43:18] Production.INFO: ProcessCDR(1,14638587,1,1,2) [2025-03-08 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638587', 'tblTempUsageDetail_20' ) start [2025-03-08 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638587', 'tblTempUsageDetail_20' ) end [2025-03-08 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:43:21] Production.INFO: ==23989== Releasing lock... [2025-03-08 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:43:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:44:04 [end_date_ymd] => 2025-03-08 23:44:04 [RateCDR] => 1 ) [2025-03-08 23:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:44:04' and `end` < '2025-03-08 23:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:44:17] Production.INFO: count ==1309 [2025-03-08 23:44:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:44:04 - End Time 2025-03-08 23:44:04 [2025-03-08 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638592', 'tblTempUsageDetail_20' ) start [2025-03-08 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638592', 'tblTempUsageDetail_20' ) end [2025-03-08 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638592', 'tblTempVendorCDR_20' ) start [2025-03-08 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638592', 'tblTempVendorCDR_20' ) end [2025-03-08 23:44:17] Production.INFO: ProcessCDR(1,14638592,1,1,2) [2025-03-08 23:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638592', 'tblTempUsageDetail_20' ) start [2025-03-08 23:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638592', 'tblTempUsageDetail_20' ) end [2025-03-08 23:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:44:20] Production.INFO: ==24065== Releasing lock... [2025-03-08 23:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:44:20] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:45:05 [end_date_ymd] => 2025-03-08 23:45:05 [RateCDR] => 1 ) [2025-03-08 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:45:05' and `end` < '2025-03-08 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:45:17] Production.INFO: count ==1303 [2025-03-08 23:45:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:45:05 - End Time 2025-03-08 23:45:05 [2025-03-08 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638597', 'tblTempUsageDetail_20' ) start [2025-03-08 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638597', 'tblTempUsageDetail_20' ) end [2025-03-08 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638597', 'tblTempVendorCDR_20' ) start [2025-03-08 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638597', 'tblTempVendorCDR_20' ) end [2025-03-08 23:45:18] Production.INFO: ProcessCDR(1,14638597,1,1,2) [2025-03-08 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638597', 'tblTempUsageDetail_20' ) start [2025-03-08 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638597', 'tblTempUsageDetail_20' ) end [2025-03-08 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:45:21] Production.INFO: ==24144== Releasing lock... [2025-03-08 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:45:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:46:04 [end_date_ymd] => 2025-03-08 23:46:04 [RateCDR] => 1 ) [2025-03-08 23:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:46:04' and `end` < '2025-03-08 23:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:46:17] Production.INFO: count ==1301 [2025-03-08 23:46:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:46:04 - End Time 2025-03-08 23:46:04 [2025-03-08 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638602', 'tblTempUsageDetail_20' ) start [2025-03-08 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638602', 'tblTempUsageDetail_20' ) end [2025-03-08 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638602', 'tblTempVendorCDR_20' ) start [2025-03-08 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638602', 'tblTempVendorCDR_20' ) end [2025-03-08 23:46:17] Production.INFO: ProcessCDR(1,14638602,1,1,2) [2025-03-08 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638602', 'tblTempUsageDetail_20' ) start [2025-03-08 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638602', 'tblTempUsageDetail_20' ) end [2025-03-08 23:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:46:20] Production.INFO: ==24221== Releasing lock... [2025-03-08 23:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:46:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:47:05 [end_date_ymd] => 2025-03-08 23:47:05 [RateCDR] => 1 ) [2025-03-08 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:47:05' and `end` < '2025-03-08 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:47:17] Production.INFO: count ==1299 [2025-03-08 23:47:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:47:05 - End Time 2025-03-08 23:47:05 [2025-03-08 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638607', 'tblTempUsageDetail_20' ) start [2025-03-08 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638607', 'tblTempUsageDetail_20' ) end [2025-03-08 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638607', 'tblTempVendorCDR_20' ) start [2025-03-08 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638607', 'tblTempVendorCDR_20' ) end [2025-03-08 23:47:18] Production.INFO: ProcessCDR(1,14638607,1,1,2) [2025-03-08 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638607', 'tblTempUsageDetail_20' ) start [2025-03-08 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638607', 'tblTempUsageDetail_20' ) end [2025-03-08 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:47:22] Production.INFO: ==24294== Releasing lock... [2025-03-08 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:47:22] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:48:05 [end_date_ymd] => 2025-03-08 23:48:05 [RateCDR] => 1 ) [2025-03-08 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:48:05' and `end` < '2025-03-08 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:48:17] Production.INFO: count ==1299 [2025-03-08 23:48:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:48:05 - End Time 2025-03-08 23:48:05 [2025-03-08 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638612', 'tblTempUsageDetail_20' ) start [2025-03-08 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638612', 'tblTempUsageDetail_20' ) end [2025-03-08 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638612', 'tblTempVendorCDR_20' ) start [2025-03-08 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638612', 'tblTempVendorCDR_20' ) end [2025-03-08 23:48:17] Production.INFO: ProcessCDR(1,14638612,1,1,2) [2025-03-08 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638612', 'tblTempUsageDetail_20' ) start [2025-03-08 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638612', 'tblTempUsageDetail_20' ) end [2025-03-08 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:48:21] Production.INFO: ==24367== Releasing lock... [2025-03-08 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:48:21] Production.INFO: 38 MB #Memory Used# [2025-03-08 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:49:05 [end_date_ymd] => 2025-03-08 23:49:05 [RateCDR] => 1 ) [2025-03-08 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:49:05' and `end` < '2025-03-08 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:49:17] Production.INFO: count ==1296 [2025-03-08 23:49:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:49:05 - End Time 2025-03-08 23:49:05 [2025-03-08 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638617', 'tblTempUsageDetail_20' ) start [2025-03-08 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638617', 'tblTempUsageDetail_20' ) end [2025-03-08 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638617', 'tblTempVendorCDR_20' ) start [2025-03-08 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638617', 'tblTempVendorCDR_20' ) end [2025-03-08 23:49:17] Production.INFO: ProcessCDR(1,14638617,1,1,2) [2025-03-08 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638617', 'tblTempUsageDetail_20' ) start [2025-03-08 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638617', 'tblTempUsageDetail_20' ) end [2025-03-08 23:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:49:20] Production.INFO: ==24442== Releasing lock... [2025-03-08 23:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:49:20] Production.INFO: 37.75 MB #Memory Used# [2025-03-08 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:50:06 [end_date_ymd] => 2025-03-08 23:50:06 [RateCDR] => 1 ) [2025-03-08 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:50:06' and `end` < '2025-03-08 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:50:18] Production.INFO: count ==1290 [2025-03-08 23:50:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:50:06 - End Time 2025-03-08 23:50:06 [2025-03-08 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638623', 'tblTempUsageDetail_20' ) start [2025-03-08 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638623', 'tblTempUsageDetail_20' ) end [2025-03-08 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638623', 'tblTempVendorCDR_20' ) start [2025-03-08 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638623', 'tblTempVendorCDR_20' ) end [2025-03-08 23:50:18] Production.INFO: ProcessCDR(1,14638623,1,1,2) [2025-03-08 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638623', 'tblTempUsageDetail_20' ) start [2025-03-08 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638623', 'tblTempUsageDetail_20' ) end [2025-03-08 23:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:50:21] Production.INFO: ==24521== Releasing lock... [2025-03-08 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:50:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-08 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:51:05 [end_date_ymd] => 2025-03-08 23:51:05 [RateCDR] => 1 ) [2025-03-08 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:51:05' and `end` < '2025-03-08 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:51:17] Production.INFO: count ==1233 [2025-03-08 23:51:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:51:05 - End Time 2025-03-08 23:51:05 [2025-03-08 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638628', 'tblTempUsageDetail_20' ) start [2025-03-08 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638628', 'tblTempUsageDetail_20' ) end [2025-03-08 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638628', 'tblTempVendorCDR_20' ) start [2025-03-08 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638628', 'tblTempVendorCDR_20' ) end [2025-03-08 23:51:17] Production.INFO: ProcessCDR(1,14638628,1,1,2) [2025-03-08 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638628', 'tblTempUsageDetail_20' ) start [2025-03-08 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638628', 'tblTempUsageDetail_20' ) end [2025-03-08 23:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:51:20] Production.INFO: ==24595== Releasing lock... [2025-03-08 23:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:51:20] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:52:05 [end_date_ymd] => 2025-03-08 23:52:05 [RateCDR] => 1 ) [2025-03-08 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:52:05' and `end` < '2025-03-08 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:52:17] Production.INFO: count ==1228 [2025-03-08 23:52:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:52:05 - End Time 2025-03-08 23:52:05 [2025-03-08 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638633', 'tblTempUsageDetail_20' ) start [2025-03-08 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638633', 'tblTempUsageDetail_20' ) end [2025-03-08 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638633', 'tblTempVendorCDR_20' ) start [2025-03-08 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638633', 'tblTempVendorCDR_20' ) end [2025-03-08 23:52:18] Production.INFO: ProcessCDR(1,14638633,1,1,2) [2025-03-08 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638633', 'tblTempUsageDetail_20' ) start [2025-03-08 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638633', 'tblTempUsageDetail_20' ) end [2025-03-08 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:52:21] Production.INFO: ==24671== Releasing lock... [2025-03-08 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:52:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:53:05 [end_date_ymd] => 2025-03-08 23:53:05 [RateCDR] => 1 ) [2025-03-08 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:53:05' and `end` < '2025-03-08 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:53:17] Production.INFO: count ==1232 [2025-03-08 23:53:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:53:05 - End Time 2025-03-08 23:53:05 [2025-03-08 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638638', 'tblTempUsageDetail_20' ) start [2025-03-08 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638638', 'tblTempUsageDetail_20' ) end [2025-03-08 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638638', 'tblTempVendorCDR_20' ) start [2025-03-08 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638638', 'tblTempVendorCDR_20' ) end [2025-03-08 23:53:17] Production.INFO: ProcessCDR(1,14638638,1,1,2) [2025-03-08 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638638', 'tblTempUsageDetail_20' ) start [2025-03-08 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638638', 'tblTempUsageDetail_20' ) end [2025-03-08 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:53:22] Production.INFO: ==24750== Releasing lock... [2025-03-08 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:53:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:54:05 [end_date_ymd] => 2025-03-08 23:54:05 [RateCDR] => 1 ) [2025-03-08 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:54:05' and `end` < '2025-03-08 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:54:17] Production.INFO: count ==1234 [2025-03-08 23:54:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:54:05 - End Time 2025-03-08 23:54:05 [2025-03-08 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638643', 'tblTempUsageDetail_20' ) start [2025-03-08 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638643', 'tblTempUsageDetail_20' ) end [2025-03-08 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638643', 'tblTempVendorCDR_20' ) start [2025-03-08 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638643', 'tblTempVendorCDR_20' ) end [2025-03-08 23:54:17] Production.INFO: ProcessCDR(1,14638643,1,1,2) [2025-03-08 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638643', 'tblTempUsageDetail_20' ) start [2025-03-08 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638643', 'tblTempUsageDetail_20' ) end [2025-03-08 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:54:22] Production.INFO: ==24823== Releasing lock... [2025-03-08 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:54:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 23:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:55:04 [end_date_ymd] => 2025-03-08 23:55:04 [RateCDR] => 1 ) [2025-03-08 23:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:55:04' and `end` < '2025-03-08 23:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:55:17] Production.INFO: count ==1236 [2025-03-08 23:55:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:55:04 - End Time 2025-03-08 23:55:04 [2025-03-08 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638648', 'tblTempUsageDetail_20' ) start [2025-03-08 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638648', 'tblTempUsageDetail_20' ) end [2025-03-08 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638648', 'tblTempVendorCDR_20' ) start [2025-03-08 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638648', 'tblTempVendorCDR_20' ) end [2025-03-08 23:55:17] Production.INFO: ProcessCDR(1,14638648,1,1,2) [2025-03-08 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638648', 'tblTempUsageDetail_20' ) start [2025-03-08 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638648', 'tblTempUsageDetail_20' ) end [2025-03-08 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:55:21] Production.INFO: ==24938== Releasing lock... [2025-03-08 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:55:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:56:05 [end_date_ymd] => 2025-03-08 23:56:05 [RateCDR] => 1 ) [2025-03-08 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:56:05' and `end` < '2025-03-08 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:56:17] Production.INFO: count ==1237 [2025-03-08 23:56:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:56:05 - End Time 2025-03-08 23:56:05 [2025-03-08 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638653', 'tblTempUsageDetail_20' ) start [2025-03-08 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638653', 'tblTempUsageDetail_20' ) end [2025-03-08 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638653', 'tblTempVendorCDR_20' ) start [2025-03-08 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638653', 'tblTempVendorCDR_20' ) end [2025-03-08 23:56:18] Production.INFO: ProcessCDR(1,14638653,1,1,2) [2025-03-08 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638653', 'tblTempUsageDetail_20' ) start [2025-03-08 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638653', 'tblTempUsageDetail_20' ) end [2025-03-08 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:56:21] Production.INFO: ==25016== Releasing lock... [2025-03-08 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:56:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:57:05 [end_date_ymd] => 2025-03-08 23:57:05 [RateCDR] => 1 ) [2025-03-08 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:57:05' and `end` < '2025-03-08 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:57:17] Production.INFO: count ==1237 [2025-03-08 23:57:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:57:05 - End Time 2025-03-08 23:57:05 [2025-03-08 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638658', 'tblTempUsageDetail_20' ) start [2025-03-08 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638658', 'tblTempUsageDetail_20' ) end [2025-03-08 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638658', 'tblTempVendorCDR_20' ) start [2025-03-08 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638658', 'tblTempVendorCDR_20' ) end [2025-03-08 23:57:17] Production.INFO: ProcessCDR(1,14638658,1,1,2) [2025-03-08 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638658', 'tblTempUsageDetail_20' ) start [2025-03-08 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638658', 'tblTempUsageDetail_20' ) end [2025-03-08 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:57:22] Production.INFO: ==25094== Releasing lock... [2025-03-08 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:57:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-08 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:58:05 [end_date_ymd] => 2025-03-08 23:58:05 [RateCDR] => 1 ) [2025-03-08 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:58:05' and `end` < '2025-03-08 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:58:17] Production.INFO: count ==1236 [2025-03-08 23:58:17] Production.ERROR: pbx CDR StartTime 2025-03-08 20:58:05 - End Time 2025-03-08 23:58:05 [2025-03-08 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638663', 'tblTempUsageDetail_20' ) start [2025-03-08 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638663', 'tblTempUsageDetail_20' ) end [2025-03-08 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638663', 'tblTempVendorCDR_20' ) start [2025-03-08 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638663', 'tblTempVendorCDR_20' ) end [2025-03-08 23:58:18] Production.INFO: ProcessCDR(1,14638663,1,1,2) [2025-03-08 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638663', 'tblTempUsageDetail_20' ) start [2025-03-08 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638663', 'tblTempUsageDetail_20' ) end [2025-03-08 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:58:22] Production.INFO: ==25171== Releasing lock... [2025-03-08 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:58:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-08 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-08 20:59:05 [end_date_ymd] => 2025-03-08 23:59:05 [RateCDR] => 1 ) [2025-03-08 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-08 20:59:05' and `end` < '2025-03-08 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-08 23:59:17] Production.INFO: count ==1235 [2025-03-08 23:59:18] Production.ERROR: pbx CDR StartTime 2025-03-08 20:59:05 - End Time 2025-03-08 23:59:05 [2025-03-08 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-08 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638668', 'tblTempUsageDetail_20' ) start [2025-03-08 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14638668', 'tblTempUsageDetail_20' ) end [2025-03-08 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638668', 'tblTempVendorCDR_20' ) start [2025-03-08 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14638668', 'tblTempVendorCDR_20' ) end [2025-03-08 23:59:18] Production.INFO: ProcessCDR(1,14638668,1,1,2) [2025-03-08 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14638668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14638668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-08 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14638668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14638668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-08 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638668', 'tblTempUsageDetail_20' ) start [2025-03-08 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14638668', 'tblTempUsageDetail_20' ) end [2025-03-08 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-08 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-08 23:59:21] Production.INFO: ==25245== Releasing lock... [2025-03-08 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-08 23:59:21] Production.INFO: 37.75 MB #Memory Used#